[Bug 870448] [NEW] check_http fails to decode chunked encoding before performing string checks

James Troup james.troup at canonical.com
Sat Oct 8 02:59:51 UTC 2011


Public bug reported:

One of our HTTP checks (for the Ubuntu Wiki as it happens) was
flapping between OK and Critical because the string check was failing
despite getting a 200 and similar length content to a successful
check.  I eventually managed to reproduce this with a manual
-v-enabled run and discovered it's happening because the string
check_http was looking for happened to cross a chunk boundary in the
failure case (but was within a chunk in the successful case.)

If check_http is going to use HTTP/1.1, it needs to support chunked
encoding properly and decode the stream fully before running string
checks.

This can be worked around in (most?) cases by using '-I <ip> -k "Host:
<hostname>"' in place of '-H <hostname>' as that forces check_http to
drop down to a HTTP/1.0 connection.

** Affects: nagios-plugins
     Importance: Unknown
         Status: Unknown

** Affects: nagios-plugins (Ubuntu)
     Importance: Undecided
         Status: New

** Bug watch added: SourceForge.net Tracker #2786808
   http://sourceforge.net/support/tracker.php?aid=2786808

** Also affects: nagios-plugins via
   http://sourceforge.net/support/tracker.php?aid=2786808
   Importance: Unknown
       Status: Unknown

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to nagios-plugins in Ubuntu.
https://bugs.launchpad.net/bugs/870448

Title:
  check_http fails to decode chunked encoding before performing string
  checks

To manage notifications about this bug go to:
https://bugs.launchpad.net/nagios-plugins/+bug/870448/+subscriptions



More information about the Ubuntu-server-bugs mailing list