Contact groups throwing error
Posted: Thu Feb 25, 2021 6:01 pm
I am getting:
Error: Contactgroup 'cerner-admins' is not defined anywhere
Error: Could not add contactgroup 'cerner-admins' to host (config file '/usr/local/nagios/etc/hosts/fai02024.cfg', starting on line 16)
I believe I have cleared all the hosts that had references to this but I continue to get the errors. I followed
https://support.nagios.com/forum/viewto ... =7&t=40472
and updated the servicetemplates and contactgroups file (this is the .old versions) however I am stuck as to why it reports the above.
Per the above article I ran the following command(s) and got:
# grep -R "cerner-admins" /usr/local/nagios/etc/
/usr/local/nagios/etc/servicetemplates.cfg.old: contact_groups cerner-admins
/usr/local/nagios/etc/servicetemplates.cfg.old: contact_groups cerner-admins
/usr/local/nagios/etc/contactgroups.cfg.old: contactgroup_name cerner-admins
[root@fai0nagiosxi etc]# grep "/usr/local/nagios/etc/servers" /usr/local/nagios/etc/nagios.cfg
[root@fai0nagiosxi etc]#
Any thoughts?
Tom Mattingly
Error: Contactgroup 'cerner-admins' is not defined anywhere
Error: Could not add contactgroup 'cerner-admins' to host (config file '/usr/local/nagios/etc/hosts/fai02024.cfg', starting on line 16)
I believe I have cleared all the hosts that had references to this but I continue to get the errors. I followed
https://support.nagios.com/forum/viewto ... =7&t=40472
and updated the servicetemplates and contactgroups file (this is the .old versions) however I am stuck as to why it reports the above.
Per the above article I ran the following command(s) and got:
# grep -R "cerner-admins" /usr/local/nagios/etc/
/usr/local/nagios/etc/servicetemplates.cfg.old: contact_groups cerner-admins
/usr/local/nagios/etc/servicetemplates.cfg.old: contact_groups cerner-admins
/usr/local/nagios/etc/contactgroups.cfg.old: contactgroup_name cerner-admins
[root@fai0nagiosxi etc]# grep "/usr/local/nagios/etc/servers" /usr/local/nagios/etc/nagios.cfg
[root@fai0nagiosxi etc]#
Any thoughts?
Tom Mattingly