Hi The problem is that I never know if I get 1, 2 or 10 warnings before the state changes to critical (or maybe even OK)... That is why I find it a bit difficult, and wonder whether an eventhandler would be the proper solution...
Regards /Brian -----Original Message----- From: Assaf Flatto [mailto:[email protected]] Sent: 26. april 2010 10:55 To: [email protected] Subject: Re: [Nagios-users] Problem with notification config Brian Ipsen wrote: > > Hi > > I'm having an issue with notification handling and escalation.. > > As far as I can see, the notification counter on a service-check > increments by one every time a notification is sent - no matter > whether the notification is a warning or a critical notification. > > Well, I have a group of users, that only should receive the first two > warning notifications - and if the check changes state to critical, > they should only receive the 2 first critical notifications. > > I've tried using service escalations - but I don't think this can be > used, since warning and critical notifications simply increment the > notification number by one - the number is not reset when changing > from warning to critical. > > My service escalation config looks like this: > > define serviceescalation { > > hostgroup_name Hosts-Gold > > service_description Service1,Service2,Service3 > > contact_groups grp-expiration,grp-drift,nt-admins > > first_notification 0 > > last_notification 1 > > notification_interval 60 > > escalation_period 24x7 > > escalation_options w > > } > > define serviceescalation { > > hostgroup_name Hosts-Gold > > service_description Service1,Service2,Service3 > > contact_groups grp-expiration,grp-drift,nt-admins > > first_notification 0 > > last_notification 1 > > notification_interval 60 > > escalation_period 24x7 > > escalation_options c > > } > > The questions is whether my need for this notification scheme is > possible during the configuration - or it only can be done by writing > an event-handler ?? > > Regards > > /Brian > From what i can see in your config you are only sending 1 alert in any case . what you might want to do is change the notifications to 1-2 in the warning category and 3-4 when it is critical that way if it is stay in "warning" - the group is notified in the first 2 notifications only . If it moves to critical after - they get the next 2 messages . and you can define a new group ( with the same contacts) and give it the same setting as the warning but for the critical - and that way cover both escalation paths. Assaf -- Never,Ever Cut A Deal With a Dragon I am doing a Charity Bike ride On the 27 of June for the Capital to Coast Charity. Please help by Donating http://www.justgiving.com/Lovefilm-capital-to-coast ---------------------------------------------------------------------------- -- _______________________________________________ Nagios-users mailing list [email protected] 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 ------------------------------------------------------------------------------ _______________________________________________ Nagios-users mailing list [email protected] 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
