From 8edaa7fee41f9d5597a656123a481f2483906053 Mon Sep 17 00:00:00 2001 From: Tobi Oetiker Date: Wed, 30 Aug 2006 23:12:31 +0000 Subject: added alert mailtemplates and new probe config ProbeUnit --- lib/Smokeping/probes/FTPtransfer.pm | 12 ++++++++---- lib/Smokeping/probes/base.pm | 4 ++++ 2 files changed, 12 insertions(+), 4 deletions(-) (limited to 'lib/Smokeping') diff --git a/lib/Smokeping/probes/FTPtransfer.pm b/lib/Smokeping/probes/FTPtransfer.pm index 707129c..c4c39e8 100644 --- a/lib/Smokeping/probes/FTPtransfer.pm +++ b/lib/Smokeping/probes/FTPtransfer.pm @@ -53,7 +53,7 @@ Many variables can be specified either in the probe or in the target definition, the target-specific variable will override the prove-specific variable. DOC authors => <<'DOC', -Tobias Oetiker +Tobias Oetiker sponsored by Virtela DOC bugs => <quit; $elapsed = ( $end - $start ); $ok or next; - my $speed = $elapsed / $size; + my $speed = $size / $elapsed; $self->do_debug("$host: ftp $mode $speed Bytes/s"); push @rates, $speed; } diff --git a/lib/Smokeping/probes/base.pm b/lib/Smokeping/probes/base.pm index 4a83b50..e33416f 100644 --- a/lib/Smokeping/probes/base.pm +++ b/lib/Smokeping/probes/base.pm @@ -90,6 +90,10 @@ sub ProbeDesc ($) { return "Probe which does not overrivd the ProbeDesc methode"; } +sub ProbeUnit ($) { + return "Seconds"; +} + sub target2dynfile ($$) { # the targets are stored in the $self->{targets} # hash as filenames pointing to the RRD files -- cgit v1.2.3-24-g4f1b