Home » Categories » Products » Nagios XI » Documentation » Architecture

Nagios XI - Cleaner Cron Architecure

Cleaner Cron Overview

The cleaner cron job of Nagios XI is responsible for removing old configuration snapshots as well as responding to callbacks registered for CALLBACK_SUBSYS_CLEANER.  These callbacks may be added to components for items that may need to be ran once per minute.


Architecture Components And Execution Flow

The general flow of execution of the Cleaner cron works as follows:

  1. The cleaner.php script runs as a background process.  The cleaner.php script is located at /usr/local/nagiosxi/cron/cleaner.php and runs under cron every one minute.  The cron job is defined in /etc/cron.d/nagiosxi

  2. The cleaner.php script removes old NagiosQL backup files

  3. The cleaner.php script removes old configuration snapshot, keeping just the latest 10 successful and 10 errors

  4. The cleaner.php script runs any callbacks targeting CALLBACK_SUBSYS_CLEANER


Troubleshooting Problems

Some potential problems with the Event Manager subsystem, as well as troubleshooting information are listed below:

Problem: Admin -> Configuration Snapshot list does not get truncated to 10 entries and continues to add new snapshots every time configuration is applied.

Potential Causes:

  • There may be a problem with the cron job.  Check the cron file /etc/cron.d/nagiosxi to ensure the job is not commented out.

  • Check the /usr/local/nagiosxi/var/cleaner.log log file for errors

  • The nagios user account is expired causing the cron to not run


Final Thoughts

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


0 (0)
Article Rating (No Votes)
Rate this article
  • Icon PDFExport to PDF
  • Icon MS-WordExport to MS Word
Attachments Attachments
There are no attachments for this article.
Related Articles RSS Feed
Nagios XI - Event Manager Architecture
Viewed 1145 times since Sun, Feb 8, 2015
Nagios XI - Maximizing Performance In Nagios XI
Viewed 1235 times since Thu, Jan 28, 2016
Nagios XI DB - Maintenance Architecture
Viewed 1468 times since Sun, Feb 8, 2015
Nagios XI - Manage MIBs Architecture
Viewed 3557 times since Tue, Feb 10, 2015
Nagios XI - High Availability and Failover Solutions for Nagios XI - NWC14
Viewed 1807 times since Thu, Feb 4, 2016
Nagios XI - Introduction: Getting Started with Nagios XI - NWC14
Viewed 1015 times since Thu, Feb 4, 2016
Nagios XI - Recurring Downtime System
Viewed 1246 times since Thu, Feb 5, 2015
Nagios XI - Under the Hood - NWC15
Viewed 796 times since Thu, Feb 4, 2016
Nagios XI - Cron Jobs
Viewed 2012 times since Thu, Feb 5, 2015
Nagios XI - How XI Works
Viewed 1245 times since Wed, Jul 19, 2017