Service and host notifications: best practise

Paul M. Dubuc work at paul.dubuc.org
Fri Jan 27 18:56:14 CET 2012


Keith Edmunds wrote:
>> Escalations are your friend.
>
> Thanks for the quick and helpful response. Unless I've misunderstood, we
> would need to configure a service escalation for each service and each of
> the host groups - is that right?
>
> What we really need it notification rather than escalation, although I
> realise we can use escalations in a similar way to notifications. I'd like
> to be able to say, "If any service fails on any host in hostgroup A,
> notify these people".
>
> Thanks,
> Keith

The only way I can think of to do this is to use a template for services that 
belong to a particular hostgroup:

define service{
	name		hostgroup_A_service
	register	0

	contacts	managerA
	...
}

Have all the services on hosts in hostgroup A use that template.  Note that 
using the 'contacts' directive won't override any contacts that you specify 
with the contact_groups directive in other templates.  I use 'contacts' to 
specify contacts in addition to the default ones that I specify with 
'contact_groups'.  So you can specify the "IT_team" as a contact_group for all 
services and hosts and use 'contacts' to specify the manager for particular 
services.

Hope this helps,
Paul Dubuc




------------------------------------------------------------------------------
Try before you buy = See our experts in action!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-dev2
_______________________________________________
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