trying to get this to work
My Command.cfg entry
Code: Select all
define command{
command_name check_users
command_line $USER1%/check_nrpe -H $HOSTADDRESS$ -c $ARG1$ -a $ARG2$ $ARG3$
}
Code: Select all
define service {
host_name TGCS025
service_description Check All Users
check_command check_nrpe!check_users! -a check_users -w 15 -c 20
servicegroups AllServices
check_interval 1
use generic-service
}
root@tgcs017:/usr/local/nagios/etc/objects# /usr/lib/nagios/plugins/check_nrpe -H 10.2.8.36 -t 30 -c check_users -a 15 20
No handler for command: check_users
What am I missing here
Thanks
Tom
getting this
Check All Users
UNKNOWN 09-02-2016 21:08:50 0d 0h 0m 26s 1/3 (No output returned from plugin)
UPDATE UPDATE
I made this change to my service
Code: Select all
define service {
host_name TGCS025
service_description Check All Users
check_command check_nrpe!check_users! -a '-w 15 -c 20'
servicegroups AllServices
check_interval 1
use generic-service
}
Now I get this on Nagios
UNKNOWN 09-03-2016 14:38:30 0d 17h 30m 34s 3/3 No handler for command: check_users
Thoughts