########################################################################
###定義針對(duì)主機(jī)的告警條件
########################################################################
# Generic host definition template - This is NOT a real host, just a template!
創(chuàng)新互聯(lián)公司專(zhuān)注于商水網(wǎng)站建設(shè)服務(wù)及定制,我們擁有豐富的企業(yè)做網(wǎng)站經(jīng)驗(yàn)。 熱誠(chéng)為您提供商水營(yíng)銷(xiāo)型網(wǎng)站建設(shè),商水網(wǎng)站制作、商水網(wǎng)頁(yè)設(shè)計(jì)、商水網(wǎng)站官網(wǎng)定制、小程序定制開(kāi)發(fā)服務(wù),打造商水網(wǎng)絡(luò)公司原創(chuàng)品牌,更為您提供商水網(wǎng)站排名全網(wǎng)營(yíng)銷(xiāo)落地服務(wù)。
define host{
name generic-host ; The name of this host template模板名稱(chēng),要用在另外一個(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ù)告警。如果開(kāi)啟重復(fù)報(bào)警,設(shè)置的值需要大于等于正常檢查的間隔時(shí)間
normal_check_interval 5 //正常檢查間隔時(shí)間
retry_check_interval 1 //重試檢查間隔
max_check_attempts 3 //最大重試次數(shù)
check_period 24x7 //檢查時(shí)間段的名稱(chēng),具體的時(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!
}
本文題目:nagios監(jiān)控配置詳解三告警相關(guān)模板
URL分享:http://aaarwkj.com/article14/isjoge.html
成都網(wǎng)站建設(shè)公司_創(chuàng)新互聯(lián),為您提供云服務(wù)器、品牌網(wǎng)站建設(shè)、商城網(wǎng)站、關(guān)鍵詞優(yōu)化、全網(wǎng)營(yíng)銷(xiāo)推廣、企業(yè)建站
聲明:本網(wǎng)站發(fā)布的內(nèi)容(圖片、視頻和文字)以用戶(hù)投稿、用戶(hù)轉(zhuǎn)載內(nèi)容為主,如果涉及侵權(quán)請(qǐng)盡快告知,我們將會(huì)在第一時(shí)間刪除。文章觀(guān)點(diǎn)不代表本網(wǎng)站立場(chǎng),如需處理請(qǐng)聯(lián)系客服。電話(huà):028-86922220;郵箱:631063699@qq.com。內(nèi)容未經(jīng)允許不得轉(zhuǎn)載,或轉(zhuǎn)載時(shí)需注明來(lái)源: 創(chuàng)新互聯(lián)