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 ...
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.