溫馨提示×

溫馨提示×

您好,登錄后才能下訂單哦!

密碼登錄×
登錄注冊×
其他方式登錄
點(diǎn)擊 登錄注冊 即表示同意《億速云用戶服務(wù)條款》

nagios根據(jù)業(yè)務(wù)定義多個聯(lián)系人

發(fā)布時間:2020-05-17 10:17:25 來源:網(wǎng)絡(luò) 閱讀:1551 作者:luyafei 欄目:移動開發(fā)

  快下班了,領(lǐng)導(dǎo)發(fā)來需求,需要監(jiān)控國外3臺服務(wù)器,丟包發(fā)郵件給領(lǐng)導(dǎo);我們現(xiàn)有nagios 都是發(fā)郵件給運(yùn)維(我自己),這個nagios映像可以做,趕緊查資料,最終還是在寫博客之前搞定了,這里當(dāng)作筆記記錄下。

  下面是定義了2組contacts.cfg聯(lián)系人,一組常規(guī)服務(wù),郵件通知運(yùn)維,另外一組郵件通知領(lǐng)導(dǎo);

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                           領(lǐng)導(dǎo)郵箱
        }
        
define contactgroup{
        contactgroup_name       admins
        alias                   Nagios Administrators
        members                 wgzx.dxt
        }
define contactgroup{
        contactgroup_name       guowai
        alias                   guowai
        members                 guowai-contact
        }



向AI問一下細(xì)節(jié)

免責(zé)聲明:本站發(fā)布的內(nèi)容(圖片、視頻和文字)以原創(chuàng)、轉(zhuǎn)載和分享為主,文章觀點(diǎn)不代表本網(wǎng)站立場,如果涉及侵權(quán)請聯(lián)系站長郵箱:is@yisu.com進(jìn)行舉報,并提供相關(guān)證據(jù),一經(jīng)查實(shí),將立刻刪除涉嫌侵權(quán)內(nèi)容。

AI