溫馨提示×

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

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

nagios監(jiān)控服務(wù)出現(xiàn)FLAPPING狀態(tài)時(shí)無法發(fā)出郵件報(bào)警信息

發(fā)布時(shí)間:2020-06-21 05:47:05 來源:網(wǎng)絡(luò) 閱讀:1240 作者:guoxianqi2014 欄目:移動(dòng)開發(fā)

1.服務(wù)出現(xiàn)FLAPPING狀態(tài)時(shí)無法發(fā)出郵件報(bào)警信息
[1409537279] SERVICE ALERT: rs-07;Memory;CRITICAL;HARD;2;Connection refused by host
[1409537279] SERVICE FLAPPING ALERT: rs-07;Memory;STARTED; Service appears to have started flapping (28.2% change >= 20.0% threshold)

2.原因:flap_detection_enabled參數(shù)起作用,當(dāng)服務(wù)在兩種狀態(tài)之間頻繁切換時(shí),為避免不停的發(fā)送報(bào)警,此參數(shù)用于抑制報(bào)警

define service{
        name                            generic-service         
        active_checks_enabled           1                       
        passive_checks_enabled          1                       
        parallelize_check               1                       
        obsess_over_service             1                       
        check_freshness                 0                       
        notifications_enabled           1                       
        event_handler_enabled           1                       
        flap_detection_enabled          0        <--當(dāng)服務(wù)在多個(gè)狀態(tài)直接頻繁切換時(shí),抑制觸發(fā)監(jiān)控報(bào)警。使之不生效             
        failure_prediction_enabled      1                       
        process_perf_data               1                       
        retain_status_information       1                       
        retain_nonstatus_information    1                       
        is_volatile                     0                       
        check_period                    24x7                    
        max_check_attempts              3                       
        normal_check_interval           10                      
        retry_check_interval            2                       
        contact_groups                  admins                  
        notification_options            w,u,c,r                 
        notification_interval           60                      
        notification_period             24x7                    
         register                        0                      
        }

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

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

AI