[Nagiosplug-help] No Notification on passive checks

Hans Müller grspame at gmail.com
Sat Jul 16 22:54:29 CEST 2011


Hi!

I´m trying to get notification via email from a passive check. The passive check is sent via NSCA and in the nagios.log it gets successfully logged in a HARD state and a SERVICE ALERT is triggered and the line in the interface gets red. The problem is that I do not get any eMails if a problem occurs. eMail notification works with other checks and when sent manually via a custom notification. What to do to get notifications for this service ?

Another problem is that if i define that service as active_check it gets recovered after a minute, when defined as passive check it will not get recovered. Is the active_check parameter here right ?

Thx for any help!

Here the service definitions:

services.cfg

define service {
               service_description                   passive_service
               check_command                         check_null!
               host_name                             testserver
               check_period                          24x7
               notification_period                   24x7
               contact_groups                        admins
               event_handler_enabled                 0
               notification_interval                 15
               notification_options                  w,u,c,r
               max_check_attempts                    1
               check_interval                        5
               retry_interval                        1
               active_checks_enabled                 1
               notifications_enabled                 1
               check_freshness                       0
               freshness_threshold                   86400
               use                                   Passive_Service_Checks
}

service_templates.cfg:

define service {
               name                                  Passive_Service_Checks
               register                              0
               max_check_attempts                    0
               check_interval                        1
               retry_interval                        1
               notification_interval                 1
               notification_options                  w,u,c,r,f,s,n
               active_checks_enabled                 0
               passive_checks_enabled                1
               notifications_enabled                 1
               check_freshness                       0
               check_period                          24x7
               notification_period                   24x7
               contact_groups                        admins
}



More information about the Help mailing list