Going Nuts trying to get check_by_ssh to work

steve f a31modela at hotmail.com
Wed Jul 14 16:47:28 CEST 2010


Thanks for your help with this.  

I commented out the sshd.conf section calling for a banner & resent the following successfully:

/usr/local/nagios/libexec> ./check_by_ssh -H 10.X.XXX.XXX -C '/usr/local/nagios/libexec/check_load -w 5.0 -c 10.0'
OK - load average: 0.12, 0.15, 0.16|load1=0.120;5.000;10.000;0; load5=0.150;5.000;10.000;0; load15=0.160;5.000;10.000;0;

Edited the nagios cfg files  & looks good now.

I cannot run my clients without the banner , due to SOX & PCI compliance. 

So, what I was able to do is run the check_by_ssh plugin with the -q option and after putting the banner piece back in, the check works perfect.

./check_by_ssh -H 10.xxx.xxx.xxx -C '/usr/local/nagios/libexec/check_load -w 5.0 -c 10.0' -q
OK - load average: 0.55, 0.33, 0.22|load1=0.550;5.000;10.000;0; load5=0.330;5.000;10.000;0; load15=0.220;5.000;10.000;0;

Again, thanks for your involvement getting this resolved,  Rod & Benny.  Hopefully it helps someone else down the road.

Regards,

Steve


> Date: Tue, 13 Jul 2010 16:57:49 -0700
> From: raanders at cyber-office.net
> To: nagios-users at lists.sourceforge.net
> Subject: Re: [Nagios-users] Going Nuts trying to get check_by_ssh to work
> 
> On 07/13/2010 04:03 PM, C. Bensend wrote:
> >
> >> If I remember, that line is in the sshd.config for the auth users banner.
> >> I should be able to comment it out to test it.
> >>
> >> Didn't think about that...  I'll dial in when I get home&  try it..
> >
> > If you're running a recent release of OpenSSH, you might be able
> > to use a match directive to skip the banner for connections
> > originating with your Nagios server...  Off the top of my head,
> > I don't recall if that is one of the options you can override
> > with match.
> 
> The simplest way I've found to avoid the banner is to do it like this.
> 
>     ssh root at host.example.com 'cat /etc/rsyslog.conf'
> 
> 
> \\||/
> Rod
> -- 
> >
> > Please let us know what happens!
> >
> > Benny
> >
> >
> 
> 
> ------------------------------------------------------------------------------
> 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
 		 	   		  
_________________________________________________________________
The New Busy is not the too busy. Combine all your e-mail accounts with Hotmail.
http://www.windowslive.com/campaign/thenewbusy?tile=multiaccount&ocid=PID28326::T:WLMTAGL:ON:WL:en-US:WM_HMP:042010_4
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-lists.org/archive/users/attachments/20100714/c51b29e8/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