I added this to the remote server (client)
Code: Select all
#command[check_users]=/usr/local/nagios/libexec/check_users -w $ARG1$ -c $ARG2$
#command[check_load]=/usr/local/nagios/libexec/check_load -w $ARG1$ -c $ARG2$
#command[check_disk]=/usr/local/nagios/libexec/check_disk -w $ARG1$ -c $ARG2$ -p $ARG3$
#command[check_procs]=/usr/local/nagios/libexec/check_procs -w $ARG1$ -c $ARG2$ -s $ARG3$
command[check_informix]=/usr/local/nagios/libexec/check_informix.sh
then I did systemctl restart xinetd &&& tested again and got this ......
Code: Select all
[root@nag libexec]# /usr/local/nagios/libexec/check_nrpe -H 192.168.1.42 -c check_informix
NRPE: Unable to read output
why would I get this now?
Here is what I don't understand .. From the NAGIOS server I can run the following command and get these results, and this command is not added to the NRPE on the remote server (client) .
Code: Select all
[root@nag libexec]# /usr/local/nagios/libexec/check_nrpe -H 192.168.1.42 -c check_procs
PROCS OK: 671 processes | procs=671;;;0;
How would this work and not the check_informix.sh ??
I tried changing it from .sh to check_informix in the nrpe.cfg on the remote server as well.
Code: Select all
command[check_informix]=/usr/local/nagios/libexec/check_informix
then try to run the following command below and go the same output please see...
Code: Select all
[root@nag libexec]# /usr/local/nagios/libexec/check_nrpe -H 192.168.1.42 -c check_informix
NRPE: Unable to read output
[root@nag libexec]#