<br><br><div><span class="gmail_quote">On 4/4/07, <b class="gmail_sendername">Jesús Arnáiz</b> <<a href="mailto:jesus.arnaiz@0z0ne.com">jesus.arnaiz@0z0ne.com</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi there.<br><br>I use the doc. about event handlers and I define this one:<br><br># SERVICE CLAMD<br>define service {<br>         use generic-service<br>         host_name       MYHOST<br>         service_description CLAMD
<br>         check_command   check_clamd<br>         max_check_attempts 2<br>         event_handler   event_clamd<br>}<br><br># COMMAND<br>define command {<br>         command_name    event_clamd<br>         command_line    $USER1$/check_nrpe -H $HOSTADDRESS$ -c
<br>event_clamd $SERVICESTATE$ $SERVICESTATETYPE$ $SERVICEATTEMPT$<br>}<br><br>And, on the remote machine I configure nrpe.cfg like this:<br><br>command[event_clamd]=/data/general/nagios/libexec/event_clamd $ARG1$<br>$ARG2$ $ARG3$
<br><br>Also, I put that script (event_clamd), with 755 permission. This script<br>write to a file in /tmp in order to see if it run or not. I see it don't<br>takes the args (SERVICESTATETYPE SERVICESTATE...), so I try to run the
<br>script by hand like this:<br><br>libexec/check_nrpe -H MYHOST -c event_clamd OK HARD 1<br><br>And I see it run but it doesn't get that arguments (OK, HARD, 1). I try<br>also:<br><br>libexec/check_nrpe -H MYHOST -c event_clamd -a OK HARD 1
<br>CHECK_NRPE: Received 0 bytes from daemon.  Check the remote server logs<br>for error messages.<br><br>Any help?</blockquote><div><br><br>By default NRPE will ignore any passed command arguments. Have you made sure that you have dont_blame_nrpe set to 1 so that command arguments are allowed?
<br><br>Rob<br></div><br></div>