Nagios XI - Problems With Scheduled Backups At Midnight


Problem Description

It has been observed that scheduling backups of Nagios XI at midnight (00:00) will create multiple Nagios parent processes to be unintentionally created. Multiple Nagios parent processes causes many unusual problems.


 

Explanation

At midnight the Nagios process performs it's daily log file rotation. The Nagios process moves the old log file to the archives directory and creates a new nagios.log file. When it creates the new log file it also dumps the current state of every host and service object into the new nagios.log file. In larger deployments of Nagios XI this process may take several minutes.

If you schedule a Nagios XI backup to occur at midnight, the first step in the backup script is to restart the nagios service. The nagios service is restarted to force the retention.dat file to be updated with the latest information, this ensures that the file is up to date in the backup. This creates a problem with the existing Nagios process and the daily log file rotation that is being performed.

 

 

Resolving The Problem

Do not schedule Nagios XI backups to run at midnight, instead schedule them for ten minutes past midnight (00:10).

 

 

Final Thoughts

For any support related questions please visit the Nagios Support Forums at:

http://support.nagios.com/forum/



Article ID: 547
Created On: Mon, Oct 10, 2016 at 8:56 PM
Last Updated On: Mon, Oct 10, 2016 at 8:56 PM
Authored by: tlea

Online URL: https://support.nagios.com/kb/article/nagios-xi-problems-with-scheduled-backups-at-midnight-547.html