Nagios errors !!

Peter Hicks peter.hicks at poggs.co.uk
Wed Jan 5 10:12:05 CET 2005


*****************************************************************************
N.B. Please make sure you cc: the list in, as other people can then benefit
     from reading this thread.
*****************************************************************************

On Wed, Jan 05, 2005 at 09:01:49AM +0000, Jai Ganesh wrote:

> hostgroups.cfg :
> 
> define hostgroup{
>         hostgroup_name  flcd-servers
>         alias           The Free Linux CD Project Servers
>         contact_groups  flcd-admins
>         members         example.com
>         members         10.10.22.220
> }

As the error said:

  Error: Invalid hostgroup object directive 'contact_groups'.
  Error: Could not add object property in file
    '/usr/local/nagios/etc/hostgroups.cfg' on line 4.

'contact_groups' is not a valid statement inside a hostgroup definition -
see http://nagios.sourceforge.net/docs/2_0/xodtemplate.html#hostgroup.

The behaviour has changed between Nagios 1.x and 2.x, documented in the
changelog:

  "Contact group changes - The contact_groups directive has been moved from
  hostgroup definitions to host definitions. This was done in order to
  maintain consistency with the way service contacts are specified. Make
  sure to update your config files!"



Peter.


-------------------------------------------------------
The SF.Net email is sponsored by: Beat the post-holiday blues
Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek.
It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt
_______________________________________________
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