This is a cache of https://support.nagios.com/kb/article/nagios-xi-cleaner-cron-architecure-71.html. It is a snapshot of the page at 2025-05-14T00:40:53.592+0000.
Nagios <strong>xi</strong> - Cleaner Cron Architecure
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:

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



Special Offer For Knowledgebase Visitors! Get a huge discount on Nagios Log Server by clicking below.

Get 60% Off Nagios Log Server!

Did you know? Nagios provides complete monitoring of: Windows, Linux, UNIX, Servers, Websites, SNMP, DHCP, DNS, Email, Storage, Files, Apache, IIS, EC2, and more!

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 - Cron Jobs
Viewed 10561 times since Thu, Feb 5, 2015
Nagios xi - Under the Hood - NWC15
Viewed 4786 times since Thu, Feb 4, 2016
Nagios xi - Recurring Downtime System
Viewed 6672 times since Thu, Feb 5, 2015
Nagios xi - Web Interface Architecture
Viewed 8230 times since Wed, Jan 28, 2015
Nagios xi - Maximizing Performance In Nagios xi
Viewed 6232 times since Thu, Jan 28, 2016
Nagios xi - Performance Data Architecture
Viewed 7959 times since Wed, Jan 28, 2015
Nagios xi - Command Subsystem Architecture
Viewed 6631 times since Thu, Feb 5, 2015
Nagios xi - Introduction: Getting Started with Nagios xi - NWC14
Viewed 5484 times since Thu, Feb 4, 2016
Nagios xi - Architecture Overview
Viewed 12451 times since Tue, Jan 27, 2015
Nagios xi - Monitoring Using the Full Power of Nagios xi Enterprise - NWC15
Viewed 8548 times since Mon, Feb 8, 2016