Nagios 2.0 CVS and contact_groups

Andreas Ericsson ae at op5.se
Thu Feb 10 19:52:38 CET 2005


Holger Wirtz wrote:
> Hi,
> 
> I have lots of hosts and services. Today I tried Nagios 2.0 CVS. It
> works fine for me (I am an admin and I see EVERY host and service).
> 
> If I try to insert a line with "contact_groups" inside a host or service
> definition I get an error while reloading for each host/service:
> 
> --- cut here ---
> Nagios 2.0b1
> Copyright (c) 1999-2005 Ethan Galstad (www.nagios.org)
> Last Modified: 12-15-2004
> License: GPL
> 
> Reading configuration data...
> 
> Running pre-flight check on configuration data...
> 
> Checking services...
> Warning: Service 'PING' on host 'foo.bar'  has no default contact group(s)
> defined!
> ...
> --- cut here ---
> 
> The sample configs have this line... and even the hostgroups file. But
> putting a contact_groups line inside a hostgroup definition I get also
> an error:
> 
> --- cut here ---
> Nagios 2.0b1
> Copyright (c) 1999-2005 Ethan Galstad (www.nagios.org)
> Last Modified: 12-15-2004
> License: GPL
> 
> 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.

> 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





More information about the Users mailing list