Multiple contactgroups for a host through groups or templates

Guy Waugh guidosh at gmail.com
Wed Jul 8 18:17:52 CEST 2009


Hi all,

I'm seeking a way to be able to associate a contactgroup with a server, in
addition to the contactgroups that are already associated with the server
through a hosttemplate, such that if the host goes down, both contactgroups
are notified. As I outlined in a post to this list a couple of days ago,
I've been trying to do it by associating the host with a second hosttemplate
that has the contactgroup associated with it, but only the contactgroup
associated with the first hosttemplate in the list is notified if the host
goes down.

For example:

define host {
   host_name   doris
   use     oncall-host,unix-host
   register 1
}

define host {
   host_name   oncall-host
   contact_groups   oncall-primary
   register 0
}

define host {
   host_name   unix-host
   contact_groups   +unix-admin
   register 0
}

When doris goes down, only the 'oncall-primary' contactgroup is notified,
not 'unix-admin'.

Short of manually associating the contactgroup with the host, can anyone
suggest a way I might achieve my desired configuration using groups or
templates?

Thanks,
Guy.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-lists.org/archive/users/attachments/20090708/889071f8/attachment.html>
-------------- next part --------------
------------------------------------------------------------------------------
Enter the BlackBerry Developer Challenge  
This is your chance to win up to $100,000 in prizes! For a limited time, 
vendors submitting new applications to BlackBerry App World(TM) will have
the opportunity to enter the BlackBerry Developer Challenge. See full prize  
details at: http://p.sf.net/sfu/Challenge
-------------- 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