configuration files have been rolled back to their last known good checkpoint – Nagios XI

configuration files have been rolled back to their last known good checkpoint

We recently come across this below error in Nagios XI after restoring an old backup set. configuration files have been rolled back to their last known good checkpoint

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.

Scenario is our Nagios server file system got corrupted, after server restart we did not able to bring back the server to normal state.

In abnormal situation we had revert back server with old snapshot (since it is a VM)

After that we applied an Nagios previous good known backup set to restore all the configuration settings

After successful restoration we are able to see the hosts, services and contacts contact group and everything, but we are not able to modify anything applying configuration is not taking in place its throwing an error as mentioned above

:: Solution ::


  • System Timezone
  • PHP Timezone
  • Date/time
  • NTP


An occasional oddity has been noticed with some CentOS/RHEL installs. The path /etc/localtime should be a file, but has been
reported and confirmed that it occasionally is a directory. Check the file type with:
file /etc/localtime
The expected output should include “timezone data”, if it is reported as a directory, run the following to prepare for the rest
rm /etc/localtime
You should be prompted to remove a symbolic link.
Notice the lack of a trailing slash in the above command. Once completed, you are ready to proceed with the rest of the document.

Setting the System Timezone

Default timezone files are located at:
ls /usr/share/zoneinfo/
The time zones are listed by country/city and include daylight savings time adjustments. We will use “America/Los_Angeles” for this time, but be mindful that you must substitute your actual country/city. The current and working system’s time zone file is located at /etc/localtime and must be replaced with your zoneinfo.
cp /usr/share/zoneinfo/America/Los_Angeles /etc/localtime
You could symlink the file instead, but symbolic links between /usr and /etc are generally frowned upon by POSIX purists. Not to mention some environments mount /usr at a separate point in the system init than /etc.
You will also need to set the “ZONE” directive in /etc/sysconfig/clock:
vim /etc/sysconfig/clock
Change or add the following line within your timezone
Save out.

PHP Timezone

Next, you need to configure /etc/php.ini for your timezone set above:
vim /etc/php.ini
Change the “date.timezone =” line to:
date.timezone = America/Los_Angeles
Save out and restart apache
service httpd restart
service mysqld restart
service nagios restart

login to nagios user and create below directory

Read More  Nagios Admin Interview Questions and Answers

Create an directory under /usr/local/nagios/var/spool/ path

mkdir checkresults

then verify your Nagios settings

/usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg

Now go to your web console and modify apply your configuration. Done.!! you will not see error again.

Thanks, Please provide your valuable comments..!!

Thanks for your wonderful Support.

Stay Connected with us. Learn More and Earn More

Good Luck..!!

Ankam Ravi Kumar

Working as Linux / Storage Administrator L3. Interested in sharing the knowledge.

You may also like...

Leave a Reply