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

SourceForge.net <[email protected]>
Newsgroups gmane.network.nagios.plugins.devel
Message-ID <[email protected]>
Patches item #2895334, was opened at 2009-11-10 09:01
Message generated for change (Comment added) 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: Closed
>Resolution: Accepted
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)

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

Comment By: sni (svennierlein)
Date: 2012-04-09 13:18

Message:
This problem is now fixed in Git. Thank you for your report.

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

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

------------------------------------------------------------------------------
For Developers, A Lot Can Happen In A Second.
Boundary is the first to Know...and Tell You.
Monitor Your Applications in Ultra-Fine Resolution. Try it FREE!
http://p.sf.net/sfu/Boundary-d2dvs2
_______________________________________________________
Nagios Plugin Development Mailing List Nagiosplug-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
Unsubscribe at https://lists.sourceforge.net/lists/listinfo/nagiosplug-devel
::: Please include plugins version (-v) and OS when reporting any issue. 
::: Messages without supporting info will risk being sent to /dev/null
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.