Nagios 2.0 CVS and contact_groups

Andreas Ericsson ae at op5.se
Fri Feb 11 10:17:12 CET 2005


Holger Wirtz wrote:
> Andreas,
> 
> On Thu, Feb 10, 2005 at 07:52:38PM +0100, Andreas Ericsson wrote:
> [Problem with contact_group defintion]
> 
>>>Reading configuration data...
>>>
>>>Error: Invalid hostgroup object directive 'contact_groups'.
>>
>>Read the changelog. contact_groups have been moved to host objects so as 
>>to adhere to the way services are configured.
> 
> 
> Ahhh, ok, sorry - that it. Now it works - but I really don't know
> exactly why.
> 
> I put contact_groups only in the host definitions - that won't work.
> It worked after putting contact_groups in the absolute base template of
> my host AND service definitions... 
> 

Hosts and services can have different contactgroups and they must be 
configured explicitly for both. I have long thought of adding cascading 
style contactgroups options (hostgroup -> host -> service, unless 
overridden somewhere), although that would in some ways rob the 
templates of one of their functions.

> Holger
> 
> 
>>>Error: Could not add object property in file
>>>'/usr/local/nagios/etc/hostgroups.c fg' on line 23.
>>>--- cut here ---
>>>
>>>Hm, this seems to be very strange because putting a line with
>>>"contact_groups" inside the object definition (hosts and services) works...
>>>
>>>Is this a bug or am I to stupid to configure nagios?
>>>
>>>Regards, Holger
>>
>>-- 
>>Andreas Ericsson                   andreas.ericsson at op5.se
>>OP5 AB                             www.op5.se
>>Lead Developer
>>
>>
>>-------------------------------------------------------
>>SF email is sponsored by - The IT Product Guide
>>Read honest & candid reviews on hundreds of IT Products from real users.
>>Discover which products truly live up to the hype. Start reading now.
>>http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
>>_______________________________________________
>>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
> 
> 

-- 
Andreas Ericsson                   andreas.ericsson at op5.se
OP5 AB                             www.op5.se
Lead Developer


-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
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