summaryrefslogtreecommitdiffstats
path: root/lib/Smokeping/probes/CiscoRTTMonDNS.pm
diff options
context:
space:
mode:
authorTobi Oetiker <tobi@oetiker.ch>2010-03-10 06:53:36 +0100
committerTobi Oetiker <tobi@oetiker.ch>2010-03-10 06:53:36 +0100
commitbf2a5c2c1de2a1b20348bfb6c1f49b850f0db4f6 (patch)
tree179f2b9715f29263b57419eee52819a32d8cd577 /lib/Smokeping/probes/CiscoRTTMonDNS.pm
parent98421ee8ba3adf8545f4a35e673ff8ef6881b65e (diff)
downloadsmokeping-bf2a5c2c1de2a1b20348bfb6c1f49b850f0db4f6.tar.gz
smokeping-bf2a5c2c1de2a1b20348bfb6c1f49b850f0db4f6.tar.xz
port the timeout fix from CiscoRTTMon ICMPPing to DNS and TcpConnect versions
Diffstat (limited to 'lib/Smokeping/probes/CiscoRTTMonDNS.pm')
-rw-r--r--lib/Smokeping/probes/CiscoRTTMonDNS.pm10
1 files changed, 8 insertions, 2 deletions
diff --git a/lib/Smokeping/probes/CiscoRTTMonDNS.pm b/lib/Smokeping/probes/CiscoRTTMonDNS.pm
index c4e2760..bd51fbd 100644
--- a/lib/Smokeping/probes/CiscoRTTMonDNS.pm
+++ b/lib/Smokeping/probes/CiscoRTTMonDNS.pm
@@ -60,7 +60,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 does unnecessary DNS queries, i.e. more than configured in the "pings" variable, because the RTTMon MIB only allows to set a total time for all queries in one measurement run (one "life"). Currently the probe sets the life duration to "pings"*2+3 seconds (2 secs is the timeout value hardcoded into this probe).
+The probe does unnecessary DNS queries, i.e. more than configured in the "pings" variable, because the RTTMon MIB only allows to set a total time for all queries in one measurement run (one "life"). Currently the probe sets the life duration to "pings"*5+3 seconds (5 secs is the timeout value hardcoded into this probe).
DOC
see_also => <<DOC,
L<http://oss.oetiker.ch/smokeping/>
@@ -77,7 +77,7 @@ DOC
}
}
-my $pingtimeout =2;
+my $pingtimeout = 5;
sub new($$$)
{
@@ -275,6 +275,12 @@ DOC
_doc => "The (mandatory) name parameter is the DNS name to resolve.",
_example => 'www.foobar.com.au',
},
+ timeout => {
+ _re => '\d+',
+ _example => 15,
+ _default => $pingtimeout+10,
+ _doc => "How long a single RTTMonDNS '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 => {
_doc => <<DOC,
The (optional) iosint parameter is the source address for the DNS packets.