[Nagiosplug-help] Re: Testing telnet more carefully (check_tcp)

Karl DeBisschop karl at debisschop.net
Wed Oct 16 22:54:05 CEST 2002


On Fri, 2002-10-11 at 21:13, C. Bensend wrote:
> On Thu, Oct 10, 2002 at 01:50:02PM -0500, C. Bensend wrote:
> 
> [snip]
> 
> > 	I figured one of the following would probably do it:
> > 
> > check_tcp -H $HOSTADDRESS$ -p 23 -e login
> > check_tcp -H $HOSTADDRESS$ -p 23 --expect="login:"
> > check_tcp -H $HOSTADDRESS$ -p 23 -e login:
> > check_tcp -H $HOSTADDRESS$ -p 23 -e "login:"
> 
> Hey folks,
> 
> 	I hate to reply to my own [single-post] thread, but
> I haven't seen any replies.  So, I went digging in the source.
> Fear, because myself and C source don't always get along.  ;)
> 
> 	In my very simple grokking of check_tcp.c, it doesn't
> seem that the --expect flag really does anything.  Is this
> correct?  If I'm misunderstanding things, please take no
> offense - C isn't my native language.

Its not true. Works fine with http, for instance. (If you remember that
the http dialog requires that you send a GET first).

OOTH, I can't get telnet to work either.
 
> 	Developers, can you please comment?  Is this a work
> in progress?  Or am I a potatohead?

It's all a work in progress. I'm working on it right now.  If I figure
anything out, I'll let you know.

--
Karl






More information about the Help mailing list