[Nagiosplug-devel] Re: check_by_ssh question

Karl DeBisschop karl at debisschop.net
Wed Jun 4 20:54:05 CEST 2003


On Wed, 2003-06-04 at 16:14, linuxrules at hushmail.com wrote:
> Hi, i had a question for you concerning the check_by_ssh plugin for nagios.
> First of all let me say that this plugin has been a lifesaver for me
> since i need to monitor systems on the other side of a firewall and it
> takes an act of god to get ports opened through it. Its a great piece
> of work and i thank you for your work on it. I'm running into a big problem
> with it now however. The powers that be have insisted that we use warning
> banners on all our servers now and this is throwing off the check_by_ssh
> plugin. I can't seem to find a way around it either i have checked the
> manpaged for ssh, sshd, ssh_config, sshd_config etc and there doesn't
> seem to be a way to disable it. If you know of an easy way to get around
> this problem that i'm having i would appreciate the solution. If not
> i'll guess i'll have to write something in perl and take a big performance
> hit as my C skills are rather lacking. Thanks a lot.
> 
> Ed Daniels

Two possible solutions come to mind - on is to look for some
user-configurable string that is the beginning of the output or the end
of the banner. Second is to discard the first n lines from ssh, where n
is a user configurable option. I thing both of these could be
implemented.

--
Karl





More information about the Devel mailing list