Nagios Core Config changes not saved to filesystem.

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
sal@coned
Posts: 72
Joined: Thu Jan 21, 2010 4:42 pm

Nagios Core Config changes not saved to filesystem.

Post by sal@coned »

I upgraded Nagios from 2009R1.1F to 2009R1.1G and keep getting an error about duplicate timeperiods ( error text below ).
When I check the file '/usr/local/nagios/etc/timeperiods.cfg' I do not see any definition for timeperiod 'xi_timeperiod_24x7'. Also the error says to look at line 174, but there are only 156 lines in the file.

I need to resolve this issue, as I cannot make any changes to the system.

Thanks
Sal


Nagios Core 3.2.0
Copyright (c) 2009 Nagios Core Development Team and Community Contributors
Copyright (c) 1999-2009 Ethan Galstad
Last Modified: 08-12-2009
License: GPL

Website: http://www.nagios.org
Reading configuration data...
Read main config file okay...
Processing object config directory '/usr/local/nagios/etc/static'...
Processing object config file '/usr/local/nagios/etc/static/xiobjects.cfg'...
Processing object config file '/usr/local/nagios/etc/static/xitemplates.cfg'...
Processing object config file '/usr/local/nagios/etc/static/xitest.cfg'...
Processing object config file '/usr/local/nagios/etc/contacttemplates.cfg'...
Processing object config file '/usr/local/nagios/etc/contactgroups.cfg'...
Processing object config file '/usr/local/nagios/etc/contacts.cfg'...
Processing object config file '/usr/local/nagios/etc/timeperiods.cfg'...
Warning: Duplicate definition found for timeperiod 'xi_timeperiod_24x7' (config file '/usr/local/nagios/etc/timeperiods.cfg', starting on line 173)
Error: Could not add object property in file '/usr/local/nagios/etc/timeperiods.cfg' on line 174.
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.
mmestnik
Posts: 972
Joined: Mon Feb 15, 2010 2:23 pm

Re: Upgrade error, duplicate timeperiod

Post by mmestnik »

The configuration files are reverted after the loading failed, so it's only natural the contents are different. What you are looking for is this extra definition in the GUI or more precisely in the back-end database.

Try renaming or removing any time period by that name.
User avatar
admin
Site Admin
Posts: 256
Joined: Mon Oct 12, 2009 8:21 am

Re: Upgrade error, duplicate timeperiod

Post by admin »

The config files automatically get rolled back to their last known good state if an error is detected. You can grab the original (bad) config file by downloading the configuration snapshot in the "Admin -> Config Snapshots" menu.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.

Ethan Galstad
President
dominiqs
Posts: 17
Joined: Thu May 20, 2010 9:34 am

Nagios Config Changes via WEB interface not save

Post by dominiqs »

Nagios Gurus,

I have a working Nagios setup both server and agent , and Web UI (GUI) , when i try to make SOME configuration changes through the WEB GUI (through the configuration menu) it doesnt seem seem to save it to the actual configuration files othe OS level ie on the Unix server. for instance if i add notification contacts or make notification changes and press the update button, these changes are not stored in the config files.
Please not that NOT all WEB GUI changes are not saved some do get saved but only commands for instance get saved.
To make permanent config changes to Nagios this has to be done manually on the config files.I know this is not how Nagios should behave .Can anyone help please

also when we try to configure through the Nagios Adanaced core configuartion manager option ..that page times out .I get the error internet explorer cannot display the webpage .
Any help would be greatly appreciated.
Thanks
dominiqs
Posts: 17
Joined: Thu May 20, 2010 9:34 am

Re: Nagios Core Config changes not saved to filesystem.

Post by dominiqs »

Hi,I am assuming that someone merged this post however my problem is very different from yours ...heres a bit of clarification..in my case i am using Nagios XI, and when i make the config changes via the web interface ..it doesnt complain of any errors both on the web UI interface and i see that it bounces Nagios and shows no config errors in the Nagios.log file but the changes are not saved on the OS level.Has anyone experienced this before, is there any patching that needs to be done on Nagios XI
mmestnik
Posts: 972
Joined: Mon Feb 15, 2010 2:23 pm

Re: Nagios Core Config changes not saved to filesystem.

Post by mmestnik »

The general concept of this Topic is that you should ignore and be ignored by the status of the file system.

What else are you seeing?
Locked