Introduction
Notifications in Nagios Core refer to the events fired and the messages generated when hosts or services change state, for the purpose of informing appropriate people or systems.
For example, when connectivity to a host is lost, it leaves the UP
state and goes to DOWN
state on the next check. This eventually generates a notification event and, provided the appropriate flags are set and a contact is available, a message about the state change is generated and dealt with in some way defined in the configuration.
The default text for such notifications goes into some detail about the problem, including the output from the appropriate plugin command:
***** Nagios ***** Notification Type: PROBLEM Host: sparta.example.net State: DOWN Address: 192.0.2.21 Info: CRITICAL - Host Unreachable (192.0.2.21) Date/Time: Sat Jul 13 21:45:09 NZST 2015
So with this kind of text generated as a result of the event, the next question is what Nagios Core should do with it. A common method of notification...