nagios監(jiān)控配置詳解三告警相關(guān)模板-創(chuàng)新互聯(lián)

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

創(chuàng)新互聯(lián)公司長(zhǎng)期為超過(guò)千家客戶提供的網(wǎng)站建設(shè)服務(wù),團(tuán)隊(duì)從業(yè)經(jīng)驗(yàn)10年,關(guān)注不同地域、不同群體,并針對(duì)不同對(duì)象提供差異化的產(chǎn)品和服務(wù);打造開放共贏平臺(tái),與合作伙伴共同營(yíng)造健康的互聯(lián)網(wǎng)生態(tài)環(huán)境。為涵江企業(yè)提供專業(yè)的網(wǎng)站設(shè)計(jì)制作、成都網(wǎng)站制作,涵江網(wǎng)站改版等技術(shù)服務(wù)。擁有十多年豐富建站經(jīng)驗(yàn)和眾多成功案例,為您定制開發(fā)。

define host{
       name   generic-host   ; The name of this host template模板名稱,要用在另外一個(gè)配置文件里
       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關(guān)閉重復(fù)報(bào)警,>0 可重復(fù)告警。如果開啟重復(fù)報(bào)警,設(shè)置的值需要大于等于正常檢查的間隔時(shí)間
 normal_check_interval 5 //正常檢查間隔時(shí)間
 retry_check_interval 1 //重試檢查間隔
 max_check_attempts 3 //大重試次數(shù)
 check_period  24x7 //檢查時(shí)間段的名稱,具體的時(shí)間周期是在timeperiod里設(shè)置
 notification_period 24x7 //告警時(shí)間段
 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!
       }
########################################################################
###定義針對(duì)服務(wù)的告警條件,各參數(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!
       }

另外有需要云服務(wù)器可以了解下創(chuàng)新互聯(lián)scvps.cn,海內(nèi)外云服務(wù)器15元起步,三天無(wú)理由+7*72小時(shí)售后在線,公司持有idc許可證,提供“云服務(wù)器、裸金屬服務(wù)器、高防服務(wù)器、香港服務(wù)器、美國(guó)服務(wù)器、虛擬主機(jī)、免備案服務(wù)器”等云主機(jī)租用服務(wù)以及企業(yè)上云的綜合解決方案,具有“安全穩(wěn)定、簡(jiǎn)單易用、服務(wù)可用性高、性價(jià)比高”等特點(diǎn)與優(yōu)勢(shì),專為企業(yè)上云打造定制,能夠滿足用戶豐富、多元化的應(yīng)用場(chǎng)景需求。

分享文章:nagios監(jiān)控配置詳解三告警相關(guān)模板-創(chuàng)新互聯(lián)
網(wǎng)頁(yè)路徑:http://www.bm7419.com/article20/dcdsco.html

成都網(wǎng)站建設(shè)公司_創(chuàng)新互聯(lián),為您提供網(wǎng)頁(yè)設(shè)計(jì)公司、面包屑導(dǎo)航、電子商務(wù)、網(wǎng)站設(shè)計(jì)、Google、靜態(tài)網(wǎng)站

廣告

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

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