日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 > 编程资源 > 编程问答 >内容正文

编程问答

nagios报警延迟的解决--flapping state

發布時間:2025/5/22 编程问答 24 豆豆
生活随笔 收集整理的這篇文章主要介紹了 nagios报警延迟的解决--flapping state 小編覺得挺不錯的,現在分享給大家,幫大家做個參考.

這個問題是在測試中發現的。因為要在服務器上布置nagios用來監控oracle,可是發現手動shutdown數據庫后能夠很快報警,但是再startup后就不是很及時,有時會延遲很久。經過研究發現了這個情況,現貼出來與大家分享。


注意看那個類似云朵的圖標,那個就是在提示狀態抖動,也就是flapping state檢測開啟了。而一旦開啟,就會temporarily suppres notifications。


報警延遲是由于host or service狀態不穩定,nagios稱之為flapping state
在nagios的主配置文件nagios.cfg中,有如下內容:
# FLAP DETECTION OPTION
# This option determines whether or not Nagios will try
# and detect hosts and services that are "flapping". ?
# Flapping occurs when a host or service changes between
# states too frequently. ?When Nagios detects that a?
# host or service is flapping, it will temporarily suppress
# notifications for that host/service until it stops
# flapping. ?Flap detection is very experimental, so read
# the HTML documentation before enabling this feature!
# Values: 1 = enable flap detection
# ? ? ? ? 0 = disable flap detection?(default)


enable_flap_detection=0#雖然文檔里說默認是0,但實際為1.改為0之后就解決了flapping state,并且解決了臨時suppress notifications的問題






# FLAP DETECTION THRESHOLDS FOR HOSTS AND SERVICES
# Read the HTML documentation on flap detection for
# an explanation of what this option does. ?This option
# has no effect if flap detection is disabled.


low_service_flap_threshold=5.0
high_service_flap_threshold=20.0
low_host_flap_threshold=5.0
high_host_flap_threshold=20.0

轉載于:https://www.cnblogs.com/Yongzhouunknown/p/4898441.html

總結

以上是生活随笔為你收集整理的nagios报警延迟的解决--flapping state的全部內容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網站內容還不錯,歡迎將生活随笔推薦給好友。