No contact_groups in hosts definitions?



I have little problem with my Nagios.
When I try to add contact_groups line in hosts.cfg file I get following error message:

[code]Error: Invalid host object directive ‘contact_groups’.

Error: Could not add object property in file ‘/usr/local/nagios/etc/hosts.cfg’ on line 17373.

In services.cfg file I have contact_groups definition and it works great.
In this documentation … tions.html is line “Each host and service definition has a <contact_groups> option that specifies what contact groups receive notifications for that particular host or service.”

Does anybody know where I went wrong?


/hosts.cfg’ on line 17373.

17K lines? O_o

could you copy that line?


[quote=“luca”]/hosts.cfg’ on line 17373.

17K lines? O_o

could you copy that line?[/quote]

yep :slight_smile:

the line is


that group exists? :smiley:

have you tried the check config option?
/usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg does it give any extra info/errors?


Yes group exists, same group works fine in services.cfg.
Check config option gives only same result as I send in my first message.


no idea… :confused:

could you try sending the definition of the whole host?