Different contact groups for the same host group

Cook, Garry GWCOOK at mactec.com
Thu Aug 19 16:44:04 CEST 2004


davidj at impol.net wrote:
> Hi,
> 
> I apologise if this has been asked before, however after searching
> the mailing list reading the docs, I have found nothing. 
> 
> hostgroup example:
> 
> # 'linux-servers' host group definition
> define hostgroup{
>         hostgroup_name  linux-servers
>         alias           Linux Servers
>         contact_groups  Piet,Reno,Jacquesb
>         members         Firewall1,Firewall2
>         }
> 
> Now the above is fine, however I need to add another Linux box with
> different contacts... now the only way I can see to do that 
> is to create another hostgroup, which I do not really want to do as I
> would like all Linux servers to be under the Linux Servers
> hostgroup...  

IIRC, what you've shown us above could be considered the 'default'
configuration for hosts in the 'linux-servers' hostgroup. Therefore, if
you create a more specific host definition, with the alternative
contacts listed, it should override your default above.
Consult the docs again and/or spend a few minutes testing this theory.
I'm fairly sure that this is how the template configuration system
works.


> Any help appreciated :)
> 
> Kind regards,
> 
> David Jacobson
> Network Security Administrator



Garry W. Cook, CCNA
Network Infrastructure Manager
MACTEC, Inc. - http://www.mactec.com/
303.308.6228 (Office) - 720.220.1862 (Mobile)


-------------------------------------------------------
SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media
100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33
Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift.
http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285
_______________________________________________
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