> -----Original Message----- > From: [EMAIL PROTECTED] [mailto:nagios-users- > [EMAIL PROTECTED] On Behalf Of Steven Schwartz > Sent: Tuesday, February 19, 2008 3:01 PM > To: nagios-users@lists.sourceforge.net > Subject: [Nagios-users] Problems with check_ssh > > I'm trying to use check_ssh as a substitute for check_ping, for machines > on the other side of a no-ping firewall. > > > > When I run the check by hand, I get: > > > > ../libexec/check_ssh -t 20 -H <machine-name> > > SSH OK - Sun_SSH_1.1 (protocol 2.0)
Tested as the nagios user? > My checkcommands.cfg entry: > > > > # 'check_ssh' command definition > > define command{ > > command_name check_ssh > > command_line $USER1$/check_ssh -4 -t 20 -H $HOSTADDRESS$ > > } > > CRITICAL - Socket timeout after 20 seconds > > > > Even though from the command line, I can reach it no problem. Any > suggestions? Does <machine-name> from the successful test above exactly match the value of $HOSTADDRESS$? Fundamentally, the plugin is just doing a TCP connect to $HOSTADDRESS$ and looking for the version string. It then disconnects. Does 'telnet $HOSTADDRESS$ 22' return an SSH banner? You'll need to substitute the value of the 'address' parameter in the host{} definition for $HOSTADDRESS$ of course. -- Marc ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ 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