Custom command - check_nrpe
Posted: Tue Nov 11, 2014 8:25 am
Hello,
I have a problem with a custom command to count PHP process. It's working locally but remotely this problem is happening:
- Command tested remotely (not working):
/usr/lib/nagios/plugins/check_nrpe -H SERVER.COM.BR -n -c check_pool_www
NRPE: Command 'check_pool_www' not defined
- Command tested locally (working):
/etc/nagios/check_pool_www
OK - 4 of php (pool www) used.
Master is allowed, permissions and configurations are fine, port is openned and listening.
& netstat -nap | grep nrpe
tcp 0 0 0.0.0.0:5666 0.0.0.0:* LISTEN 10770/nrpe
tcp6 0 0 :::5666 :::* LISTEN 10770/nrpe
it's funny because the remote command just don't work only in one host!
The Master is running NRPE 2.13 and Child is running NRPE 2.15, this is the only thing different of the others Children hosts which are working. The others Children hosts are running NRPE 2.12.
I appreciate any help.
Regards,
I have a problem with a custom command to count PHP process. It's working locally but remotely this problem is happening:
- Command tested remotely (not working):
/usr/lib/nagios/plugins/check_nrpe -H SERVER.COM.BR -n -c check_pool_www
NRPE: Command 'check_pool_www' not defined
- Command tested locally (working):
/etc/nagios/check_pool_www
OK - 4 of php (pool www) used.
Master is allowed, permissions and configurations are fine, port is openned and listening.
& netstat -nap | grep nrpe
tcp 0 0 0.0.0.0:5666 0.0.0.0:* LISTEN 10770/nrpe
tcp6 0 0 :::5666 :::* LISTEN 10770/nrpe
it's funny because the remote command just don't work only in one host!
The Master is running NRPE 2.13 and Child is running NRPE 2.15, this is the only thing different of the others Children hosts which are working. The others Children hosts are running NRPE 2.12.
I appreciate any help.
Regards,