This is a cache of https://support.nagios.com/kb/article/nagios-xi-event-manager-architecture-69.html. It is a snapshot of the page at 2025-05-14T00:41:02.998+0000.
Nagios <strong>xi</strong> - Event Manager Architecture
Home » Categories » Products » Nagios xi » Documentation » Architecture

Nagios xi - Event Manager Architecture

Event Manager Subsystem Overview

This Event Manager subsystem of Nagios xi is responsible for processing callback functions for each event that are initiated from the Nagios or other connected systems.  Events can be items like state change for a host or service, a notification being triggered to send out or other timed events.  These callbacks are executed by the Event Manager subsystem, which passes the information from the event to the callback for further processing.

 

Architecture Components And Execution Flow

The diagram below shows the different parts of the Event Manager subsystem and how they relate to each other.  Each part of the subsystem is explained in greater detail below.


 

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

  1. An event is initiated from Nagios Core or another attached system (e.g. state changed for a host or service)

  2. The added event is saved in the xi_events table of the nagiosxi postgresql (mysql in xi 5+) database

  3. The eventman.php script runs as a background process and watches for new events added to the database.  The eventman.php script is located at /usr/local/nagiosxi/cron/eventman.php and runs under cron every minute.  The cron job is defined in /etc/cron.d/nagiosxiWhile the cron job itself runs every minute, the script enters into a loop that lasts 59 seconds - this ensures that the processing is done constantly as opposed to only once every 60 seconds.

  4. The eventman.php script executes the callbacks created targeting specific event types

  5. The eventman.php script saves the results of the event processing in the xi_events table of the nagiosxi postgresql database

 

Builtin Components that use Event Manager

The following are all processed through the Event Manager Subsystem:

  1. Notifications for xi users

  2. Global Event Handlers

  3. Global Notification Handlers

  4. SNMP Trap Sender

  5. Nagios Reactor Component

  6. Nagios Incident Manager Component

 

Troubleshooting Problems

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

Problem: Notifications for xi users are not being received, however Core contacts receive their messages

Potential Causes:

  • The eventman.php scripts may not be running. Run the following command to see if the script is running:

    • ps axuw | grep eventman.php 
  • 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/eventman.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 - Command Subsystem Architecture
Viewed 6632 times since Thu, Feb 5, 2015
Nagios xi - How to Manage Remote Nagios xi Servers
Viewed 5809 times since Thu, Jan 28, 2016
Nagios xi - Maximizing Performance In Nagios xi
Viewed 6232 times since Thu, Jan 28, 2016
Nagios xi - High Availability and Failover Solutions for Nagios xi - NWC14
Viewed 8667 times since Thu, Feb 4, 2016
Nagios xi DB - Maintenance Architecture
Viewed 7933 times since Sun, Feb 8, 2015
Nagios xi - Performance Data Architecture
Viewed 7959 times since Wed, Jan 28, 2015
Nagios xi - Introduction: Getting Started with Nagios xi - NWC14
Viewed 5484 times since Thu, Feb 4, 2016
Nagios xi - Under the Hood - NWC15
Viewed 4787 times since Thu, Feb 4, 2016
Nagios xi - Cleaner Cron Architecure
Viewed 4868 times since Sun, Feb 8, 2015
Nagios xi - Best Practices - NWC15
Viewed 8827 times since Thu, Feb 4, 2016