Page 1 of 1

contactgroup is not defined

Posted: Mon Aug 15, 2016 2:15 pm
by k2fujative1
Hi All,

I keep getting this error:
"Error: Contactgroup 'aia-admins' is not defined anywhere
"Error: Could not add contactgroup 'aia-admins' to host (config file '/usr/local/nagios/etc/objects/localhost.cfg', starting on line 24)
"Error processing object config files!

I cannot get nagios to pass the syntax check.

Any suggestions would be appreciated. Thanks!

Re: contactgroup is not defined

Posted: Mon Aug 15, 2016 2:38 pm
by mcapra
Can you show us the contents of:

/usr/local/nagios/etc/objects/localhost.cfg
/usr/local/nagios/etc/objects/contacts.cfg

Re: contactgroup is not defined

Posted: Thu Aug 18, 2016 4:48 am
by digdarshan
@k2fujative1 you have defined "aia-admins" as contact while defining host or service in localhost.cfg. There should be a definition for same contact in "/usr/local/nagios/etc/objects/contacts.cfg".
Please validate the contacts defined in "/usr/local/nagios/etc/objects/localhost.cfg" and "/usr/local/nagios/etc/objects/contacts.cfg" and if "aia-admins" is missing please add it.

Re: contactgroup is not defined

Posted: Thu Aug 18, 2016 10:12 am
by rkennedy
Thanks @digdarshan!

@k2fujative1 - please see the previous responses, and let us know if you have any further questions.