summaryrefslogtreecommitdiffstats
path: root/lib/Smokeping/probes
diff options
context:
space:
mode:
authorNiko Tyni <ntyni@iki.fi>2006-04-16 08:21:36 +0200
committerNiko Tyni <ntyni@iki.fi>2006-04-16 08:21:36 +0200
commitf15f1a911d68fb398eff6e50f260d17cee2ae956 (patch)
treeb7f3f3ba332e909c13942dfacc7a97273a30fcc7 /lib/Smokeping/probes
parentd414b046426118fee953f74bde16a31b83fe9fa9 (diff)
downloadsmokeping-f15f1a911d68fb398eff6e50f260d17cee2ae956.tar.gz
smokeping-f15f1a911d68fb398eff6e50f260d17cee2ae956.tar.xz
Bring back 'fping -t'.
Diffstat (limited to 'lib/Smokeping/probes')
-rw-r--r--lib/Smokeping/probes/FPing.pm11
1 files changed, 11 insertions, 0 deletions
diff --git a/lib/Smokeping/probes/FPing.pm b/lib/Smokeping/probes/FPing.pm
index 9391849..7223d44 100644
--- a/lib/Smokeping/probes/FPing.pm
+++ b/lib/Smokeping/probes/FPing.pm
@@ -104,6 +104,7 @@ sub ping ($){
return unless @{$self->addresses};
my @params = () ;
push @params , "-b$self->{properties}{packetsize}" if $self->{properties}{packetsize};
+ push @params, "-t" . int(1000 * $self->{properties}{timeout}) if $self->{properties}{timeout};
push @params, "-i" . int(1000 * $self->{properties}{mininterval});
push @params, "-p" . int(1000 * $self->{properties}{hostinterval}) if $self->{properties}{hostinterval};
my @cmd = (
@@ -157,6 +158,16 @@ sub probevars {
_doc => "The ping packet size (in the range of 12-64000 bytes).",
},
+ timeout => {
+ _re => '(\d*\.)?\d+',
+ _example => 1.5,
+ _doc => <<DOC,
+The fping "-t" parameter, but in (possibly fractional) seconds rather than
+milliseconds, for consistency with other Smokeping probes. Note that as
+Smokeping uses the fping 'counting' mode (-C), this apparently only affects
+the last ping.
+DOC
+ },
hostinterval => {
_re => '(\d*\.)?\d+',
_example => 1.5,