nagios user crontab enteries

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
TSCAdmin
Posts: 155
Joined: Wed Apr 14, 2010 3:00 pm
Location: India

nagios user crontab enteries

Post 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.
User avatar
admin
Site Admin
Posts: 256
Joined: Mon Oct 12, 2009 8:21 am

Re: nagios user crontab enteries

Post 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!
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.

Ethan Galstad
President
TSCAdmin
Posts: 155
Joined: Wed Apr 14, 2010 3:00 pm
Location: India

Re: nagios user crontab enteries

Post by TSCAdmin »

That really helped, cheers :)
Locked