The following command has nrpe_local.cfg added to my nrpe_local.cfg :
command[check_mycommand]=/usr/lib/nagios/plugins/check_command 30 35
and then restart the nrpe daemon.
When I execute this command with nrpe , I get the following error:
NRPE: Command 'check_mycommand' not defined
I used the following command to execute:
/usr/lib/nagios/plugins/check_nrpe -H hostname -c check_mycommand
I can not understand.
10 more commands have been added to my nrpe_local.cfg and they work correctly.
source share