command (check_openmanage) returned an invalid return code
-
rohithroki
- Posts: 138
- Joined: Mon Nov 30, 2015 6:12 am
command (check_openmanage) returned an invalid return code
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
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
How are you running check_openmanage ? It is not designed to be run on a Windows server, it should go on your nagios server
-
rohithroki
- Posts: 138
- Joined: Mon Nov 30, 2015 6:12 am
Re: command (check_openmanage) returned an invalid return co
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
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
Ok, lets run the following
Code: Select all
./check_nrpe -<IP Address> -p 5666 -c check_openmanage -t 240
echo $?-
rohithroki
- Posts: 138
- Joined: Mon Nov 30, 2015 6:12 am
Re: command (check_openmanage) returned an invalid return co
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
and for other server ,I am getting different output with nsclient++ 0.3.9
same plugin and ini file is working perfectly on other servers.
Please help me to fix the issue.
Thanks,
Simbu
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
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.
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
these are 2 separate commands
then
Code: Select all
./check_nrpe -<IP Address> -p 5666 -c check_openmanage -t 240Code: Select all
echo $?-
rohithroki
- Posts: 138
- Joined: Mon Nov 30, 2015 6:12 am
Re: command (check_openmanage) returned an invalid return co
Hi Scott,
Thanks for reply.
I ran the command in Nagios server end.
Please have a look.
Thanks
Simbu
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
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
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
http://strawberryperl.com/
Here is an old thread with the same issue
https://support.nagios.com/forum/viewto ... =7&t=44594