[HELP]NRPE Command not defined

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
EliteDM
Posts: 1
Joined: Fri Jul 03, 2020 11:43 am

[HELP]NRPE Command not defined

Post 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?
Locked