Ghost contact preventing changes
Posted: Tue Aug 27, 2019 2:56 pm
We have Nagios XI 5.6.5. We are trying to add a new host to the configuration for monitoring, via the standard Windows SNMP wizard, but when it goes to write the config, it fails, and we are getting an error message about "john.doe" on a .cfg file. The user "john.doe" was deleted, but apparently is still present on three .cfg files. How do we get rid of him, and proceed?
Full error is:
Found three entries that still have this user:
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