您好,登錄后才能下訂單哦!
快下班了,領導發來需求,需要監控國外3臺服務器,丟包發郵件給領導;我們現有nagios 都是發郵件給運維(我自己),這個nagios映像可以做,趕緊查資料,最終還是在寫博客之前搞定了,這里當作筆記記錄下。
下面是定義了2組contacts.cfg聯系人,一組常規服務,郵件通知運維,另外一組郵件通知領導;
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 自己郵箱 } 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 領導郵箱 } define contactgroup{ contactgroup_name admins alias Nagios Administrators members wgzx.dxt } define contactgroup{ contactgroup_name guowai alias guowai members guowai-contact }
免責聲明:本站發布的內容(圖片、視頻和文字)以原創、轉載和分享為主,文章觀點不代表本網站立場,如果涉及侵權請聯系站長郵箱:is@yisu.com進行舉報,并提供相關證據,一經查實,將立刻刪除涉嫌侵權內容。