check_by_ssh and banner

Andrew_Hoying at blm.gov Andrew_Hoying at blm.gov
Mon Feb 23 16:20:47 CET 2004






Thank you very much. This patch works perfectly for my situation. I briefly
tried hacking something like this myself before posting to the list, but
your solution is significantly better.

Andrew Hoying

nagios-users-admin at lists.sourceforge.net wrote on 02/20/2004 10:48:45 PM:

> On Fri, 2004-02-20 at 23:13, Karl DeBisschop wrote:
>
> > On Fri, 2004-02-20 at 19:14, Jason Martin wrote:
> > > On Fri, 20 Feb 2004 Andrew_Hoying at blm.gov wrote:
> > > > I'm trying to set up check_by_ssh, but with a banner turned on it
> > > > always returns the top line of the banner instead of the command.
> > > > Is there any way to avoid this?
> > >
> > > I believe changing the plugin to use the -q flag will do that. It'd
> > > require a very simple patch to the source.
> >
> > To be sure that I'm targetting the right issue, the banner is in the as
> > specified in the sshd_config Banner directive, right? As far as I can
> > see, the '-q' option will not suppress that banner. Has anyone done
> > actual testing to show otherwise? Can you share ssh/sshd version info
if
> > so? (I tested on FC1 openssh-3.6.1p2-19).
> >
> > It wouldn't be too hard to allow you to specify some number n of lines
> > to skip. Ii would be a little bit of a hack because the local admin
> > could change the text of the message and throw you off again. But I
> > cannot think of any better approaches.
>
> It turns out that the banner is on STDERR with the version of openssh
> that I have. I have implemented a '-S' falg that takes a number of lines
> to skip on STDERR, which handles this cares for me. It is committed to
> the CVS HEAD, if you'd care to do some testing.
>
> --
> Karl
>
>
>
> -------------------------------------------------------
> SF.Net is sponsored by: Speed Start Your Linux Apps Now.
> Build and deploy apps & Web services for Linux with
> a free DVD software kit from IBM. Click Now!
> http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click
> _______________________________________________
> 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



-------------------------------------------------------
SF.Net is sponsored by: Speed Start Your Linux Apps Now.
Build and deploy apps & Web services for Linux with
a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click
_______________________________________________
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