check_by_ssh
C. Bensend
benny at bennyvision.com
Tue Jan 20 23:08:17 CET 2004
> I tried the check_by_ssh command with the "-1" (minus one) option from
> the command line:
> check_by_ssh -1 -H <hostname> -C <command>
> (without a passphrase)
>
> Amazingly, it worked. I believe the "-1" says to use ssh protocol 1.
OK, so sshd on the remote host is accepting protocol 1 connections.
> However, when I edit my services.cfg and checkcommands.cfg to include
> the new option, I get:
> ssh: connect to address 100.1.30.31 port 22: Connection refused
>From the nagios machine, can you provide the results of (as user nagios):
ping <hostname>
ping 100.1.30.31
ssh -1 hostname
ssh -2 hostname
Benny
--
"Have you ever tried simply turning off the TV, sitting down with your
children, and hitting them?" -- Bender, "Futurama"
-------------------------------------------------------
The SF.Net email is sponsored by EclipseCon 2004
Premiere Conference on Open Tools Development and Integration
See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
http://www.eclipsecon.org/osdn
_______________________________________________
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