[Nagiosplug-devel] [Pkg-nagios-devel] Bug#392610: nagios-plugins-basic: check_jabber always return warning

Thomas Guyot-Sionnest dermoth at aei.ca
Tue Jan 30 15:23:28 CET 2007


On 30/01/07 04:00 AM, Jan Wagner wrote:
> Hi Thomas,
> 
> thanks for your help.
> 
> # LANG=C ./check_tcp -H jabber.org -p 5223 --send="<stream:stream 
> to=\'jabber.org\' xmlns=\'jabber:client\' 
> xmlns:stream=\'http://etherx.jabber.org/streams\'>\n" --expect="<?xml 
> version=\'1.0\'?><stream:stream 
> xmlns:stream=\'http://etherx.jabber.org/streams\'" --quit="</stream:stream>\n" --ssl -j
> TCP WARNING - Unexpected response from host/socket on port 5223|
> time=0.703722s;0.000000;0.000000;0.000000;10.000000
> 
> # LANG=C ./check_tcp -H jabber.org -p 5223 --send="<stream:stream 
> to=\'jabber.org\' xmlns=\'jabber:client\' 
> xmlns:stream=\'http://etherx.jabber.org/streams\'>\n" --expect="<?xml 
> version=\'1.0\'?><stream:stream 
> xmlns:stream=\'http://etherx.jabber.org/streams\'" --quit="</stream:stream>\n" --ssl --jail
> ./check_TCP: option `--jail' requires an argument
> 
> Hmm .. is there any trouble with "--jail" there?

Aww, that's definitely a bug. Why '-j' works but not '--jail' is a
mistery for me though :/

Use the attached patch to fix your problem.


Ton, do you have any idea why -j worked but not --jail? Should we use
all long options in "make test" scripts?


Thomas
-------------- next part --------------
A non-text attachment was scrubbed...
Name: check_tcp.jail_noargument.patch
Type: text/x-patch
Size: 664 bytes
Desc: not available
URL: <http://nagios-plugins.org/archive/devel/attachments/20070130/904f6e5b/attachment.bin>


More information about the Devel mailing list