Fast off work, the leader sent to demand, need to monitor 3 foreign servers, lost packets sent to the leadership; our existing Nagios is email operations (myself), this nagios image can be done, quickly check the information, and ultimately in the blog before the finished, here as notes recorded.
The following is a definition of 2 groups of contacts.cfg contacts, a set of general services, mail notification operations, the other group of messages to inform the leader;
define contact{ contact_name wgzx.dxt ; short name of user# use generic-contact ; inherit default values from generic-contact template (Defined above) alias Nagios admin service_notification_period 24x7 host_notification_period 24x7 service_notification_options w,u,c,r host_notification_options u ,d,r service_notification_commands notify-service-by-email host_notification_commands notify-host-by-email email own Mailbox }define contact{ contact_name guowai-contact ; Short name of user service_notification_period 24x7 host_notification_period 24x7 service_notification_options w,u,c,r host_notification_options u ,d,r service_notification_commands notify-service-by-email host_notification_commands notify-host-by-email email Leadership Email } define contactgroup{ contactgroup_name admins alias Nagios administrators members wgzx.dxt }define contactgroup{ contactgroup_name guowai alias guowai members guowai-contact }
This article is from "become a cyber Security Engineer" blog, please make sure to keep this source http://luyafei.blog.51cto.com/1092421/1735432
Nagios defines multiple contacts based on business