Check_openmanage Internal Error
Check_openmanage Internal Error
Hello everyone. I am trying to set up monitoring on my Dell servers using an check_openmanage plugin that I have used for years. I installed Dell Open Management on the server and verify that the Dell Open Manage Server Administrator opens and can see all Dell hardware. I then installed the Nagios Remote Plugin Executor fr NT/W2k as a service. Then from my Nagios server I manually run the check command and receive this output:
CMD:
/usr/lib/nagios/plugins/check_nrpe -H $HOSTADDRESS$ -c check_openmanage -t 30
OUTPUT:
OK - System: 'PowerEdge R720', SN: 'B9C38Y1', 512 GB ram (16 dimms), 2 logical drives, 10 physical drives<br/>INTERNAL ERROR: Use of uninitialized value in string ne at c:\nrpe_nt\check_openmanage\check_openmanage line 1637.
What can I do to correct this internal error? Attached is the check_openmanage file in question. Thank you for the help.
CMD:
/usr/lib/nagios/plugins/check_nrpe -H $HOSTADDRESS$ -c check_openmanage -t 30
OUTPUT:
OK - System: 'PowerEdge R720', SN: 'B9C38Y1', 512 GB ram (16 dimms), 2 logical drives, 10 physical drives<br/>INTERNAL ERROR: Use of uninitialized value in string ne at c:\nrpe_nt\check_openmanage\check_openmanage line 1637.
What can I do to correct this internal error? Attached is the check_openmanage file in question. Thank you for the help.
- Attachments
-
check_openmanage.txt- check_openmanage file in error output (I added .txt to file for upload)
- (183.36 KiB) Downloaded 408 times
-
slansing
- Posts: 7698
- Joined: Mon Apr 23, 2012 4:28 pm
- Location: Travelling through time and space...
Re: Check_openmanage Internal Error
Is the openmanage check working properly against these same metrics on other systems? It looks like that line has to do with firmware, unfortunately we don't have this hardware in house to test with but I will do some poking around.
Re: Check_openmanage Internal Error
Attached is some information from 4 servers that 2 work and 2 don't. The 2 that don't are running the latest Dell Open Manage and have more information presented at the firmware page (like latest Firmware). The 2 that work do not have as much information.
My question is, is the plug in confusing the information as what is current and latest installed? Is the plugin not handling the notification that i should update the firmware to stay current correctly? The Dell Open Manage results on the server do not show "Degradation" but is showing an alert that my firmware is out of date. Maybe that is the cause?
Thank you for your help and time. Let me know if you need any more information that i did not provide.
My question is, is the plug in confusing the information as what is current and latest installed? Is the plugin not handling the notification that i should update the firmware to stay current correctly? The Dell Open Manage results on the server do not show "Degradation" but is showing an alert that my firmware is out of date. Maybe that is the cause?
Thank you for your help and time. Let me know if you need any more information that i did not provide.
-
slansing
- Posts: 7698
- Joined: Mon Apr 23, 2012 4:28 pm
- Location: Travelling through time and space...
Re: Check_openmanage Internal Error
Hmm, would it be possible to do a firmware update on one of them? I'm sure they are in production, and it would be hard to slot this in on short notice.
Re: Check_openmanage Internal Error
I am planning on it. I will let you know when I finish and update with results.
Re: Check_openmanage Internal Error
Im sorry. I do have my latest server, 4 months old, that came with the most up to date firmware installed, 21.2.0-0007, and it is giving the same "unknown" with the internal error at the same line number.
I will still try the update on the others to see results.
I will still try the update on the others to see results.
-
slansing
- Posts: 7698
- Joined: Mon Apr 23, 2012 4:28 pm
- Location: Travelling through time and space...
Re: Check_openmanage Internal Error
Seems like a compatibility issue with the systems you are running, what is the old model vs the new model? I'm going to try to pin down if this is supported.
Re: Check_openmanage Internal Error
Sequal is a PowerEdge 6850 - working
Atlas is a PowerEdge R710 - working
Mail2 is a PowerEdge R720 -not working
Shasta is a PowerEdge R720 -not working
Sisters is a PowerEdge R720 - not working
Listed oldest to newest.
Atlas is a PowerEdge R710 - working
Mail2 is a PowerEdge R720 -not working
Shasta is a PowerEdge R720 -not working
Sisters is a PowerEdge R720 - not working
Listed oldest to newest.
Re: Check_openmanage Internal Error
Lets try changing lines 1637 and 1638 as the script is seeing the logical operator 'ne' (not equal) as a string:
From:
To:
From:
Code: Select all
$minfw = $out->{'Minimum Required Firmware Version'} ne 'Not Applicable'
? $out->{'Minimum Required Firmware Version'} : undef;Code: Select all
$minfw = ($out->{'Minimum Required Firmware Version'} ne 'Not Applicable'
? $out->{'Minimum Required Firmware Version'} : undef);Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
Re: Check_openmanage Internal Error
No change on output to nagios. The error is still showing. I changed this on two of the servers, one that shows the "degraded"(Mail2) and one that would be ok without the error (sisters).