Snapshot/configuration Update issue
Posted: Mon Nov 23, 2015 11:44 am
After upgrading to 5.2.0 notice that when modifying a service in Nagios and apply the configuration getting the following error
"An error occurred while attempting to apply your configuration to Nagios Core. Monitoring engine configuration files have been rolled back to their last known good checkpoint."
Here included is the configuration error from the latest snapshot:
Nagios Core 4.1.1
Copyright (c) 2009-present Nagios Core Development Team and Community Contributors
Copyright (c) 1999-2009 Ethan Galstad
Last Modified: 08-19-2015
License: GPL
Website: https://www.nagios.org
Reading configuration data...
Read main config file okay...
Warning: Duplicate definition found for service 'HTTP' on host 'exmailbox01.sfmic.local' (config file '/usr/local/nagios/etc/services/exmailbox01.sfmic.local.cfg', starting on line 149)
Warning: Duplicate definition found for service 'Sendmail' on host 'oradb01test.sfmic.com' (config file '/usr/local/nagios/etc/services/oradb01test.sfmic.com.cfg', starting on line 619)
Warning: Duplicate definition found for service 'Load' on host 'oradb01test.sfmic.com' (config file '/usr/local/nagios/etc/services/oradb01test.sfmic.com.cfg', starting on line 442)
Warning: Duplicate definition found for service 'Ping' on host 'mssqldev01.sfmic.local' (config file '/usr/local/nagios/etc/services/mssqldev01.sfmic.local.cfg', starting on line 101)
Warning: Duplicate definition found for service 'HTTP' on host 'webrac2.sfmic.com' (config file '/usr/local/nagios/etc/services/webrac2.sfmic.com.cfg', starting on line 230)
Warning: Duplicate definition found for service 'HTTP' on host 'webrac2.sfmic.com' (config file '/usr/local/nagios/etc/services/webrac2.sfmic.com.cfg', starting on line 213)
Warning: Duplicate definition found for service 'HTTP' on host 'sslvpn.sfmic.local' (config file '/usr/local/nagios/etc/services/sslvpn.sfmic.local.cfg', starting on line 14)
Error: Service description, host name, or check command is NULL
Error: Could not register service (config file '/usr/local/nagios/etc/services/oradb01test.sfmic.com.cfg', starting on line 641)
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 defintions. 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.
"An error occurred while attempting to apply your configuration to Nagios Core. Monitoring engine configuration files have been rolled back to their last known good checkpoint."
Here included is the configuration error from the latest snapshot:
Nagios Core 4.1.1
Copyright (c) 2009-present Nagios Core Development Team and Community Contributors
Copyright (c) 1999-2009 Ethan Galstad
Last Modified: 08-19-2015
License: GPL
Website: https://www.nagios.org
Reading configuration data...
Read main config file okay...
Warning: Duplicate definition found for service 'HTTP' on host 'exmailbox01.sfmic.local' (config file '/usr/local/nagios/etc/services/exmailbox01.sfmic.local.cfg', starting on line 149)
Warning: Duplicate definition found for service 'Sendmail' on host 'oradb01test.sfmic.com' (config file '/usr/local/nagios/etc/services/oradb01test.sfmic.com.cfg', starting on line 619)
Warning: Duplicate definition found for service 'Load' on host 'oradb01test.sfmic.com' (config file '/usr/local/nagios/etc/services/oradb01test.sfmic.com.cfg', starting on line 442)
Warning: Duplicate definition found for service 'Ping' on host 'mssqldev01.sfmic.local' (config file '/usr/local/nagios/etc/services/mssqldev01.sfmic.local.cfg', starting on line 101)
Warning: Duplicate definition found for service 'HTTP' on host 'webrac2.sfmic.com' (config file '/usr/local/nagios/etc/services/webrac2.sfmic.com.cfg', starting on line 230)
Warning: Duplicate definition found for service 'HTTP' on host 'webrac2.sfmic.com' (config file '/usr/local/nagios/etc/services/webrac2.sfmic.com.cfg', starting on line 213)
Warning: Duplicate definition found for service 'HTTP' on host 'sslvpn.sfmic.local' (config file '/usr/local/nagios/etc/services/sslvpn.sfmic.local.cfg', starting on line 14)
Error: Service description, host name, or check command is NULL
Error: Could not register service (config file '/usr/local/nagios/etc/services/oradb01test.sfmic.com.cfg', starting on line 641)
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 defintions. 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.