Page 1 of 1

nagios user crontab enteries

Posted: Mon Nov 01, 2010 4:43 am
by TSCAdmin
Hello,

I was just wondering what are the following crontab entries for:

######################################
# Nagios XI Cron Jobs - Run as nagios user
######################################
* * * * * /usr/bin/php -q /usr/local/nagiosxi/cron/sysstat.php > /usr/local/nagiosxi/var/sysstat.log 2>&1
* * * * * /usr/bin/php -q /usr/local/nagiosxi/cron/cmdsubsys.php > /usr/local/nagiosxi/var/cmdsubsys.log 2>&1
* * * * * /usr/bin/php -q /usr/local/nagiosxi/cron/eventman.php > /usr/local/nagiosxi/var/eventman.log 2>&1
* * * * * /usr/bin/php -q /usr/local/nagiosxi/cron/feedproc.php > /usr/local/nagiosxi/var/feedproc.log 2>&1
* * * * * /usr/bin/php -q /usr/local/nagiosxi/cron/nom.php > /usr/local/nagiosxi/var/nom.log 2>&1
* * * * * /usr/bin/php -q /usr/local/nagiosxi/cron/reportengine.php > /usr/local/nagiosxi/var/reportengine.log 2>&1
*/5 * * * * /usr/bin/php -q /usr/local/nagiosxi/cron/dbmaint.php > /usr/local/nagiosxi/var/dbmaint.log 2>&1
* * * * * /usr/bin/php -q /usr/local/nagiosxi/cron/cleaner.php > /usr/local/nagiosxi/var/cleaner.log 2>&1
01 * * * * /usr/local/nagiosxi/cron/recurringdowntime.pl > /usr/local/nagiosxi/var/recurringdowntime.log 2>&1

are there any documentations which helps us understand what these scripts are doing?

Thanks.

Re: nagios user crontab enteries

Posted: Mon Nov 01, 2010 11:00 am
by admin
The cron jobs aren't documented, but you can look at their contents to see what they do. Essentially, they are the backend magic that makes things work on XI. Here's a quick explanation:

1. sysstat.php = Polls the system for load, CPU, i/o wait statistics, so its visible in the XI admin interface
2. cmdsubsys.php = Handles backend "commands" that are usually submitted from the fronted. For example, applying a new Nagios configuration.
3. eventman.php = Captures and processes events (event handlers and notifications) from Nagios Core, so they can be processed by XI
4. feedproc.php = As of yet unused, but will be utilized for processing passive checks in the future
5. nom.php = Nonstop Operations Manager. This ensures that Nagios is rolled back to a last know good configuration if an error is encountered.
6. reportenginge.php = As of yet unused, but will be utilized for scheduled reports in the future
7. dbmaint.php = Keeps the MySQL and Postgres databases optimized, analyzed, and vacuumed
8. cleaner.php = Cleans out old/unused files from various temp directories
9. recurringdowntime.pl = Handles recurring downtime entries that are defined by the user

Hope that helps!

Re: nagios user crontab enteries

Posted: Tue Nov 02, 2010 1:33 am
by TSCAdmin
That really helped, cheers :)