Start a Conversation

Unsolved

M

9 Posts

10390

November 5th, 2018 03:00

Error occurred while communicating to Warranty API service

Hi community, since Friday i receive an error by checking the warranty information of my servers, i'm using the version 3.0 and the script is running on ubuntu.

The result from the script: 

python /usr/local/nagios/dell/scripts/dellemc_device_check.py  --host=1.1.1.1   --devicetype=iDRAC   --componentname=warranty   --protocol=3   --http.user=ADM  --http.password=PWD  --http.timeout=45  --http.port=443  --http.retries=1  --logPath=None  --warranty.warningDays=None   --warranty.criticalDays=None

is:

Error occurred while communicating to Warranty API service X9X9X9X

As there exist no newer version of the dellemc_device_check.py and there are no changes in my infrastructure maybe dell has performed a change of their API?

Anyone else are also receiving this error?

BR

Markus

 

9 Posts

December 14th, 2018 11:00

I guess dell has abandoned us fellas.

December 16th, 2018 09:00

Hi,

We have confirmed from our end that the API key that we are using in the plug-in for warranty service API is indeed working. 

Could you please restart the nagios services and run the warranty check?

 

Thanks,

Anupam

9 Posts

December 18th, 2018 12:00

I shut down the nagios service as requested and reran the warranty check. still not working

Here is the link to where nagios is attempting to get the warrany info from:

https://api.dell.com/support/assetinfo/v4/getassetwarranty/

Thank you for following up and I hope we can work together to get this resolved

 

 

December 18th, 2018 13:00

Hi @benhank

Well, that's strange. I just ran the following Nagios plugin check script on my Ubuntu 18.04, with python 2.7.15rc1 and it is working:

anupam@ubuntu:~/Dell_OpenManage_Plugin/scripts$ python dellemc_device_check.py --host= --devicetype=iDRAC --componentname=warranty --protocol=2 --http.user=root --http.password=calvin --http.timeout=30 --http.port=443 --http.retries=1 --logPath=None --warranty.warningDays=30 --warranty.criticalDays=10
#1 ServiceTag = 
  , Service Level Details = DASP Parts Replacement, Item Number = 
   , Device Type = PowerEdge R940, Ship Date(UTC) = 2017-09-19 14:00:00, Start Date(UTC) = 2017-09-19 14:00:00, End Date(UTC) = 2020-09-21 13:59:59, Days Remaining = 642
   
  
 

Could you please try running the warranty check script for one of the hosts and see if it works?

9 Posts

December 19th, 2018 00:00

I have enabled the warranty checks again, and they are working. But i have prepared my configurations to quick enable and disable the warranty checks if these problems are coming back. BR

December 19th, 2018 00:00

@Mc_G, thank you for confirming that warranty checks are working again. I sincerely regret the inconvenience that you had to endure due to a minor glitch in the API key. We have fixed the issue with API key and that should hold you in good stead till you upgrade to a next version of Nagios plugin sometime next year.

Happy holidays! 

Cheers

9 Posts

December 19th, 2018 10:00

sadly they arent working for me. what version of the warranty check should I be running? i am running version 1. is there a way to upgrade the plugin without it adding all the extra hostgroups and making changes to mysqldb?

December 21st, 2018 02:00

@benhank, if you are running OpenManage Plugin v1.0 for Nagios XI then you can upgrade to latest v3.0 using the instructions provided in the Installation Guide

Upgrading to new version of the plugin will not create extra hostgroups. New host groups are created dynamically only when a host belonging to that hostgroup is discovered. Also, it will not impact your already discovered hosts and services

If you really don't want to upgrade to latest version, then you can try copying the latest version of the warranty check script using the following workaround and see if it works:

  • Download the latest version of OpenManage Plugin v3.0 from https://marketing.dell.com/en/omc-nagiosxi-software and save it to "/tmp"
  • Unzip and extract the contents
    tar -zxvf Dell_EMC_OpenManage_Plugin_v3.0_Nagios_XI_A00.tar.gz 
  • You will find a "Dell_EMC_OM_NagiosXI_monitoring_wizard.zip" extracted in the current directory. Unzip this file.
    unzip Dell_EMC_OM_NagiosXI_monitoring_wizard.zip
  • Go to "Dell_EMC_OM_NagiosXI_monitoring_wizard/plugins" folder 
    cd Dell_EMC_OM_NagiosXI_monitoring_wizard/plugins
  • Copy the "dell_OMC_Nagios_Warranty_v_3_0.jar" to "dell_OMC_Nagios_Warranty_v_1_0.jar" in the same directory
    cp dell_OMC_Nagios_Warranty_v_3_0.jar dell_OMC_Nagios_Warranty_v_1_0.jar
  • Take a backup of the existing ""dell_OMC_Nagios_Warranty_v_1_0.jar" in "/usr/local/nagios/libexec" folder
    cd /usr/local/nagios/libexec
    cp dell_OMC_Nagios_Warranty_v_1_0.jar dell_OMC_Nagios_Warranty_v_1_0.jar.backup
  • Copy the new "dell_OMC_Nagios_Warranty_v_1_0.jar" in "/usr/local/nagios/libexec"
    cp /tmp/Dell_EMC_OM_NagiosXI_monitoring_wizard/plugins/dell_OMC_Nagios_Warranty_v_1_0.jar .
  • Restart your nagios services.

Please let us know if you are still facing issues with your warranty checks.

1 Message

December 26th, 2018 04:00

We've run into the same problem, here, but as it turns out they canned our key since we did not re-enroll (they must have slipped in an annual re-enrollment requirement, as looking back through correspondence there was no mention of re-enrollment requirements). We're having to re-enroll to get a working key again. It was working fine up until the time others started to experience issues. I wonder if they did a blanket deactivation on old keys for some reason. A bit annoyed there was no prior notice.

9 Posts

January 3rd, 2019 10:00

its working now! I had to make some changes to your instructions but its working! Sorry for the delayed response

 

The difference is in the name of the plugin. Look into /usr/local/nagios/libexec and see what the name of the plugin for the warranty is. It will either be

dell_OMC_Nagios_Warranty_v_1_0.jar

dell_OMC_NagiosXI_Warranty_v_1_0.jar

And then rename the file correctly.

Thanks for the help!

January 3rd, 2019 23:00

@benhank, glad to know that you were able to get the warranty monitoring service working again. 

No Events found!

Top