<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii">
<META NAME="Generator" CONTENT="MS Exchange Server version 6.5.7226.0">
<TITLE>Problem with passive checks</TITLE>
</HEAD>
<BODY>
<!-- Converted from text/rtf format -->

<P><B><SPAN LANG="pt"><FONT SIZE=2 FACE="Arial">Hi All,</FONT></SPAN></B>
</P>

<P><B><SPAN LANG="pt"><FONT SIZE=2 FACE="Arial">I have a problem with Nagios related with the passive checks.</FONT></SPAN></B>
</P>

<P><B><SPAN LANG="pt"><FONT SIZE=2 FACE="Arial">I'm using Nagios 1.2 and the situation is:</FONT></SPAN></B>

<BR><B><SPAN LANG="pt"><FONT SIZE=2 FACE="Arial">Sometimes Nagios receives the passive check but it does nothing with it, as the following example from nagios.log :</FONT></SPAN></B>
</P>

<P><SPAN LANG="pt"><FONT SIZE=2 FACE="Arial">"om nagios: EXTERNAL COMMAND: PROCESS_SERVICE_CHECK_RESULT;om;BILLING;0;BILLING stopped"</FONT></SPAN>
</P>

<P><SPAN LANG="pt"><B><FONT SIZE=2 FACE="Arial">And Sometimes it does what it should do, as the following example from nagios.log :</FONT></B></SPAN>
</P>

<P><SPAN LANG="pt"><FONT SIZE=2 FACE="Arial">"om nagios: EXTERNAL COMMAND: PROCESS_SERVICE_CHECK_RESULT;om;BILLING;0;BILLING stopped"</FONT></SPAN>

<BR><SPAN LANG="pt"><FONT SIZE=2 FACE="Arial">"om nagios: SERVICE ALERT: om;BILLING;OK;HARD;1;BILLING stopped"</FONT></SPAN>

<BR><SPAN LANG="pt"><FONT SIZE=2 FACE="Arial">"om nagios: SERVICE EVENT HANDLER: om;BILLING;OK;HARD;1;myhandler"</FONT></SPAN>
</P>

<P><SPAN LANG="pt"><B><FONT SIZE=2 FACE="Arial">The configurations for this service is that one:</FONT></B></SPAN>
</P>

<P><SPAN LANG="pt"><FONT SIZE=2 FACE="Arial">"define service{</FONT></SPAN>

<BR><SPAN LANG="pt"><FONT SIZE=2 FACE="Arial">        use                                     generic-service         ; Name of service template to use</FONT></SPAN>

<BR><SPAN LANG="pt"><FONT SIZE=2 FACE="Arial">        host_name                       om</FONT></SPAN>

<BR><SPAN LANG="pt"><FONT SIZE=2 FACE="Arial">        service_description           BILLING</FONT></SPAN>

<BR><SPAN LANG="pt"><FONT SIZE=2 FACE="Arial">        active_checks_enabled      0</FONT></SPAN>

<BR><SPAN LANG="pt"><FONT SIZE=2 FACE="Arial">        check_period                    none</FONT></SPAN>

<BR><SPAN LANG="pt"><FONT SIZE=2 FACE="Arial">        check_command              check_dummy!0</FONT></SPAN>

<BR><SPAN LANG="pt"><FONT SIZE=2 FACE="Arial">        }</FONT></SPAN>

<BR><SPAN LANG="pt"><FONT SIZE=2 FACE="Arial">"</FONT></SPAN>

<BR><SPAN LANG="pt"><B><FONT SIZE=2 FACE="Arial">And the general configuration for the services is this one:</FONT></B></SPAN>
</P>

<P><SPAN LANG="pt"><FONT SIZE=2 FACE="Arial">"define service{</FONT></SPAN>

<BR><SPAN LANG="pt"><FONT SIZE=2 FACE="Arial">        name                            generic-service ; The 'name' of this service template</FONT></SPAN>

<BR><SPAN LANG="pt"><FONT SIZE=2 FACE="Arial">        active_checks_enabled           1       ; Active service checks are enabled</FONT></SPAN>

<BR><SPAN LANG="pt"><FONT SIZE=2 FACE="Arial">        passive_checks_enabled          1       ; Passive service checks are enabled/accepted</FONT></SPAN>

<BR><SPAN LANG="pt"><FONT SIZE=2 FACE="Arial">        parallelize_check               1       ; Active service checks should be parallelized (disabling this can lead to major performance problems)</FONT></SPAN></P>

<P><SPAN LANG="pt"><FONT SIZE=2 FACE="Arial">        obsess_over_service             1       ; We should obsess over this service (if necessary)</FONT></SPAN>

<BR><SPAN LANG="pt"><FONT SIZE=2 FACE="Arial">        check_freshness                 0       ; Default is to NOT check service 'freshness'</FONT></SPAN>

<BR><SPAN LANG="pt"><FONT SIZE=2 FACE="Arial">        notifications_enabled           0       ; Service notifications are disabled</FONT></SPAN>

<BR><SPAN LANG="pt"><FONT SIZE=2 FACE="Arial">        notification_options            w,u,c,r</FONT></SPAN>

<BR><SPAN LANG="pt"><FONT SIZE=2 FACE="Arial">        notification_interval           0</FONT></SPAN>

<BR><SPAN LANG="pt"><FONT SIZE=2 FACE="Arial">        notification_period             24x7</FONT></SPAN>

<BR><SPAN LANG="pt"><FONT SIZE=2 FACE="Arial">        event_handler_enabled           1       ; Service event handler is enabled</FONT></SPAN>

<BR><SPAN LANG="pt"><FONT SIZE=2 FACE="Arial">        event_handler                   myhandler</FONT></SPAN>

<BR><SPAN LANG="pt"><FONT SIZE=2 FACE="Arial">        flap_detection_enabled          1       ; Flap detection is enabled</FONT></SPAN>

<BR><SPAN LANG="pt"><FONT SIZE=2 FACE="Arial">        failure_prediction_enabled      1       ; Failure prediction is enabled</FONT></SPAN>

<BR><SPAN LANG="pt"><FONT SIZE=2 FACE="Arial">        process_perf_data               1       ; Process performance data</FONT></SPAN>

<BR><SPAN LANG="pt"><FONT SIZE=2 FACE="Arial">        retain_status_information       1       ; Retain status information across program restarts</FONT></SPAN>

<BR><SPAN LANG="pt"><FONT SIZE=2 FACE="Arial">        retain_nonstatus_information    1       ; Retain non-status information across program restarts</FONT></SPAN>

<BR><SPAN LANG="pt"><FONT SIZE=2 FACE="Arial">        normal_check_interval           1</FONT></SPAN>

<BR><SPAN LANG="pt"><FONT SIZE=2 FACE="Arial">        retry_check_interval            1</FONT></SPAN>

<BR><SPAN LANG="pt"><FONT SIZE=2 FACE="Arial">        max_check_attempts              1</FONT></SPAN>

<BR><SPAN LANG="pt"><FONT SIZE=2 FACE="Arial">        check_period                    24x7</FONT></SPAN>

<BR><SPAN LANG="pt"><FONT SIZE=2 FACE="Arial">        contact_groups                  admins</FONT></SPAN>

<BR><SPAN LANG="pt"><FONT SIZE=2 FACE="Arial">        register                        0       ; DONT REGISTER THIS DEFINITION - ITS NOT A REAL SERVICE, JUST A TEMPLATE!</FONT></SPAN></P>

<P><SPAN LANG="pt"><FONT SIZE=2 FACE="Arial">        }</FONT></SPAN>

<BR><SPAN LANG="pt"><FONT SIZE=2 FACE="Arial">"</FONT></SPAN>

<BR><SPAN LANG="pt"><B><FONT SIZE=2 FACE="Arial">Other relevant configuration from nagios.cfg:</FONT></B></SPAN>
</P>

<P><SPAN LANG="pt"><FONT SIZE=2 FACE="Arial">check_external_commands=1</FONT></SPAN>

<BR><SPAN LANG="pt"><FONT SIZE=2 FACE="Arial">command_check_interval=-1</FONT></SPAN>

<BR><SPAN LANG="en-us"><FONT SIZE=2 FACE="Arial">accept_passive_service_checks=1</FONT></SPAN>
</P>

<P><SPAN LANG="en-us"><B><FONT SIZE=2 FACE="Arial">Does anyone know how to solve this problem?</FONT></B></SPAN>
</P>

<P><SPAN LANG="en-us"><FONT SIZE=2 FACE="Arial">Regards All,</FONT></SPAN>

<BR><SPAN LANG="en-us"><FONT SIZE=2 FACE="Arial">Miguel</FONT></SPAN>
</P>
<BR>

</BODY>
</HTML>