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.
The general flow of execution of the Cleaner cron works as follows:
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
The cleaner.php script removes old NagiosQL backup files
The cleaner.php script removes old configuration snapshot, keeping just the latest 10 successful and 10 errors
The cleaner.php script runs any callbacks targeting CALLBACK_SUBSYS_CLEANER
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.
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
For any support related questions please visit the Nagios Support Forums at:
Article ID: 71
Created On: Sun, Feb 8, 2015 at 12:27 PM
Last Updated On: Wed, Feb 17, 2016 at 10:40 PM
Authored by: swilkerson
Online URL: https://support.nagios.com/kb/article/nagios-xi-cleaner-cron-architecure-71.html