command (check_openmanage) returned an invalid return code

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.
Locked
rohithroki
Posts: 138
Joined: Mon Nov 30, 2015 6:12 am

command (check_openmanage) returned an invalid return code

Post by rohithroki »

Hello Team,

I am getting the error while monitoring the Dell hardware status.

"The command (check_openmanage) returned an invalid return code: 255"

Nsclient : 0.5.2 version.

It's not working on this specific server as the same config ini file is working on other server.

Please help me to fix the issue ..

work around:

I have checked the firewall status as the plugin is monitored via NRPE with port 5666 ,memory is monitored with the same port and it's working.

Thanks ,
Simbu
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: command (check_openmanage) returned an invalid return co

Post by scottwilkerson »

How are you running check_openmanage ? It is not designed to be run on a Windows server, it should go on your nagios server
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
rohithroki
Posts: 138
Joined: Mon Nov 30, 2015 6:12 am

Re: command (check_openmanage) returned an invalid return co

Post by rohithroki »

Hi scott,

I am running the plugin via external scripts in the ini file.

It's been running and monitored by check_nrpe plugin..

[root@xxxx libexec]# ./check_nrpe -<IP Address> -p 5666 -c check_openmanage -t 240
OK - System: 'PowerEdge R320', SN: '7KGS8X1', 8 GB ram (2 dimms), 1 logical drives, 4 physical drives

Thanks ,
Simbu
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: command (check_openmanage) returned an invalid return co

Post by scottwilkerson »

Ok, lets run the following

Code: Select all

./check_nrpe -<IP Address> -p 5666 -c check_openmanage -t 240
echo $?
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
rohithroki
Posts: 138
Joined: Mon Nov 30, 2015 6:12 am

Re: command (check_openmanage) returned an invalid return co

Post by rohithroki »

Hi Scott,

I have tried with that command also ,still facing same issue.

I have downgrade the nsclient++ version from 0.5.2 to 0.3.9 ,got the error and the output

Code: Select all

[root@xxxx libexec]# ./check_nrpe -H <IPAddress> -p 5666 -c check_openmanage -t 340 echo$?
syntax error at script/check_openmanage line 441, at EOF
and for other server ,I am getting different output with nsclient++ 0.3.9

Code: Select all

[root@xxxx libexec]# ./check_nrpe -H <IPAddress> -p 5666 -c check_openmanage -t 340 echo$?
IO/Compress/Zlib/Extra.pm did not return a true value at C:/strawberry/perl/lib/IO/Compress/Gzip.pm line 16.
BEGIN failed--compilation aborted at C:/strawberry/perl/lib/IO/Compress/Gzip.pm line 16.
Compilation failed in require at C:/strawberry/perl/lib/Compress/Zlib.pm line 12.
BEGIN failed--compilation aborted at C:/strawberry/perl/lib/Compress/Zlib.pm line 12.
Compilation failed in require at -e line 153.
same plugin and ini file is working perfectly on other servers.

Please help me to fix the issue.

Thanks,
Simbu
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: command (check_openmanage) returned an invalid return co

Post by scottwilkerson »

these are 2 separate commands

Code: Select all

./check_nrpe -<IP Address> -p 5666 -c check_openmanage -t 240
then

Code: Select all

echo $?
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
rohithroki
Posts: 138
Joined: Mon Nov 30, 2015 6:12 am

Re: command (check_openmanage) returned an invalid return co

Post by rohithroki »

Hi Scott,

Thanks for reply.

I ran the command in Nagios server end.

Code: Select all

[root@xxxx libexec]# ./check_nrpe -H <IPAddress> -p 5666 -c check_openmanage -t 240
IO/Compress/Zlib/Extra.pm did not return a true value at C:/strawberry/perl/lib/IO/Compress/Gzip.pm line 16.
BEGIN failed--compilation aborted at C:/strawberry/perl/lib/IO/Compress/Gzip.pm line 16.
Compilation failed in require at C:/strawberry/perl/lib/Compress/Zlib.pm line 12.
BEGIN failed--compilation aborted at C:/strawberry/perl/lib/Compress/Zlib.pm line 12.
Compilation failed in require at -e line 153.

[root@xxxx libexec]# echo $?
3

Code: Select all

[root@xxxx libexec]# ./check_nrpe -H <IPAddress> -p 5666 -c check_openmanage -t 240
syntax error at script/check_openmanage line 441, at EOF
[root@xxxx libexec]# echo $?
3
Please have a look.

Thanks
Simbu
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: command (check_openmanage) returned an invalid return co

Post by scottwilkerson »

You may want to reinstall Strawberry Perl on your Windows system and verify that the paths are correct for the installation folder.
http://strawberryperl.com/

Here is an old thread with the same issue
https://support.nagios.com/forum/viewto ... =7&t=44594
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
Locked