Deleted 'testuser' Contact and now getting config errors ...
Posted: Fri Nov 15, 2019 12:40 pm
Hello:
I have deleted a Contact called "testuser" without checking through Contact Groups, etc., and now getting config errors when trying to "Apply Configuration".
I have found this post - https://support.nagios.com/forum/viewto ... 16&t=54439 - have completed the following steps, below, next to "STEPS:", but am still getting errors. I have provided the edited output, below, under "RESULT:".
I require assistance to get this fixed. Thank you!
STEPS: Go to the CCM > Tools > Config File Management, and click on all three buttons in the following order: Delete Files > Write Configs > Verify Files.
RESULT:
Verify files:
Error: Contact 'testuser' has no service notification commands defined!
Error: Contact 'testuser' has no host notification commands defined!
Nagios Core 4.4.5
Copyright (c) 2009-present Nagios Core Development Team and Community Contributors
Copyright (c) 1999-2009 Ethan Galstad
Last Modified: 2019-08-20
License: GPL
Website: https://www.nagios.org
Reading configuration data...
Read main config file okay...
Warning: Duplicate definition found for service 'Uptime' on host '<EDITED>' (config file '/usr/local/nagios/etc/services/<EDITED>.cfg', starting on line 204)
Warning: Duplicate definition found for service 'Print Spooler' on host '<EDITED>' (config file '/usr/local/nagios/etc/services/<EDITED>.cfg', starting on line 166)
Warning: Duplicate definition found for service 'Ping' on host '<EDITED>' (config file '/usr/local/nagios/etc/services/<EDITED>.cfg', starting on line 130)
Warning: Duplicate definition found for service 'Memory Usage' on host '<EDITED>' (config file '/usr/local/nagios/etc/services/<EDITED>.cfg', starting on line 92)
Warning: Duplicate definition found for service 'Drive C: Disk Usage' on host '<EDITED>' (config file '/usr/local/nagios/etc/services/<EDITED>.cfg', starting on line 54)
Warning: Duplicate definition found for service 'CPU Usage' on host '<EDITED>' (config file '/usr/local/nagios/etc/services/<EDITED>.cfg', starting on line 16)
Read object config files okay...
Running pre-flight check on configuration data...
Checking objects...
Checked 1149 services.
Warning: Host '<IP_EDITED>.2' has no default contacts or contactgroups defined!
Warning: Host '<IP_EDITED>.3' has no default contacts or contactgroups defined!
Warning: Host '<IP_EDITED>.4' has no default contacts or contactgroups defined!
Warning: Host '<IP_EDITED>.5' has no default contacts or contactgroups defined!
Warning: Host '<IP_EDITED>.6' has no default contacts or contactgroups defined!
Warning: Host '<IP_EDITED>.7' has no default contacts or contactgroups defined!
Warning: Host '<IP_EDITED>.8' has no default contacts or contactgroups defined!
Checked 351 hosts.
Checked 45 host groups.
Checked 43 service groups.
Error: Contact 'testuser' has no service notification commands defined!
Error: Contact 'testuser' has no host notification commands defined!
Warning: Contact 'testuser' has no service notification time period defined!
Warning: Contact 'testuser' has no host notification time period defined!
Checked 33 contacts.
Checked 7 contact groups.
Checked 169 commands.
Checked 39 time periods.
Checked 0 host escalations.
Checked 0 service escalations.
Checking for circular paths...
Checked 351 hosts
Checked 0 service dependencies
Checked 0 host dependencies
Checked 39 timeperiods
Checking global event handlers...
Checking obsessive compulsive processor commands...
Checking misc settings...
Total Warnings: 9
Total Errors: 2
***> One or more problems was encountered while running the pre-flight check...
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.
I have deleted a Contact called "testuser" without checking through Contact Groups, etc., and now getting config errors when trying to "Apply Configuration".
I have found this post - https://support.nagios.com/forum/viewto ... 16&t=54439 - have completed the following steps, below, next to "STEPS:", but am still getting errors. I have provided the edited output, below, under "RESULT:".
I require assistance to get this fixed. Thank you!
STEPS: Go to the CCM > Tools > Config File Management, and click on all three buttons in the following order: Delete Files > Write Configs > Verify Files.
RESULT:
Verify files:
Error: Contact 'testuser' has no service notification commands defined!
Error: Contact 'testuser' has no host notification commands defined!
Nagios Core 4.4.5
Copyright (c) 2009-present Nagios Core Development Team and Community Contributors
Copyright (c) 1999-2009 Ethan Galstad
Last Modified: 2019-08-20
License: GPL
Website: https://www.nagios.org
Reading configuration data...
Read main config file okay...
Warning: Duplicate definition found for service 'Uptime' on host '<EDITED>' (config file '/usr/local/nagios/etc/services/<EDITED>.cfg', starting on line 204)
Warning: Duplicate definition found for service 'Print Spooler' on host '<EDITED>' (config file '/usr/local/nagios/etc/services/<EDITED>.cfg', starting on line 166)
Warning: Duplicate definition found for service 'Ping' on host '<EDITED>' (config file '/usr/local/nagios/etc/services/<EDITED>.cfg', starting on line 130)
Warning: Duplicate definition found for service 'Memory Usage' on host '<EDITED>' (config file '/usr/local/nagios/etc/services/<EDITED>.cfg', starting on line 92)
Warning: Duplicate definition found for service 'Drive C: Disk Usage' on host '<EDITED>' (config file '/usr/local/nagios/etc/services/<EDITED>.cfg', starting on line 54)
Warning: Duplicate definition found for service 'CPU Usage' on host '<EDITED>' (config file '/usr/local/nagios/etc/services/<EDITED>.cfg', starting on line 16)
Read object config files okay...
Running pre-flight check on configuration data...
Checking objects...
Checked 1149 services.
Warning: Host '<IP_EDITED>.2' has no default contacts or contactgroups defined!
Warning: Host '<IP_EDITED>.3' has no default contacts or contactgroups defined!
Warning: Host '<IP_EDITED>.4' has no default contacts or contactgroups defined!
Warning: Host '<IP_EDITED>.5' has no default contacts or contactgroups defined!
Warning: Host '<IP_EDITED>.6' has no default contacts or contactgroups defined!
Warning: Host '<IP_EDITED>.7' has no default contacts or contactgroups defined!
Warning: Host '<IP_EDITED>.8' has no default contacts or contactgroups defined!
Checked 351 hosts.
Checked 45 host groups.
Checked 43 service groups.
Error: Contact 'testuser' has no service notification commands defined!
Error: Contact 'testuser' has no host notification commands defined!
Warning: Contact 'testuser' has no service notification time period defined!
Warning: Contact 'testuser' has no host notification time period defined!
Checked 33 contacts.
Checked 7 contact groups.
Checked 169 commands.
Checked 39 time periods.
Checked 0 host escalations.
Checked 0 service escalations.
Checking for circular paths...
Checked 351 hosts
Checked 0 service dependencies
Checked 0 host dependencies
Checked 39 timeperiods
Checking global event handlers...
Checking obsessive compulsive processor commands...
Checking misc settings...
Total Warnings: 9
Total Errors: 2
***> One or more problems was encountered while running the pre-flight check...
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.