[Nagiosplug-devel] [ nagiosplug-Bugs-2786808 ] check_http asks for HTTP/1.1, but doesn't understand chunked

SourceForge.net noreply at sourceforge.net
Mon May 4 21:19:43 CEST 2009


Bugs item #2786808, was opened at 2009-05-04 21:19
Message generated for change (Tracker Item Submitted) made by wferi
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=397597&aid=2786808&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: Parsing problem
Group: CVS
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Ferenc Wágner (wferi)
Assigned to: Nobody/Anonymous (nobody)
Summary: check_http asks for HTTP/1.1, but doesn't understand chunked

Initial Comment:
Fixing 2638765 uncovered this bug (actually, most HTTP servers respect Host: headers in HTTP/1.0 requests, even though it isn't part of the spec).
Anyway: if a client sends a HTTP/1.1 request, it must be able to handle the incoming HTTP/1.1 reply. Which includes coping with a chunked one.
This exact same command worked with check_http version 1.4.5 (and still does so with -H replaced by -I, but that isn't the point).

$ /usr/lib/nagios/plugins/check_http -v -H idp.niif.hu -u /idp/profile/Status --ssl -r "^ok$"
GET /idp/profile/Status HTTP/1.1
Host: idp.niif.hu:443
User-Agent: check_http/v1991 (nagios-plugins 1.4.12)
Connection: close


https://idp.niif.hu:443/idp/profile/Status is 141 characters
STATUS: HTTP/1.1 200 OK
**** HEADER ****
Date: Mon, 04 May 2009 19:12:13 GMT
Connection: close
Transfer-Encoding: chunked
Content-Type: text/plain
**** CONTENT ****
2
ok
0


HTTP CRITICAL - pattern not found|time=0.067933s;;;0.000000 size=141B;;;0


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

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




More information about the Devel mailing list