[Nagiosplug-devel] [ nagiosplug-Patches-2895334 ] Added -F configfile option to check_by_ssh

SourceForge.net noreply at sourceforge.net
Tue Nov 10 18:01:03 CET 2009


Patches item #2895334, was opened at 2009-11-10 17:01
Message generated for change (Tracker Item Submitted) made by svennierlein
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=397599&aid=2895334&group_id=29880

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: Enhancement
Group: None
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: sni (svennierlein)
Assigned to: Nobody/Anonymous (nobody)
Summary: Added -F configfile option to check_by_ssh

Initial Comment:
This patch adds a new option to check_by_ssh.

Example Commandline:
./check_by_ssh -F ~/.ssh/config -H localhost -C /bin/true

Patch is against:
%>./plugins/check_by_ssh -V
check_by_ssh vtrunk.2272.dirty (nagios-plugins 1.4.14)

The new -F option is directly passed through to ssh.
>From the ssh man page:
-F configfile
Specifies an alternative per-user configuration file.  If a configuration file is given on the command line, the system-wide configuration file
 (/etc/ssh/ssh_config) will be ignored.  The default for the per-user configuration file is ~/.ssh/config.

With such a config file, you dont have to add multiple -o options to check_by_ssh. And you can maintain your ssh configuration from one place.

I would be happy to see this patch applied. (2 new tests are included)

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=397599&aid=2895334&group_id=29880




More information about the Devel mailing list