I'm getting an error after upgrading to Nagios XI latest version.
Whenever I try to update some service or host it didn't complete. I checked the logs and it says:
Tried to check the config files in CCM and it returns the same thing.'xi_timeperiod_24x7' (config file '/usr/local/nagios/etc/timeperiods.cfg', starting on line 185)
Error: Could not add object property in file '/usr/local/nagios/etc/timeperiods.cfg' on line 186.
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.
So, I opened the file using VI in CentOS and it does not contain duplicate entry and it does not show me a duplicate entry in Web Interface too.Warning: Duplicate definition found for timeperiod 'xi_timeperiod_24x7' (config file '/usr/local/nagios/etc/timeperiods.cfg', starting on line 185)
Error: Could not add object property in file '/usr/local/nagios/etc/timeperiods.cfg' on line 186.
Error processing object config files!
The file's permissions are ok too.