Going Nuts trying to get check_by_ssh to work

steve f a31modela at hotmail.com
Tue Jul 13 23:06:53 CEST 2010


yes running the check on the client works fine :

/usr/local/nagios/libexec> ./check_users -w 5 -c 8
USERS OK - 1 users currently logged in |users=1;5;8;0

I am beginning to think it has to be something really stupid...

Thanks,

Steve

> Date: Tue, 13 Jul 2010 15:52:06 -0500
> From: benny at bennyvision.com
> To: nagios-users at lists.sourceforge.net
> Subject: Re: [Nagios-users] Going Nuts trying to get check_by_ssh to work
> 
> 
> > Thanks for the reply, yes I have tried it with both ip & name with the
> > same results.
> >
> > I assume that the command line check should work as I have written it here
> > correct?
> >
> > /usr/local/nagios/libexec> ./check_by_ssh -H 172.xx.xx.xx -C
> > '/usr/local/nagios/libexec/check_users -w 5 -c 8' -l nagios -2 -4
> >
> > Remote command execution failed:
> >
> >
> > I do see on the client in /var/log/secure log : sshd[7044]: Accepted
> > publickey for nagios from 172.xx.xx.xx
> > port 42117 ssh2
> >
> > so this should mean the ssh was successful correct?
> 
> If that's the case, yes, your authentication is fine.
> 
> As the nagios user on the remote host, *copy-and-pasting* that exact
> command (inside the single quotes) into the shell works?
> 
> Benny
> 
> 
> -- 
> "Well, we *could* hunt down the perpetrators, pool some $$, and
> hire 3 or 4 baseball-bat wielding professional explainers to go
> explain our position to them.  Figuring out how to do so without
> breaking any laws is the tough part..."
>                                  -- Valdis Kletnieks, 2009-01-23
> 
> 
> 
> ------------------------------------------------------------------------------
> This SF.net email is sponsored by Sprint
> What will you do first with EVO, the first 4G phone?
> Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
> _______________________________________________
> 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
 		 	   		  
_________________________________________________________________
Hotmail is redefining busy with tools for the New Busy. Get more from your inbox.
http://www.windowslive.com/campaign/thenewbusy?ocid=PID28326::T:WLMTAGL:ON:WL:en-US:WM_HMP:042010_2
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-lists.org/archive/users/attachments/20100713/98f1c3df/attachment.html>
-------------- next part --------------
------------------------------------------------------------------------------
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
-------------- next part --------------
_______________________________________________
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