[smokeping-users] Re: Patch for SSH.pm

Niko Tyni ntyni+smokeping-users at mappi.helsinki.fi
Sat Dec 10 13:53:25 MET 2005

On Fri, Dec 09, 2005 at 07:41:31PM -0500, Igor Petrovski wrote:
> This is the patch that I'm using for the SSH probe.
> It adds another target variable, 'keytype', that specifies the type of 
> key to be used. I have
> few devices that only respond to queries for 'dsa' keys, so I needed a 
> way to pass the param.
> It fixes the "pingfactor", which in the original is set to 10. 
> POSIX::times reports in clock ticks,
> which on my system is 100, so the probe was off by a factor of 10.
> It also only reports the time only if it sees $ssh_re on STDERR,  and 
> unreachable otherwise.

Thanks! This will be in the next release.

I'm wondering, though, whether it would be smarter to use Time::HiRes
instead of POSIX::times(), to get a better time resolution. 100 ticks
per second seems a bit coarse...

Unsubscribe mailto:smokeping-users-request at list.ee.ethz.ch?subject=unsubscribe
Help        mailto:smokeping-users-request at list.ee.ethz.ch?subject=help
Archive     http://lists.ee.ethz.ch/smokeping-users
WebAdmin    http://lists.ee.ethz.ch/lsg2.cgi

More information about the smokeping-users mailing list