Page 1 of 1

[HELP]NRPE Command not defined

Posted: Fri Jul 03, 2020 1:52 pm
by EliteDM
Hey there!

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
"NRPE: Command 'check_users!-w!2!-c!3' not defined"
but on cli it works fine!
/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$
}
Some hints for me?