About check_by_ssh

Carlos Albornoz caralbornozc at gmail.com
Mon Feb 27 13:31:27 CET 2012


On Fri, Feb 24, 2012 at 1:18 PM, Alex Griffin <agriffin at nagios.com> wrote:
> check_by_ssh doesn't check the hostname using ssh's config. Perhaps it
> should, but looking through the source it looks like the error is coming
> from this function, which is actually a common function amongst several
> nagios plugins (located in netutils.h):
>
>     void
>     host_or_die(const char *str)
>     {
>         if(!str || (!is_addr(str) && !is_hostname(str)))
>             usage_va(_("Invalid hostname/address - %s"), str);
>     }
>
> Since it doesn't look like your machine is accessible outside of a local
> network, you could set up a proper proxy or vpn or something within the
> network with a public hostname. Then use check_by_ssh with the local IP,
> e.g. 192.168.0.2
>
> Alex Griffin
> ---
> Tech Team
> agriffin at nagios.com
>

OK, Thanks for the info Alex.

-- 
Carlos Albornoz C.
Linux User #360502
Fono: 97864420

------------------------------------------------------------------------------
Try before you buy = See our experts in action!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-dev2
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. 
::: Messages without supporting info will risk being sent to /dev/null


More information about the Users mailing list