slansing wrote:Can you show us an example of the a command that is failing, along with the consoles full output?
check_procs most likely works because it does not require any arguments to return a value, it can, but by default it will just output all of the processes running on the system. But we do know from this that the NRPE agent is reachable by Nagios.
Below are examples of some commands that are failing, along with the consoles full output. I show commands ran from NagiosXI server (generated by wizard) and command line command ran on remote monitored server.
Example:1
--nagiosXI server:
COMMAND: /usr/local/nagios/libexec/check_nrpe -H myserver-t 30 -c check_users
OUTPUT:
Usage:check_users -w -c
--remote monitored servere (myserver): tested iin both /opt/nagios-3.2.2/libexec/ and /opt/nagios/libexec/
./check_users -w 5 -c 10
USERS OK - 4 users currently logged in |users=4;5;10;0
Example:2
--nagiosXI server:
COMMAND: /usr/local/nagios/libexec/check_nrpe -H myserver-t 30 -c 5.0,4.0,3.0 10.0,6.0,4.0
OUTPUT: NRPE: Command '5.0,4.0,3.0' not defined
--remote monitored servere (myserver): tested iin both /opt/nagios-3.2.2/libexec/ and /opt/nagios/libexec/
./check_load -w 15,10,5 -c 30,25,20
OK - load average: 0.27, 0.23, 0.17|load1=0.270;15.000;30.000;0; load5=0.230;10.000;25.000;0; load15=0.170;5.000;20.000;0;
Example:3 (THIS ONE WORKS)
--nagiosXI server:
COMMAND: /usr/local/nagios/libexec/check_nrpe -H myserver-t 30 -c check_procs
OUTPUT: PROCS OK: 298 processes
--remote monitored servere (myserver): tested iin both /opt/nagios-3.2.2/libexec/ and /opt/nagios/libexec/
./check_procs
PROCS OK: 296 processes