[Nagiosplug-help] SSH Plugins

Franz, Jay Jay.Franz at ssa.gov
Fri Jun 18 16:18:08 CEST 2010


>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,

We certainly can, but we have had no luck with getting either ssh plugin to read the system wide ssh_config (/opt/ssh/etc/ssh_config), so I am ashamed to say we assumed that they would not read a local config file either.  We will test that option and post the results.  Thanks, for the suggestion.

Jay




More information about the Help mailing list