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的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: hibernateTemplate的lo
- 下一篇: 探索式学习