[Nagiosplug-devel] [ nagiosplug-Bugs-1865082 ] check_http with -H does not allow IPv6-address

SourceForge.net noreply at sourceforge.net
Mon Jan 7 03:13:13 CET 2008


Bugs item #1865082, was opened at 2008-01-06 15:09
Message generated for change (Comment added) made by hweiss
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=397597&aid=1865082&group_id=29880

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: Argument proccessing
Group: Release (specify)
>Status: Closed
>Resolution: Fixed
Priority: 5
Private: No
Submitted By: neufeind (neufeind)
Assigned to: Nobody/Anonymous (nobody)
Summary: check_http with -H does not allow IPv6-address

Initial Comment:
checked with 1.4.9, however according to changelogs shouldn't have changed until 1.4.11

While other plugins work fine simply giving an IPv6-address instead of a hostname this does not seem to work for check_http. The normal commands.cfg uses -H, so I tripped into this problem. Using -I (explicitly saying it's an IP) works fine with an IPv6-address.

It seems that check_http gets confused by the colons and interprets part of the IPv6-adress as a port-number. Unfortunately it's also not possible to use IPv6-adress-notation in brackets ( [1::2] ) to workaround this problem.


Since everybody can edit his commands.cfg to use -I instead of -H I wouldn't say this is a showstopper. However do you think parsing of the hostname/IP could be changed so IPv6-adresses are allowed? For using a port-number instead of 80 there is another parameter available, so I doubt people use example.com:80 when calling the plugin (though you never know, for sure).

----------------------------------------------------------------------

>Comment By: Holger Weiss (hweiss)
Date: 2008-01-07 03:13

Message:
Logged In: YES 
user_id=759506
Originator: NO

Thank you for the hint, I fixed this in SVN.  "-H" now accepts IPv6
addresses with and without brackets, brackets are only necessary to specify
"[IPv6]:port".  (The "-H example.com:80" notation is needed to generate a
"Host: example.com:80" header, this cannot be done with "--port".)

Thanks again, Holger

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=397597&aid=1865082&group_id=29880




More information about the Devel mailing list