Code: Select all
]# /usr/local/nagios/libexec/check_nrpe -H <remote_ip> -c check_load
OK - load average: 0.01, 0.05, 0.06|load1=0.010;15.000;30.000;0; load5=0.050;10.000;25.000;0; load15=0.060;5.000;20.000;0;
Code: Select all
]# /usr/local/nagios/libexec/check_nrpe -H <remote_ip> -c check_load
OK - load average: 0.01, 0.05, 0.06|load1=0.010;15.000;30.000;0; load5=0.050;10.000;25.000;0; load15=0.060;5.000;20.000;0;
Code: Select all
# 'check_nrpe' command definition
define command{
command_name check_nrpe
command_line $USER1$/check_nrpe -H $HOSTADRESS$ -c $ARG1$
}
Code: Select all
# Define CPU load check on remote host
define service{
use generic-service
host_name myhost
service_description CPU Load
check_command check_nrpe!check_load
}
Code: Select all
command[check_load]=/usr/local/nagios/libexec/check_load -w 15,10,5 -c 30,25,20Code: Select all
# /usr/local/nagios/libexec/check_nrpe -H <remote_host> -c check_script
NRPE: Unable to read outputCode: Select all
command[check_script]=/etc/init.d/myscript status