I'm migrating a config from a very old version of Nagios (1.5 something I think) to Nagios 3.5.1.

The config I'm moving has contact groups specified for the host groups.

The new Nagios says Error: Invalid hostgroup object directive 'contact_groups'.

What's the right way to set the groups to be contacted for a hostgroup in the new Nagios? Or are we supposed to set the contact groups for each host manually (which would be quite the process?) Can anyone point me to any release notes or documentation about this change?

(I've looked for release notes mentioning this and for documentation explaining the right way to do this, but so far have had no luck).


As per this ChangeLog :

The contact groups directive has moved from hostgroup definitions to host definitions

since version 2.0b1 released on December 15 2004.

From now, contact_groups can only be applied to hosts.

By the way, from Nagios support Forum :

The proper way to do this is to use host templates. You can then add the contacts and hostgroups you want to the template, and then apply the template to the hosts.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.