Page 1 of 1

command (check_openmanage) returned an invalid return code

Posted: Wed Jul 25, 2018 11:32 am
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

Re: command (check_openmanage) returned an invalid return co

Posted: Wed Jul 25, 2018 5:19 pm
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

Re: command (check_openmanage) returned an invalid return co

Posted: Fri Jul 27, 2018 7:15 am
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

Re: command (check_openmanage) returned an invalid return co

Posted: Fri Jul 27, 2018 9:41 am
by scottwilkerson
Ok, lets run the following

Code: Select all

./check_nrpe -<IP Address> -p 5666 -c check_openmanage -t 240
echo $?

Re: command (check_openmanage) returned an invalid return co

Posted: Mon Jul 30, 2018 10:15 am
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

Re: command (check_openmanage) returned an invalid return co

Posted: Mon Jul 30, 2018 10:51 am
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 $?

Re: command (check_openmanage) returned an invalid return co

Posted: Mon Jul 30, 2018 11:01 am
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

Re: command (check_openmanage) returned an invalid return co

Posted: Mon Jul 30, 2018 12:07 pm
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