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 agrif...@nagios.com On 02/23/2012 10:34 AM, Carlos Albornoz wrote: > Hi, > > i try to run a check_by_ssh, my ssh config is here > > http://pastebin.com/jvSZSAvR > > but when i run "./check_by_ssh -H desthost -C /pathto/check_any -l destuser" > > i get > > "check_by_ssh: Invalid hostname/address - desthost" > > i try to search why, but i dont find info > maybe the script dont work with that ssh config > any idea why dont work? > > Cheers. > ------------------------------------------------------------------------------ Virtualization & Cloud Management Using Capacity Planning Cloud computing makes use of virtualization - but cloud computing also focuses on allowing computing to be delivered as a service. http://www.accelacomm.com/jaw/sfnl/114/51521223/ _______________________________________________ Nagios-users mailing list Nagios-users@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