nagios报警延迟的解决--flapping state
這個(gè)問(wèn)題是在測(cè)試中發(fā)現(xiàn)的。因?yàn)橐诜?wù)器上布置nagios用來(lái)監(jiān)控oracle,可是發(fā)現(xiàn)手動(dòng)shutdown數(shù)據(jù)庫(kù)后能夠很快報(bào)警,但是再startup后就不是很及時(shí),有時(shí)會(huì)延遲很久。經(jīng)過(guò)研究發(fā)現(xiàn)了這個(gè)情況,現(xiàn)貼出來(lái)與大家分享。
注意看那個(gè)類似云朵的圖標(biāo),那個(gè)就是在提示狀態(tài)抖動(dòng),也就是flapping state檢測(cè)開啟了。而一旦開啟,就會(huì)temporarily suppres notifications。
報(bào)警延遲是由于host or service狀態(tài)不穩(wěn)定,nagios稱之為flapping state
在nagios的主配置文件nagios.cfg中,有如下內(nèi)容:
# 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#雖然文檔里說(shuō)默認(rèn)是0,但實(shí)際為1.改為0之后就解決了flapping state,并且解決了臨時(shí)suppress notifications的問(wèn)題
# 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
轉(zhuǎn)載于:https://www.cnblogs.com/Yongzhouunknown/p/4898441.html
總結(jié)
以上是生活随笔為你收集整理的nagios报警延迟的解决--flapping state的全部?jī)?nèi)容,希望文章能夠幫你解決所遇到的問(wèn)題。
- 上一篇: hibernateTemplate的lo
- 下一篇: 探索式学习