Escalations Question

mark.potter at academy.com mark.potter at academy.com
Tue Dec 4 22:43:51 CET 2007


> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> mark.potter at academy.com wrote:
> 
> > I have looked through the docs and the list and this seems right but I
> > would like some confirmation before I implement service and host
> > escalations. The situation is this: I have been tasked with getting a
> > single email to helpdesk (they do email to ticket) per Nagios alert 
and
> > no more. They don't want recovery or further notifications. This is 
the
> > first one I have written for a group of webservers:
> > 
> > define  serviceescalation {
> >         host_name 
> > plwsweb01,plwsweb02,plwsweb03,plwsweb05,plwsweb06
> >         service_description             Apache - Maximum Connections
> > Check,HTTP - Port 80 Check - Production Systems,Ping - Simple Ping 
Check
> > - Production
> >         contact_groups                  helpdesk,sysalertsinfra
> >         first_notification              1
> >         last_notification               1
> >         notification_interval           30
> >         }
> > 
> > According to my understanding, and I could be wrong, this will send 
the
> > first notification to groups (helpdesk and sysalertsinfra) and the 
rest,
> > if I define no further escalations, will go the default contact for 
that
> > group.
> > 
> 
> - From what you have specified here, the first and last notification 
will
> go on this escalation to the contact_group you have listed. Since you
> don't have the escalation options (w,u,c,r) listed, it will send the
> alerts based off of whatever you have specified in the service
> configuration definition.
> 
> You would need to make sure you have this listed if you only want your
> escalation to send the critical.
> 
> escalation_options   c
> 
> Although, if you only want one page to go out on critical, then I
> wouldn't mess with the escalation at all. I would specify the service to
> only notifiy you once, and only once on a critical back in your service
> definition.
> 
> 
> Generally, you would use escalations like I explain here:
> 
> I use RT (Request Tracker) to receive alerts from Nagios. The first
> notification defined through the service definition goes to my alarms
> group. This sends notification to RT, my pager, and my bosses pager.
> 
> I then escalate the second notification, such as listed below, to only
> go to my pager and my bosses pager every 60 minutes forever until one of
> us responds.
> 
> > 1. Are the multiple services/hosts allowed here?
> 
> Yes. You can use hostgroupescalations:
> 
> define hostescalation{
>         hostgroup_name          corp-monitors
>         first_notification      2
>         last_notification       0
>         notification_interval   60
>         contact_groups          itproblems
>         }
> 
> > 2. Is there a better way to do this?
> 
> That depends on what you're trying or wanting to do. Hostgroup
> escalations just saves you typing time if you want to escalate based on
> hostgroups.
> 
> Services you won't be able to do in multiples, so you'll have to setup a
> service escalation for each service on each host.
> 
> Hope this helps you a bit.
> 
Max,

That works pretty well actually. I will add everyone that needs to get the 
first notification to the proper group and then escalate as you have 
shown. The logic you provided makes more sense than trying to capture to 
the first and only the first notification. Thanks so much for your help.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-lists.org/archive/users/attachments/20071204/0c066ef3/attachment.html>
-------------- next part --------------
-------------------------------------------------------------------------
SF.Net email is sponsored by: The Future of Linux Business White Paper
from Novell.  From the desktop to the data center, Linux is going
mainstream.  Let it simplify your IT future.
http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4
-------------- 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