to avoid going down in congested line scenario, also need longer ping timeout
[pingcheck] / src / host / hoststatus.cpp
index 2e1db87..42e5cc7 100644 (file)
@@ -227,7 +227,11 @@ void HostStatus::analyze_ping_statistics()
     // However, if all pings timed out even in burst mode, then we still declare
     // the line down
     if (InBurstMode && PingCongestionCount >= PingsPerformedCount)
+    {
+        GlobalLogger.notice() << log_prefix() << "All pings timed out despite "
+            << "using more pings per IP --> assume connection is really down";
         ExceededPingFailedLimit = true;
+    }
 
     // notify if the amount of pings that failed exceed the limit
     if ( exceeded_ping_failed_limit() )