Chapter 23. Processing Events with the EventDB

Events are fundamentally different from the other, usual host and service states in Nagios. The check of a service in a critical state returns a CRITICAL until the state of the service changes, irrespective of the number of checks and the repeat interval. An event, on the other hand, occurs only once, for instance in the form of a syslog entry or an SNMP trap.

If the events of an uninterruptible power supply (UPS) are logged via syslog to a log file, the message that the UPS has switched to battery because the voltage supply has failed will appear there only once. If you now test regularly whether a corresponding entry occurred within the last half hour, simple log file checks will not announce a match ...

Get Nagios, 2nd Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.