Duplicate definitions after upgrading to 1.3G

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
hdiadmins
Posts: 8
Joined: Fri Oct 22, 2010 8:05 am
Location: São Paulo, Brazil

Duplicate definitions after upgrading to 1.3G

Post by hdiadmins »

Hi there,
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:
'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.
Tried to check the config files in CCM and it returns the same thing.
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!
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.

The file's permissions are ok too.
mguthrie
Posts: 4380
Joined: Mon Jun 14, 2010 10:21 am

Re: Duplicate definitions after upgrading to 1.3G

Post by mguthrie »

Check your timeperiod definitions in the CCM to make sure there isn't a duplicate that got generated somehow (or cloned).

You could also try the Write Config Tool, which will manually write the configs from the DB to the files, then try verifying again. Occasionally you'll get a ghost config file that is not in the NagiosQL database, but it's in the directory.

You could also do a:

Code: Select all

grep -n "xi_timeperiod_24x7" *
in the /usr/local/nagios/etc directory to see where that config is showing up.
Locked