summaryrefslogtreecommitdiffstats
path: root/lib/Smokeping/probes
diff options
context:
space:
mode:
authorTobi Oetiker <tobi@oetiker.ch>2010-03-09 09:19:12 +0100
committerTobi Oetiker <tobi@oetiker.ch>2010-03-09 09:19:12 +0100
commit98421ee8ba3adf8545f4a35e673ff8ef6881b65e (patch)
tree6b23b1214a350f064fff813a71b45b3b89cdf975 /lib/Smokeping/probes
parentccac2c707170b3e4ccb8c3f714abcaf9e1ceb962 (diff)
downloadsmokeping-98421ee8ba3adf8545f4a35e673ff8ef6881b65e.tar.gz
smokeping-98421ee8ba3adf8545f4a35e673ff8ef6881b65e.tar.xz
raise timeout to 5s and twist basefork.pm into allowing this by providing a higher _default timeout for the probe.
Diffstat (limited to 'lib/Smokeping/probes')
-rw-r--r--lib/Smokeping/probes/CiscoRTTMonEchoICMP.pm10
1 files changed, 8 insertions, 2 deletions
diff --git a/lib/Smokeping/probes/CiscoRTTMonEchoICMP.pm b/lib/Smokeping/probes/CiscoRTTMonEchoICMP.pm
index 0f422d5..d17735e 100644
--- a/lib/Smokeping/probes/CiscoRTTMonEchoICMP.pm
+++ b/lib/Smokeping/probes/CiscoRTTMonEchoICMP.pm
@@ -59,7 +59,7 @@ If you want to be a bit more restrictive with SNMP write access to the router, t
The above configuration grants SNMP read-write only to 10.37.3.5 (the smokeping host) and only to the ciscoRttMon MIB tree. The probe does not need access to SNMP variables outside the RttMon tree.
DOC
bugs => <<DOC,
-The probe sends unnecessary pings, i.e. more than configured in the "pings" variable, because the RTTMon MIB only allows to set a total time for all pings in one measurement run (one "life"). Currently the probe sets the life duration to "pings"*2+3 seconds (2 secs is the ping timeout value hardcoded into this probe).
+The probe sends unnecessary pings, i.e. more than configured in the "pings" variable, because the RTTMon MIB only allows to set a total time for all pings in one measurement run (one "life"). Currently the probe sets the life duration to "pings"*5+3 seconds (5 secs is the ping timeout value hardcoded into this probe).
DOC
see_also => <<DOC,
L<http://oss.oetiker.ch/smokeping/>
@@ -75,7 +75,7 @@ DOC
}
}
-my $pingtimeout =2;
+my $pingtimeout = 5;
sub new($$$)
{
@@ -274,6 +274,12 @@ The (mandatory) ioshost parameter specifies the Cisco router, which will
execute the pings, as well as the SNMP community string on the router.
DOC
},
+ timeout => {
+ _re => '\d+',
+ _example => 15,
+ _default => $pingtimeout+10,
+ _doc => "How long a single RTTMonEcho ICMP 'ping' take at maximum plus 10 seconds to spare. Since we control our own timeout the only purpose of this is to not have us killed by the ping method from basefork.",
+ },
iosint => {
_example => '10.33.22.11',
_doc => <<DOC,