nagios監(jiān)控配置詳解三告警相關模板

########################################################################
###定義針對主機的告警條件
########################################################################
# Generic host definition template - This is NOT a real host, just a template!

創(chuàng)新互聯(lián)公司專注于商水網(wǎng)站建設服務及定制,我們擁有豐富的企業(yè)做網(wǎng)站經(jīng)驗。 熱誠為您提供商水營銷型網(wǎng)站建設,商水網(wǎng)站制作、商水網(wǎng)頁設計、商水網(wǎng)站官網(wǎng)定制、小程序定制開發(fā)服務,打造商水網(wǎng)絡公司原創(chuàng)品牌,更為您提供商水網(wǎng)站排名全網(wǎng)營銷落地服務。

define host{
        name   generic-host    ; The name of this host template模板名稱,要用在另外一個配置文件里
        notifications_enabled           1       ; Host notifications are enabled
        event_handler_enabled           1       ; Host event handler is enabled
        flap_detection_enabled          1       ; Flap detection is enabled
        failure_prediction_enabled      1       ; Failure prediction is enabled
        process_perf_data               1       ; Process performance data
        retain_status_information       1       ; Retain status information across program restarts
        retain_nonstatus_information    1       ; Retain non-status information across program restarts
 check_command                   check-host-alive
 notification_interval 0 //0關閉重復報警,>0 可重復告警。如果開啟重復報警,設置的值需要大于等于正常檢查的間隔時間
 normal_check_interval 5 //正常檢查間隔時間
 retry_check_interval 1 //重試檢查間隔
 max_check_attempts 3 //最大重試次數(shù)
 check_period  24x7 //檢查時間段的名稱,具體的時間周期是在timeperiod里設置
 notification_period 24x7 //告警時間段
 notification_options d,u,r //告警狀態(tài)
 notification_interval 10 //告警間隔
 contact_groups  admins //聯(lián)系人組
 register                        0       ; DONT REGISTER THIS DEFINITION - ITS NOT A REAL HOST, JUST A TEMPLATE!
        }
########################################################################
###定義針對服務的告警條件,各參數(shù)的意義同上所述
########################################################################
# generic service template definition
define service{
        name  generic-service  ; The 'name' of this service template
        active_checks_enabled           1       ; Active service checks are enabled
        passive_checks_enabled          1       ; Passive service checks are enabled/accepted
        parallelize_check               1       ; Active service checks should be parallelized (disabling this can lead to major performance problems)
        obsess_over_service             1       ; We should obsess over this service (if necessary)
        check_freshness                 0       ; Default is to NOT check service 'freshness'
        notifications_enabled           1       ; Service notifications are enabled
        event_handler_enabled           1       ; Service event handler is enabled
        flap_detection_enabled          1       ; Flap detection is enabled
        failure_prediction_enabled      1       ; Failure prediction is enabled
        process_perf_data               1       ; Process performance data
        retain_status_information       1       ; Retain status information across program restarts
        retain_nonstatus_information    1       ; Retain non-status information across program restarts
 notification_interval           3 ; Only send notifications on status change by default.
 is_volatile                     0
 check_period                    24x7
 normal_check_interval           3
 retry_check_interval            1
 max_check_attempts              3
 notification_period             24x7
 notification_options            w,u,c,r
 contact_groups                  admins
        register                        0       ; DONT REGISTER THIS DEFINITION - ITS NOT A REAL SERVICE, JUST A TEMPLATE!
        }
 

本文題目:nagios監(jiān)控配置詳解三告警相關模板
URL分享:http://muchs.cn/article14/isjoge.html

成都網(wǎng)站建設公司_創(chuàng)新互聯(lián),為您提供云服務器品牌網(wǎng)站建設、商城網(wǎng)站、關鍵詞優(yōu)化、全網(wǎng)營銷推廣、企業(yè)建站

廣告

聲明:本網(wǎng)站發(fā)布的內(nèi)容(圖片、視頻和文字)以用戶投稿、用戶轉(zhuǎn)載內(nèi)容為主,如果涉及侵權(quán)請盡快告知,我們將會在第一時間刪除。文章觀點不代表本網(wǎng)站立場,如需處理請聯(lián)系客服。電話:028-86922220;郵箱:631063699@qq.com。內(nèi)容未經(jīng)允許不得轉(zhuǎn)載,或轉(zhuǎn)載時需注明來源: 創(chuàng)新互聯(lián)

成都網(wǎng)站建設公司