contactgroups assgined to service groups
Jim Avery
jim at jimavery.me.uk
Sat Apr 18 23:37:52 CEST 2009
2009/4/18 Palle L Jensen <palleje at gmail.com>:
> Hello,
>
>
>
> Been searching the manual to see if it possible to assign a contact group to
> a service group, but not been able to find that it’s possible.
>
>
>
> Kinda like this:
>
>
>
> Define Servicegroup (
>
> Servicegroup_name uptime
>
> Alias Host uptime
>
> Contactgroup acontactgroupname
>
> )
I guess you can do something similar using a service template which
sets just the servicegroup and the contact_group. Apply the template
to each service which you want in your servicegroup.
For example, your service template called 'uptime' will look like this:
define service {
name uptime
servicegroups +uptime
contact_groups +acontactgroupname
register 0
}
and in each service definition which will be in the group (assuming
you're already using a generic-service template), put:
use uptime,generic-service
to apply the template on top of the generic one.
Cheers,
Jim
------------------------------------------------------------------------------
Stay on top of everything new and different, both inside and
around Java (TM) technology - register by April 22, and save
$200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco.
300 plus technical and hands-on sessions. Register today.
Use priority code J9JMT32. http://p.sf.net/sfu/p
_______________________________________________
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