Tool to measure ssh latency ("sshping") ?

Jochen Bern Jochen.Bern at binect.de
Fri Jul 28 18:30:11 AEST 2023


On 27.07.23 23:14, Roland Mainz wrote:
> Before I start writing one myself...
> ... did anyone ever wrote a tool to measure the latency of a ssh
> connection, a la "ping" ?

Umh ... Nagios(/Icinga/.../Monitoring) plugins?

> [nagios at monitoring01 ~]$ PLUGINS="/usr/lib64/nagios/plugins"
> [nagios at monitoring01 ~]$ $PLUGINS/check_tcp -H 172.28.225.35 -p 22
> TCP OK - 0.002 second response time on 172.28.225.35 port 22|time=0.001993s;;;0.000000;10.000000
> [nagios at monitoring01 ~]$ $PLUGINS/check_ssh -p 22 172.28.225.35
> SSH OK - OpenSSH_7.4 (protocol 2.0) | time=0.020124s;;;0.000000;10.000000
> [nagios at monitoring01 ~]$ time $PLUGINS/check_by_ssh -H 172.28.225.35 -C "/bin/echo OK: SSH login succeeded"
> OK: SSH login succeeded
> 
> real    0m0.788s
> user    0m0.051s
> sys     0m0.010s

https://pkgs.org/search/?q=nagios-plugins

Kind regards,
-- 
Jochen Bern
Systemingenieur

Binect GmbH
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 3449 bytes
Desc: S/MIME Cryptographic Signature
URL: <http://lists.mindrot.org/pipermail/openssh-unix-dev/attachments/20230728/9e087d1b/attachment-0001.p7s>


More information about the openssh-unix-dev mailing list