nagios使用邮件来告警通知是很常见的一种方式。
1. 使用sendEmail来发送邮件
sendEmail工具非常好用。具体内容参见:
2. 创建一个联系人
1 2 3 4 5 6 7 8 9 10 11 12 |
# vim /usr/local/nagios/etc/objects/contacts.cfg define contact{ contact_name mobei alias mobei service_notification_period 24x7 host_notification_period 24x7 service_notification_options w,u,c host_notification_options d,u service_notification_commands notify-service-by-email host_notification_commands notify-host-by-email |