Check_openmanage Internal Error

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Omishlord
Posts: 7
Joined: Wed Jan 22, 2014 12:06 pm

Check_openmanage Internal Error

Post by Omishlord »

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.
Attachments
check_openmanage.txt
check_openmanage file in error output (I added .txt to file for upload)
(183.36 KiB) Downloaded 407 times
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: Check_openmanage Internal Error

Post by slansing »

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.
Omishlord
Posts: 7
Joined: Wed Jan 22, 2014 12:06 pm

Re: Check_openmanage Internal Error

Post by Omishlord »

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.
Attachments
Firmware information.
Firmware information.
Nagios results for 4 servers, new and old.
Nagios results for 4 servers, new and old.
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: Check_openmanage Internal Error

Post by slansing »

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.
Omishlord
Posts: 7
Joined: Wed Jan 22, 2014 12:06 pm

Re: Check_openmanage Internal Error

Post by Omishlord »

I am planning on it. I will let you know when I finish and update with results.
Omishlord
Posts: 7
Joined: Wed Jan 22, 2014 12:06 pm

Re: Check_openmanage Internal Error

Post by Omishlord »

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.
Attachments
Newer server same error snapshot.
Newer server same error snapshot.
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: Check_openmanage Internal Error

Post by slansing »

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.
Omishlord
Posts: 7
Joined: Wed Jan 22, 2014 12:06 pm

Re: Check_openmanage Internal Error

Post by Omishlord »

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.
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: Check_openmanage Internal Error

Post by abrist »

Lets try changing lines 1637 and 1638 as the script is seeing the logical operator 'ne' (not equal) as a string:
From:

Code: Select all

$minfw    = $out->{'Minimum Required Firmware Version'} ne 'Not Applicable'
    ? $out->{'Minimum Required Firmware Version'} : undef;
To:

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.
Omishlord
Posts: 7
Joined: Wed Jan 22, 2014 12:06 pm

Re: Check_openmanage Internal Error

Post by Omishlord »

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).
Locked