System Component Status - Database Maintenance Status Red
Posted: Fri Nov 08, 2019 1:18 pm
G 'Day Nagios XI Support,
Since I am running an heavily loaded Nagios XI instance (50,000+ objects) I purposely do not execute the my db maintenance cronjob below every 5 minutes. It typically takes 10-12 minutes to fully execute. I run it ever 4 hours as the below crontab entry shows. Unfortunately the Database Maintenance Status turns Red after 2 hours and then goes Green once the job completes and stays Green for 2 hours and then turns Red again for 2 hours.
0 */4 * * * nagios /usr/bin/php -q /usr/local/nagiosxi/cron/dbmaint.php >> /usr/local/nagiosxi/var/dbmaint.log 2>&1
So my question is: Is there a way that I can modify the timer associated with the Database Maintenance Status under the System Component Status widget?
Seems like being able to control should be based on the setting for the crontab entry but obviously it is not.
I know I am probably reaching here but I thought I would ask...
And as always thanks for your help,
Danny
Since I am running an heavily loaded Nagios XI instance (50,000+ objects) I purposely do not execute the my db maintenance cronjob below every 5 minutes. It typically takes 10-12 minutes to fully execute. I run it ever 4 hours as the below crontab entry shows. Unfortunately the Database Maintenance Status turns Red after 2 hours and then goes Green once the job completes and stays Green for 2 hours and then turns Red again for 2 hours.
0 */4 * * * nagios /usr/bin/php -q /usr/local/nagiosxi/cron/dbmaint.php >> /usr/local/nagiosxi/var/dbmaint.log 2>&1
So my question is: Is there a way that I can modify the timer associated with the Database Maintenance Status under the System Component Status widget?
Seems like being able to control should be based on the setting for the crontab entry but obviously it is not.
I know I am probably reaching here but I thought I would ask...
And as always thanks for your help,
Danny