<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Verdana
}
--></style>
</head>
<body class='hmmessage'>
yes running the check on the client works fine :<br><br>/usr/local/nagios/libexec> ./check_users -w 5 -c 8<br>USERS OK - 1 users currently logged in |users=1;5;8;0<br><br>I am beginning to think it has to be something really stupid...<br><br>Thanks,<br><br>Steve<br><br>> Date: Tue, 13 Jul 2010 15:52:06 -0500<br>> From: benny@bennyvision.com<br>> To: nagios-users@lists.sourceforge.net<br>> Subject: Re: [Nagios-users] Going Nuts trying to get check_by_ssh to work<br>> <br>> <br>> > Thanks for the reply, yes I have tried it with both ip & name with the<br>> > same results.<br>> ><br>> > I assume that the command line check should work as I have written it here<br>> > correct?<br>> ><br>> > /usr/local/nagios/libexec> ./check_by_ssh -H 172.xx.xx.xx -C<br>> > '/usr/local/nagios/libexec/check_users -w 5 -c 8' -l nagios -2 -4<br>> ><br>> > Remote command execution failed:<br>> ><br>> ><br>> > I do see on the client in /var/log/secure log : sshd[7044]: Accepted<br>> > publickey for nagios from 172.xx.xx.xx<br>> > port 42117 ssh2<br>> ><br>> > so this should mean the ssh was successful correct?<br>> <br>> If that's the case, yes, your authentication is fine.<br>> <br>> As the nagios user on the remote host, *copy-and-pasting* that exact<br>> command (inside the single quotes) into the shell works?<br>> <br>> Benny<br>> <br>> <br>> -- <br>> "Well, we *could* hunt down the perpetrators, pool some $$, and<br>> hire 3 or 4 baseball-bat wielding professional explainers to go<br>> explain our position to them.  Figuring out how to do so without<br>> breaking any laws is the tough part..."<br>>                                  -- Valdis Kletnieks, 2009-01-23<br>> <br>> <br>> <br>> ------------------------------------------------------------------------------<br>> This SF.net email is sponsored by Sprint<br>> What will you do first with EVO, the first 4G phone?<br>> Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first<br>> _______________________________________________<br>> Nagios-users mailing list<br>> Nagios-users@lists.sourceforge.net<br>> https://lists.sourceforge.net/lists/listinfo/nagios-users<br>> ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. <br>> ::: Messages without supporting info will risk being sent to /dev/null<br>                                      <br /><hr />Hotmail is redefining busy with tools for the New Busy. Get more from your inbox. <a href='http://www.windowslive.com/campaign/thenewbusy?ocid=PID28326::T:WLMTAGL:ON:WL:en-US:WM_HMP:042010_2' target='_new'>See how.</a></body>
</html>