made congestion/offline behaviour more stable: do no declare online right after going...
[pingcheck] / src / host / hoststatus.cpp
index 546fab7..401051c 100644 (file)
@@ -242,6 +242,11 @@ void HostStatus::analyze_ping_statistics()
         GlobalLogger.debug() << log_prefix() << "notify down";
         LinkAnalyzer->notify_host_down( HostAddress );
     }
+    else if (exceeded_ping_congestion_limit() && !InBurstMode)
+        // only notify up if will not try burst mode next
+        // otherwise will continuously notify up and down if get timeouts
+        GlobalLogger.notice() << log_prefix() << "will not notify up because "
+            << " will go into burst mode next";
     else
     {
         GlobalLogger.debug() << log_prefix() << "notify up";