upgrade from NRPE 2.15 to 3.1.1 broke some plugins
Posted: Thu Jul 06, 2017 5:23 pm
I have an old CentOS 7 server that has had NRPE 2.15 with a bunch of plugins running for some time. I recently upgraded NRPE to 3.1.1 and now 2 of the plugins do not work, but I am unable to figure out why?
one of the plugins is this: https://exchange.nagios.org/directory/P ... ge/details
When I run the check_nrpe from my nagios server, I get:
# /usr/lib/nagios/plugins/check_nrpe -H myserver.domain -c check_om_storage
NRPE: Unable to read output
On the server being monitored, i turned on debug=1 for nrpe and i see this message:
[1499296006] Host x.x.x.x is asking for command 'check_om_storage' to be run...
[1499296006] Running command: /usr/lib64/nagios/plugins/check_om_storage
[1499296006] Command completed with return code 3 and output:
[1499296006] Return Code: 3, Output: NRPE: Unable to read output
[1499296006] Connection from x.x.x.x closed.
So far, everything is consistent. But when I try to run the plugin directly, as 'nrpe':
$ id ; pwd
uid=991(nrpe) gid=988(nrpe) groups=988(nrpe) context=unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023
/var/run/nrpe
$ /usr/lib64/nagios/plugins/check_om_storage
STORAGE: OK
$ echo $?
0
The plugin appears to return '0', not '3'?
I have not changed any configuration and everything was working fine before the upgrade to 3.1.1. What could be causing this? And why is nrpe saying the command completed with return code 3 and no output, but when I run it manually, I get different result?
Any help would be appreciated... thanks!
one of the plugins is this: https://exchange.nagios.org/directory/P ... ge/details
When I run the check_nrpe from my nagios server, I get:
# /usr/lib/nagios/plugins/check_nrpe -H myserver.domain -c check_om_storage
NRPE: Unable to read output
On the server being monitored, i turned on debug=1 for nrpe and i see this message:
[1499296006] Host x.x.x.x is asking for command 'check_om_storage' to be run...
[1499296006] Running command: /usr/lib64/nagios/plugins/check_om_storage
[1499296006] Command completed with return code 3 and output:
[1499296006] Return Code: 3, Output: NRPE: Unable to read output
[1499296006] Connection from x.x.x.x closed.
So far, everything is consistent. But when I try to run the plugin directly, as 'nrpe':
$ id ; pwd
uid=991(nrpe) gid=988(nrpe) groups=988(nrpe) context=unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023
/var/run/nrpe
$ /usr/lib64/nagios/plugins/check_om_storage
STORAGE: OK
$ echo $?
0
The plugin appears to return '0', not '3'?
I have not changed any configuration and everything was working fine before the upgrade to 3.1.1. What could be causing this? And why is nrpe saying the command completed with return code 3 and no output, but when I run it manually, I get different result?
Any help would be appreciated... thanks!