contactgroup is not defined

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
k2fujative1
Posts: 1
Joined: Mon Aug 15, 2016 2:05 pm

contactgroup is not defined

Post 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!
User avatar
mcapra
Posts: 3739
Joined: Thu May 05, 2016 3:54 pm

Re: contactgroup is not defined

Post by mcapra »

Can you show us the contents of:

/usr/local/nagios/etc/objects/localhost.cfg
/usr/local/nagios/etc/objects/contacts.cfg
Former Nagios employee
https://www.mcapra.com/
digdarshan
Posts: 1
Joined: Thu Aug 18, 2016 4:38 am

Re: contactgroup is not defined

Post 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.
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: contactgroup is not defined

Post by rkennedy »

Thanks @digdarshan!

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