Interface Notification

Notification objects are used to specify how users should be notified in case of host and service state changes and other events.

Best Practice

Rather than creating a Notification object for a specific host or service it is usually easier to just create a Notification template and use the apply keyword to assign the notification to a number of hosts or services. Use the to keyword to set the specific target type for Host or Service. Check the notifications chapter for detailed examples.

Example:

object Notification "localhost-ping-notification" {
host_name = "localhost"
service_name = "ping4"

command = "mail-notification"

users = [ "user1", "user2" ] // reference to User objects

types = [ Problem, Recovery ]
states = [ Critical, Warning, OK ]
}
interface Notification {}