This is a cache of https://support.nagios.com/kb/article/nagios-xi-db-maintenance-architecture-70.html. It is a snapshot of the page at 2025-05-14T00:40:56.878+0000.
Nagios <strong>xi</strong> DB - Maintenance Architecture
Home » Categories » Products » Nagios xi » Documentation » Architecture

Nagios xi DB - Maintenance Architecture

DB Maintenance Overview

This DB Maintenance cron job of Nagios xi is responsible for optimizing and truncating database tables based on the user defined settings located in Admin -> Performance Settings -> Database Tab.

 

Architecture Components And Execution Flow

The general flow of execution of the Event Manager subsystem works as follows:

  1. A user defines the amount of time they would like to keep certain types of data in Admin -> Performance Settings -> Database tab

  2. The settings are saved in the xi_options table of the nagiosxi mysql database (mariadb on cent/rhel 7 and postgresql on xi versions less than 5)

  3. The dbmaint.php script runs as a background process and grabs the settings from xi_options.  The dbmaint.php script is located at /usr/local/nagiosxi/cron/dbmaint.php and runs under cron every 5 minutes.  The cron job is defined in /etc/cron.d/nagiosxi

  4. The dbmaint.php script truncates entries from tables that are older than the time specified in 

  5. The dbmaint.php script updates the last run time in the xi_meta table of the nagiosxi database

 

Troubleshooting Problems

Some potential problems with the Event Manager subsystem, as well as troubleshooting information are listed below:

Problem: Admin -> System Status displays a red X next to Database Maintenance

Potential Causes:

  • 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/dbmaint.log log file for errors
  • The nagios user account is expired causing the cron to not run

 

Final Thoughts

For any support related questions please visit the Nagios Support Forums at:

http://support.nagios.com/forum/



Special Offer For Knowledgebase Visitors! Get a huge discount on Nagios Log Server by clicking below.

Get 60% Off Nagios Log Server!

Did you know? Nagios provides complete monitoring of: Windows, Linux, UNIX, Servers, Websites, SNMP, DHCP, DNS, Email, Storage, Files, Apache, IIS, EC2, and more!

0 (0)
Article Rating (No Votes)
Rate this article
  • Icon PDFExport to PDF
  • Icon MS-WordExport to MS Word
Attachments Attachments
There are no attachments for this article.
Related Articles RSS Feed
Nagios xi - Architecture Overview
Viewed 12451 times since Tue, Jan 27, 2015
Nagios xi - Command Subsystem Architecture
Viewed 6631 times since Thu, Feb 5, 2015
Nagios xi - Monitoring Using the Full Power of Nagios xi Enterprise - NWC15
Viewed 8548 times since Mon, Feb 8, 2016
Nagios xi - Best Practices - NWC15
Viewed 8827 times since Thu, Feb 4, 2016
Nagios xi - Performance Data Architecture
Viewed 7959 times since Wed, Jan 28, 2015
Nagios xi - Cron Jobs
Viewed 10561 times since Thu, Feb 5, 2015
Nagios xi - Terminology Overview
Viewed 4779 times since Sun, Feb 8, 2015
Nagios xi - Switch and Router Wizard Architecture
Viewed 9187 times since Fri, Feb 6, 2015
Nagios xi - Under the Hood - NWC15
Viewed 4787 times since Thu, Feb 4, 2016
Nagios xi - Web Interface Architecture
Viewed 8230 times since Wed, Jan 28, 2015