diff options
Diffstat (limited to 'lib/Smokeping')
-rw-r--r-- | lib/Smokeping/probes/TelnetIOSPing.pm | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/Smokeping/probes/TelnetIOSPing.pm b/lib/Smokeping/probes/TelnetIOSPing.pm index 3b78581..7fe9dff 100644 --- a/lib/Smokeping/probes/TelnetIOSPing.pm +++ b/lib/Smokeping/probes/TelnetIOSPing.pm @@ -137,13 +137,14 @@ sub pingone ($$){ my $pssword = $target->{vars}{iospass}; my $bytes = $self->{properties}{packetsize}; my $pings = $self->pings($target); + my $timeout = $self->{properties}{timeout}; # do NOT call superclass ... the ping method MUST be overwriten my %upd; my @args = (); - my $telnet = Net::Telnet->new(); + my $telnet = Net::Telnet->new( Timeout => $timeout ); # These are for debugging # $telnet->errmode("TIPreturn"); # $telnet->input_log("TIPinlog"); |