Page 1 of 1

Nagios XI Cron Jobs

Posted: Wed Sep 26, 2018 6:59 am
by dhatha03
I understand that Nagios XI needs to run a set of Cron jobs on a regular basis and that they are critical to the operation of Nagios. It appears that the majority of them are set to run every minute. These jobs running every minute are filling my audit log up pretty quickly, close to 30,000 records for a 24-hour period. Are there recommendations on different time intervals for these jobs, then the defaults? Listed below is the current (default) configuration:

# /etc/cron.d/nagiosxi: crontab fragment for nagiosxi

# Backup MySQL & PostgreSQL Databases
0 7 * * * root /root/scripts/automysqlbackup
0 7 * * * root /root/scripts/autopostgresqlbackup > /dev/null 2>&1

* * * * * nagios /usr/bin/php -q /usr/local/nagiosxi/cron/sysstat.php >> /usr/local/nagiosxi/var/sysstat.log 2>&1
* * * * * nagios /usr/bin/php -q /usr/local/nagiosxi/cron/cmdsubsys.php >> /usr/local/nagiosxi/var/cmdsubsys.log 2>&1
* * * * * nagios /usr/bin/php -q /usr/local/nagiosxi/cron/eventman.php >> /usr/local/nagiosxi/var/eventman.log 2>&1
* * * * * nagios /usr/bin/php -q /usr/local/nagiosxi/cron/event_handler.php >> /usr/local/nagiosxi/var/event_handler.log 2>&1
* * * * * nagios /usr/bin/php -q /usr/local/nagiosxi/cron/feedproc.php >> /usr/local/nagiosxi/var/feedproc.log 2>&1
* * * * * nagios /usr/bin/php -q /usr/local/nagiosxi/cron/perfdataproc.php >> /usr/local/nagiosxi/var/perfdataproc.log 2>&1
* * * * * nagios /usr/bin/php -q /usr/local/nagiosxi/cron/nom.php >> /usr/local/nagiosxi/var/nom.log 2>&1
* * * * * nagios /usr/bin/php -q /usr/local/nagiosxi/cron/reportengine.php >> /usr/local/nagiosxi/var/reportengine.log 2>&1
*/5 * * * * nagios /usr/bin/php -q /usr/local/nagiosxi/cron/dbmaint.php >> /usr/local/nagiosxi/var/dbmaint.log 2>&1
* * * * * nagios /usr/bin/php -q /usr/local/nagiosxi/cron/cleaner.php >> /usr/local/nagiosxi/var/cleaner.log 2>&1
01 * * * * nagios /usr/bin/php -q /usr/local/nagiosxi/cron/recurring_downtime.php >> /usr/local/nagiosxi/var/recurringdowntime.log 2>&1
* * * * * nagios /usr/bin/php -q /usr/local/nagiosxi/cron/deadpool.php >> /usr/local/nagiosxi/var/deadpool.log 2>&1

Thank you.

Re: Nagios XI Cron Jobs

Posted: Wed Sep 26, 2018 11:11 am
by scottwilkerson
these are recommended to stay just how they are. As a matter of fact changing them will have adverse affects and cause Nagios XI to not run properly.

Re: Nagios XI Cron Jobs

Posted: Wed Sep 26, 2018 12:13 pm
by dhatha03
Thank you for the information, I will leave them as is.

Re: Nagios XI Cron Jobs

Posted: Wed Sep 26, 2018 2:17 pm
by scottwilkerson
dhatha03 wrote:Thank you for the information, I will leave them as is.
great

Locking thread