Problem with passive checks

Miguel Matos miguel-r-matos at ptinovacao.pt
Fri Mar 4 15:29:53 CET 2005


Hi All,

I have a problem with Nagios related with the passive checks.

I'm using Nagios 1.2 and the situation is:
Sometimes Nagios receives the passive check but it does nothing with it,
as the following example from nagios.log :

"om nagios: EXTERNAL COMMAND:
PROCESS_SERVICE_CHECK_RESULT;om;BILLING;0;BILLING stopped"

And Sometimes it does what it should do, as the following example from
nagios.log :

"om nagios: EXTERNAL COMMAND:
PROCESS_SERVICE_CHECK_RESULT;om;BILLING;0;BILLING stopped"
"om nagios: SERVICE ALERT: om;BILLING;OK;HARD;1;BILLING stopped"
"om nagios: SERVICE EVENT HANDLER: om;BILLING;OK;HARD;1;myhandler"

The configurations for this service is that one:

"define service{
        use                             	generic-service
; Name of service template to use
        host_name                       om
        service_description           BILLING
        active_checks_enabled      0
        check_period                    none
        check_command              check_dummy!0
        }
"
And the general configuration for the services is this one:

"define service{
        name                            generic-service ; The 'name' of
this service template
        active_checks_enabled           1       ; Active service checks
are enabled
        passive_checks_enabled          1       ; Passive service checks
are enabled/accepted
        parallelize_check               1       ; Active service checks
should be parallelized (disabling this can lead to major performance
problems)
        obsess_over_service             1       ; We should obsess over
this service (if necessary)
        check_freshness                 0       ; Default is to NOT
check service 'freshness'
        notifications_enabled           0       ; Service notifications
are disabled
        notification_options            w,u,c,r
        notification_interval           0
        notification_period             24x7
        event_handler_enabled           1       ; Service event handler
is enabled
        event_handler                   myhandler
        flap_detection_enabled          1       ; Flap detection is
enabled
        failure_prediction_enabled      1       ; Failure prediction is
enabled
        process_perf_data               1       ; Process performance
data
        retain_status_information       1       ; Retain status
information across program restarts
        retain_nonstatus_information    1       ; Retain non-status
information across program restarts
        normal_check_interval           1
        retry_check_interval            1
        max_check_attempts              1
        check_period                    24x7
        contact_groups                  admins
        register                        0       ; DONT REGISTER THIS
DEFINITION - ITS NOT A REAL SERVICE, JUST A TEMPLATE!
        }
"
Other relevant configuration from nagios.cfg:

check_external_commands=1
command_check_interval=-1
accept_passive_service_checks=1

Does anyone know how to solve this problem?

Regards All,
Miguel


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-lists.org/archive/users/attachments/20050304/4c1c46f7/attachment.html>


More information about the Users mailing list