Full error is:
Code: Select all
Website: https://www.nagios.org
Reading configuration data...
Read main config file okay...
Error: Contact 'john.doe' is not defined anywhere!
Error: Could not add contact 'john.doe' to host (config file '/usr/local/nagios/etc/hosts/HQ-TRANSIT-SW.cfg', starting on line 16)
Error processing object config files!
***> One or more problems was encountered while processing the config files...
Check your configuration file(s) to ensure that they contain valid
directives and data definitions. If you are upgrading from a previous
version of Nagios, you should be aware that some variables/definitions
may have been removed or modified in this version. Make sure to read
the HTML documentation regarding the config files, as well as the
'Whats New' section to find out what has changed.
Code: Select all
[root@nagios01 ~]# find /usr/local/nagios/etc/hosts/ -type f -exec grep -H 'john.doe' {} \;
/usr/local/nagios/etc/hosts/HQ-BACKBONE-SW.cfg: contacts john.doe
/usr/local/nagios/etc/hosts/HQ-TRANSIT-SW.cfg: contacts john.doe
/usr/local/nagios/etc/hosts/HQ-WAN_TRANSIT-SW.cfg: contacts john.doe