One notification for a host or service?

Danilo Godec danilo.godec at agenda.si
Fri Jul 16 09:02:38 CEST 2010


Hello,

is it possible to setup Nagios 3 so that only one notification is sent
out for a downed host or service, but still have the possibility of
escalating to a 2nd (3rd, ...) level contact if the problem hasn't been
fixed 'in time'?

And when the host/service recovers, only contacts that have been
notified about 'down' should receive 'RECOVERY' notification.

I tried doing it with a 'dummy' default contact and escalations, but I
can't quite get it.

So my 'host' templates include:

        check_interval          1
        retry_interval          1
        max_check_attempts      2
        notification_interval   1
	notification_options    d,r
        contact_groups		dummy

Then I added these escalations:

define hostescalation {
        hostgroup_name MYGROUP
        contact_groups my_real_contact_group
        first_notification 3
        last_notification 4
        notification_interval 0
        escalation_period 24x7
        escalation_options d,u
}

define hostescalation {
        hostgroup_name MYGROUP
        contact_groups my_real_contact_group
        first_notification 1
        last_notification 0
        notification_interval 0
        escalation_period 24x7
        escalation_options r
}


This *almost* works - the problem is, I always get a RECOVERY
notification - even if the host recovers before I wasn't notified about
the DOWN.

Is there a better way for doing this?

  Danilo

-------------- next part --------------
A non-text attachment was scrubbed...
Name: danilo_godec.vcf
Type: text/x-vcard
Size: 216 bytes
Desc: not available
URL: <https://www.monitoring-lists.org/archive/users/attachments/20100716/d3bd93f6/attachment.vcf>
-------------- next part --------------
------------------------------------------------------------------------------
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
-------------- next part --------------
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. 
::: Messages without supporting info will risk being sent to /dev/null


More information about the Users mailing list