Problem with check_ftp not closing connection properly?

Karl DeBisschop karl at debisschop.net
Tue Feb 18 15:29:29 CET 2003


On Tue, 2003-02-18 at 01:38, Fredrik Wänglund wrote:
> 
> 
> >On Sat, Feb 15, 2003 at 07:56:41AM -0500, Karl DeBisschop wrote:
> >> by default, check_tcp just maust the connection and drops it.
> >> 
> >> Try specifying a string to send 
> >> 
> >> 	check_tcp -s QUIT -H <host>
> >> 
> >> Please let us know if that works, there are sketchy reports of bugs in
> >> check_tcp that we'd really like to iron out before we release the 3rd
> >> beta early next week.
> >
> >I assume you meant "check_ftp -s QUIT -H <host>".  :-)  I tried that and
> >it does the same thing.  If I telnet to port 21 and type QUIT, it doesn't
> 
> Maybe because of this;
> 
> [nagios at pistol nagios]# cd libexec/
> [nagios at pistol libexec]# file check_ftp 
> check_ftp: symbolic link to check_tcp
> [nagios at pistol libexec]# 

That is correct - the send/expect/quit strings are the only things that
differ between check_pop, check_imap, check_simap, check_tcp,
check_imap, check_spop, check_smtp. So to reduce the chance of
typo-induced bugs, they are combined into one piece of code that morphs
based on invocation name.

--
Karl



-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
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