<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:arial,helvetica,sans-serif;font-size:10pt"><div>Hi.<br><br>I have problem regarding nsca and PROCESS_HOST_CHECK_RESULT. <br>Actually I configure nsca using standard procedure and everything works fine except PROCESS_HOST_CHECK_RESULT.<br>(nagios 2.8, nsca 2.71)<br><br><br>- nagios.cfg<br><br>ocsp_command=send_service_check<br>ochp_command=send_host_check<br><br><br> - cat /usr/lib/nagios/plugins/send_host_check<br>-------<br>#!/bin/sh<br># Arguments:<br># $1 = Hostname of the host (using the $HOSTNAME$ macro)<br># $2 = Host Status ID of the host (using the $HOSTSTATUSID$ macro)<br># $3 = Output of the host check (using the $HOSTOUTPUT$ macro)<br>/bin/echo "$1","$2","$3" | /usr/bin/send_nsca -H <span style="font-style: italic;">IP_ADDRESS</span> -c /etc/nagios/send_nsca.cfg -d ",
 "<br>-------------<br><br>- cat
 /usr/lib/nagios/plugins/send_service_check<br>--------------<br>#!/bin/sh<br># Arguments:<br># $1 = Hostname of the host (using the $HOSTNAME$ macro)<br># $2 = Service Description of the service (using the $SERVICEDESC$ macro)<br># $3 = Service Status ID of the service (using the $SERVICESTATUSID$ macro)<br># $4 = Output of the service check (using the $SERVICEOUTPUT$ macro)<br>/bin/echo "$1","$2","$3","$4" | /usr/bin/send_nsca -H <span style="font-style: italic;">IP_ADDRESS</span> -c /etc/nagios/send_nsca.cfg  -d ","<br>------------<br><br>- misccommands.cfg:<br>---------------<br>define command{<br>        command_name send_host_check<br>        command_line /usr/lib/nagios/plugins/send_host_check $HOSTNAME$ $HOSTSTATEID$ "$HOSTOUTPUT$"<br>}<br><br>define command{<br>        c
 ommand_name send_service_check<br>       
 command_line /usr/lib/nagios/plugins/send_service_check $HOSTNAME$ '$SERVICEDESC$' $SERVICESTATEID$ '$SERVICEOUTPUT$'<br>}<br>-------------<br>If I simulate host down I  got HOST_CHECK from nagios.log on remote host:<br><br>EXTERNAL COMMAND: PROCESS_HOST_CHECK_RESULT;server1;1;PING CRITICAL - Packet loss = 100%<br><br>but regularly,<br>it  is triggered like it is service check, and PROCESS_HOST_CHECK_RESULT is not performed at all.<br><br>[1175605177] EXTERNAL COMMAND: PROCESS_SERVICE_CHECK_RESULT;server1;0;0; RTA = 0.18 ms<br>[1175605177] Warning:  Passive check result was received for service '0' on host 'server1', but the service could not be found!<br><br><br>Bratislav.<br><br>  <span></span><span style="position: absolute; top: 0px; right: 0px; background-color: rgb(238, 234, 254); display: none;" id="ellipsis1">...</span><span title="Add Sender to Contacts" id=
 "0_messageHeaderABText" class="msgHeaderABActionText" style="position: absolute; top:
 18px; left: 259px;"></span><span title="" id="0_messageHeaderToLabel" class="headerRecipientLabel" style="position: absolute; top: 17px; left: 298px;"></span><div style="overflow: auto; position: absolute; visibility: hidden; top: -9999px; left: -9999px;" class="headerRecipient" id="0_messageHeaderRecipient_hidden"><nobr class="cgSelectable">gios-users@lists.sourceforge.n</nobr></div><div title="" style="overflow: hidden; width: 174px; position: absolute; top: 17px; left: 319px;" class="headerRecipient" id="0_messageHeaderRecipient"><nobr style="position: relative;"><span></span></nobr></div></div></div><br>

<hr size=1><a href="
http://us.rd.yahoo.com/evt=49981/*http://advision.webevents.yahoo.com/mailbeta/features_spam.html">Sucker-punch spam</a> with award-winning protection.<br> Try the <a href="
http://us.rd.yahoo.com/evt=49981/*http://advision.webevents.yahoo.com/mailbeta/features_spam.html">free Yahoo! Mail Beta.</a></body></html>