I've installed Nagios Core and monitor serval services on a CentOS system - everything works fine.
Now i've added a new debian systemca and there nagios says for example the check_users
but on cli it works fine!"NRPE: Command 'check_users!-w!2!-c!3' not defined"
/usr/local/nagios/libexec/check_nrpe -H myhost.example -c check_users
USERS OK - 1 users currently logged in |users=1;5;10;0
Code: Select all
define service{
use generic-service
host_name myhost.example
service_description USERS
check_command check_nrpe!check_users!-w 2 -c 3
}
Code: Select all
define command{
command_name check_nrpe
command_line $USER1$/check_nrpe -H $HOSTADDRESS$ -c $ARG1$ -a $ARG2$
}