aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKazuki Yamaguchi <k@rhe.jp>2022-02-27 12:30:39 +0900
committerKazuki Yamaguchi <k@rhe.jp>2023-08-07 16:59:22 +0900
commita0429f13625514241a9e959ad7160b56c8f36e48 (patch)
treebf9f2a4cd7fa5b3e37552e11554552823e5f02ac
parent8affc6cc332f14827532611d522c30e153f3fe82 (diff)
downloadsmokeping-a0429f13625514241a9e959ad7160b56c8f36e48.tar.gz
FPingContinuous: "timed out" parsing
> Unknown input data: 169.254.16.17 : [180], timed out (NaN avg, 100% loss)
-rw-r--r--lib/Smokeping/probes/FPingContinuous.pm11
1 files changed, 11 insertions, 0 deletions
diff --git a/lib/Smokeping/probes/FPingContinuous.pm b/lib/Smokeping/probes/FPingContinuous.pm
index 47e8b7b..958df9b 100644
--- a/lib/Smokeping/probes/FPingContinuous.pm
+++ b/lib/Smokeping/probes/FPingContinuous.pm
@@ -227,6 +227,17 @@ sub run_pinger {
# We can forget about any assumed drops since we have handles actual packet loss above
$results{$address}{assumed_drops}=0;
+ } elsif($data =~ /(\S+)\s+:\s+\[(\d+)\], timed out/) {
+ my $address=$1;
+ my $this_seq=$2;
+
+ push @{$results{$address}{results}}, "-";
+
+ # Update the sequence number
+ $results{$address}{reply_seq}=$this_seq;
+
+ # Ignoring assumed_drops because hitting this code path would mean
+ # fping reports all drops
} else {
# We only care about input from either stdin or stderr. We need to
# clear data from both to avoid deadlocks, but we only want to log