why can't a servicegroup have no members?

Kevin Hanser kevin at mica.net
Thu Aug 11 19:52:30 CEST 2005


Hmmm... went back and tried it, and sure enough it's working for me.  I
think it was complaining before because I had a servicegroup with no
members, and also didn't have any services defined with the
"servicegroups" directive.  Looks like one or the other is required..

I was confused because I created my servicegroup first (w/out any
members) and then did a config check.  At that point it complained that
the servicegroup had no members and wouldn't go.  Apparently though
after I've added the "servicegroup" directive to some services, it's no
longer complaining about the "members" being missing.

So I guess I need one or the other, I was only getting an error because
I had just created the servicegroup and not added anything to it yet.

thx!

k

On Wed, 2005-08-10 at 17:28 -0400, Chester R. Hosey wrote:
> Using 2.0b4 also:
> 
> define service{
>         use                             nrpe-load-check
>         host_name                       chet-linux-desktop
>         servicegroups test
> }
> 
> define servicegroup{
>         servicegroup_name       test
>         alias                   Sample Group
> }
> 
> 
> /usr/bin/nagios -v /etc/nagios/nagios.cfg liked it.
> 
> Chet
> 
> 
> On Wed, 2005-08-10 at 17:14 -0400, Kevin Hanser wrote:
> > I am running Nagios 2.0b4, and I'm trying to create some servicegroups
> > for nice display and whatnot.
> > 
> > I can get them to work fine, as long as I specify at least one member in
> > the servicegroups definition... However, I'd like to create a
> > servicegroup for "router interfaces", and I don't really want to type in
> > every description for every router interface I have on every router,
> > when I've already put it into the service definition.  I see that I can
> > specify servicegroups in the service definition and that would be
> > perfect for me, except for one thing:  nagios won't let me create a
> > servicegroup w/out any members.
> > 
> > I would like to create the servicegroup w/no members in its definition,
> > and then use the "servicegroups" directive w/in the service definition
> > to make each interface a member of the servicegroup.  So I guess my
> > question is... Why is the "members" directive required when defining a
> > servicegroup?
> > 
> > Thx!
> > 
> > k
> > 
> > 
> > -------------------------------------------------------
> > SF.Net email is Sponsored by the Better Software Conference & EXPO
> > September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
> > Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
> > Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
> > _______________________________________________
> > 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


-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
_______________________________________________
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