[ nagiosplug-Bugs-3611614 ] check_by_ssh hostname check

SourceForge.net <[email protected]>
Newsgroups gmane.network.nagios.plugins.devel
Message-ID <[email protected]>
Bugs item #3611614, was opened at 2013-04-22 16:19
Message generated for change (Tracker Item Submitted) made by francyci
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=397597&aid=3611614&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: None
Group: None
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Christopher Francy (francyci)
Assigned to: Nobody/Anonymous (nobody)
Summary: check_by_ssh hostname check

Initial Comment:
Please add a feature in check_by_ssh to skip the host_or_die() check.

I have host aliases defined in my system ssh_config (/etc/ssh/ssh_config) that are only accessible via ProxyCommand.  There are no DNS records for those systems since they exist outside the local network, and are not accessible except through a Proxy.

check_by_ssh.c

                case 'H':                                                                       /* host */
                        host_or_die(optarg);
                        hostname = optarg;
                        break;

If I comment out the `host_or_die()` and re-compile check_by_ssh seems to work perfectly fine to connect to the systems I have defined with aliases in my ssh_config.



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

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

------------------------------------------------------------------------------
Precog is a next-generation analytics platform capable of advanced
analytics on semi-structured data. The platform includes APIs for building
apps and a phenomenal toolset for data science. Developers can use
our toolset for easy data analysis & visualization. Get a free account!
http://www2.precog.com/precogplatform/slashdotnewsletter
_______________________________________________________
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.