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

C. Bensend benny at bennyvision.com
Fri Oct 11 18:15:01 CEST 2002


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.

	Developers, can you please comment?  Is this a work
in progress?  Or am I a potatohead?

Benny


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
There's always time for Cheerios...




More information about the Help mailing list