Discussion:
[Nagios-users] NRPE: command not defined
Xu, Kenny
2010-02-17 19:44:41 UTC
Permalink
Hi, All,



I ran into a problem on defining a specific check. When configured to
run from nagios monitoring server (Linux) it returns:



NRPE: Command 'check_halog' not defined



But it is defined clearly in /usr/local/nagios/etc/nrpe.cfg file as:



command[check_halog]=/usr/local/nagios/libexec/check_log -F
/var/VRTSvcs/log/engine_A.log -O /usr/local/nagios/var/engine_A.log -q
"FAULTED|CRITICAL"



I can run it manual as nagios from the server fine:



[***@nagiossvr ~]$ /usr/local/nagios/libexec/check_nrpe -H <client>
-c check_halog

Log check ok - 0 pattern matches found



The client is running x86 Solaris 10. Any idea?



Appreciate your help.



Kenny
Marc Powell
2010-02-17 20:33:18 UTC
Permalink
Post by Xu, Kenny
Hi, All,
NRPE: Command 'check_halog' not defined
command[check_halog]=/usr/local/nagios/libexec/check_log -F /var/VRTSvcs/log/engine_A.log -O /usr/local/nagios/var/engine_A.log -q "FAULTED|CRITICAL"
Log check ok - 0 pattern matches found
The client is running x86 Solaris 10. Any idea?
You need to post the service{} and command{} definition that's not working. It's seems clear that something is different there than what you're testing from the command line. Are you sure you're checking the same client?

--
Marc

Loading...