Add hostgroup to servicegroup?

Andreas Ericsson ae at op5.se
Sat Nov 8 15:59:11 CET 2008


Sean Carolan wrote:
> Why can't you add an entire hostgroup to servicegroup?  As it stands I
> would have to maintain an entire list of hosts for each service group,
> something I'm not keen on doing.  It would be so much easier if we
> could just drop the hostgroup name into the servicegroup definition
> and be done with it.  Is this planned for a future version of Nagios?
> 

You can define your service like this:

define service{
	service_description foo
	hostgroup_name      bar
	servicegroups       baz
}

If that doesn't satisfy your needs, you'll have to clarify your question.

-- 
Andreas Ericsson                   andreas.ericsson at op5.se
OP5 AB                             www.op5.se
Tel: +46 8-230225                  Fax: +46 8-230231

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
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