O'Reilly logo

Nagios, 2nd Edition by Wolfgang Barth

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

12.4 External Notification Programs

Which external programs deliver the messages is defined by the contact definition.

Here there are again two parameters to define the commands to be used, one for services and one for hosts:

define contact{
   ...
   service_notification_commands   notify-by-email,notify-by-sms
   host_notification_commands      host-notify-by-email,host-notify-by-sms
   email                           nagios-admin@localhost
   pager                           +49-1234-56789
address1                root@example.com
    address2                123-456789
   ...
}

Both *_notification_commands allow comma-separated lists, so it is permitted to specify more than one command at the same time. The message is then sent simultaneously to the recipient in all the ways defined. The names of the command objects describe these ways: via e-mail and via ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required