Working with [contact|host] groups and members

Andreas Ericsson ae at op5.se
Fri Sep 29 10:48:53 CEST 2006


Thomas Sluyter wrote:
> On 28 Sep, 2006, at 15:46, Morris, Patrick wrote:
> 
>>> The documentation clearly states that you can use either one
>>> of these methodes to assign membership of a group. So why is
>>> it that Nagios -forces- you to at least have one member in the  
>>> group definition?
>> What version are you using?
> 
> As I mentioned earlier: version 2.5.
> 
>> The group does need to be defined separately from the hosts, and it  
>> does need to have at least one member,
>> but (on the setups I work with, anyway) that member does *not* need  
>> to be defined in the hostgroup definition.
> 
> Remarkable. What you describe is exactly what I want, but in my case  
> it appears to complain about the fact that my "define hostgroup" is  
> lacking a "members" line. Also, the Nagios documentation has the  
> "members" line coloured red in the hostgroup config section,  
> indicating it a requirement for a HG definition.
> 

Since 2.0 (I think), the 'members' line is optional. However, hostgroups 
still need to *have* members. The reason the 'members' line is optional 
is the introduction of the 'hostgroups' variable in the host object 
definition.

So, unless at least one of your hosts have a line saying

"hostgroups  your-hostgroup-name"

you *do* need the 'members' line.

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

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
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