[Nagiosplug-help] check_by_ssh does not seem to honour StrictHostKeyChecking

Thomas Guyot-Sionnest dermoth at aei.ca
Wed Dec 1 02:23:41 CET 2010


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 10-11-29 11:10 AM, Patricia Jung wrote:
> Hello out there,
> 
> when monitoring service-bound IPs using check_by_ssh I encounter the problem that several servers might answer which have differing ssh server keys. This way the service check fails whenever the answering server changes. A (far from perfect) solution to this would be to set StrictHostKeyChecking to no for the relevant IP. check_by_ssh however does not seem to honour this setting (not 1.4.15 and below) -- as long as I don't remove the offending key from known_hosts the plugin will time out.
> 
> Any suggestions?

Can't you pass it with the -o option?

 -o, --ssh-option=OPTION
    Call ssh with '-o OPTION' (may be used multiple times) [optional]

This works just like the ssh -o option.

- -- 
Thomas
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkz1o5YACgkQ6dZ+Kt5BchZKTgCeN/2+++xWB6Law0R5Z+VK75nC
6twAn0UH33jNCYwAJZIG+Ao96JoyThFw
=u9ca
-----END PGP SIGNATURE-----




More information about the Help mailing list