Service Escalation Timing Issue

Jeff Tillotson jtillotson at techtarget.com
Tue Jun 22 18:44:14 CEST 2010


On Tue, Jun 22, 2010 at 11:31:46AM -0400, Assaf Flatto wrote:
>Jeff Tillotson wrote:
>> On Tue, Jun 22, 2010 at 05:53:45AM -0400, Assaf Flatto wrote:
>>   
>>> Tillotson, Jeff wrote:
>>>     
>>>> I've got a service that I've set up with the following requirements.  E-mail a certain group after service has been down for 5 minutes.  page when service has been down for 10 minutes.  Then, page again after 30 minutes.  I'm fairly certain my problem is with notification_interval in the service_escalation and that I'm misunderstanding this from the documentation:
>>>> "When defining notification escalations, it is important to keep in mind that any contact groups that were members of "lower" escalations (i.e. those with lower notification number ranges) should also be included in "higher" escalation definitions. This should be done to ensure that anyone who gets notified of a problem continues to get notified as the problem is escalated."
>>   
>I think this is what you need :
>
>
>define serviceescalation {
>      hostgroup_name            location-v7apache
>      service_description       v7apache-check
>      first_notification        1 #(after 5 minutes)
>      last_notification         0
>      notification_interval     300
>      contact_groups            nopage, core
>}
>
>define serviceescalation {
>      hostgroup_name            location-v7apache
>      service_description       v7apache-check
>      first_notification        6 # (5x 5minutes = 25 after the first notification)
>      last_notification         0
>      notification_interval     300
>      contact_groups            nopage, core
>}
>
>
>define serviceescalation {
>      hostgroup_name            location-v7apache
>      service_description       v7apache-check
>      first_notification        2 #(2x5 minutes)
>      last_notification         0
>      notification_interval     300
>      contact_groups            page
>}
>
>
>define serviceescalation {
>      hostgroup_name            location-v7apache
>      service_description       v7apache-check
>      first_notification        8 # (6 x 5minutes = 30 after the first notification)
>      last_notification         0
>      notification_interval     300
>      contact_groups            page
>}
>

Thanks for you response and feedback.  I got what I needed with the
following configs.  It make sense now but it wasn't obvious to me in the
beginning.

define serviceescalation {
       hostgroup_name            location-v7apache
       service_description       v7apache-check
       first_notification        5  # notification interval is set to 60s
                                    # so the first notification goes out
                                    # after five minutes
       last_notification         5
       notification_interval     300 # It sets the notification interval
                                     # to 5 minutes
       contact_groups            nopage, core
}

define serviceescalation {
       hostgroup_name            location-v7apache
       service_description       v7apache-check
       first_notification        6    # Because notification interval was 
                                      # set to 5 minutes, this check 
                                      # goes out 5 minutes later.
       last_notification         0
       notification_interval     1800 # Set the notification interval to 
                                      # 30 minutes. So the remaining 
                                      # notifications go out at 30 minute
                                      # intervals.
       contact_groups            nopage, core
}

------------------------------------------------------------------------------
ThinkGeek and WIRED's GeekDad team up for the Ultimate 
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the 
lucky parental unit.  See the prize list and enter to win: 
http://p.sf.net/sfu/thinkgeek-promo
_______________________________________________
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