[Nagiosplug-help] SSH Plugins

Thomas Guyot-Sionnest dermoth at aei.ca
Fri Jun 18 05:29:51 CEST 2010


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

On 10-06-04 10:25 AM, Franz, Jay wrote:
> Has anyone had any success getting the nagios plugins, check_ssh and
> check_by_ssh to work through a socks firewall?  I can configure my ssh
> client, via environment variables or command line options, with no
> problems.  But, I have had no success with the plugins as there seems
> to be no way to pass either environment variables or command line
> options to the plugins.  Any help would be appreciated.

I'm adding the devel list....

This is an excellent point... lib/utils_cmd.c:140 creates a new empty
environment array with LC_ALL=C.

Instead we could use the current environment in:
extern char **environ;

Now I'm wondering if we should rewrite **environ with the LC_ALL
changed/added or if we can ignore it. Ton, since you added utils_cmd, do
you have any idea?


Jay, regarding your issue, can't you set options in ~nagios/.ssh/config?
(or whichever path according to the user nagios runs plugins as...)

Thanks

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

iEYEARECAAYFAkwa6CQACgkQ6dZ+Kt5BchbtwwCaAkXkYVDH+K0BSOGYjNNNqZ0E
rg4AoMFAvORl6YbKEmC5QW5IVBckQtnt
=6D/V
-----END PGP SIGNATURE-----




More information about the Help mailing list