centreon / centreon-plugins

Collection of standard plugins to discover and gather cloud-to-edge metrics and status across your whole IT infrastructure.
https://www.centreon.com
Apache License 2.0
310 stars 273 forks source link

[apps::protocols::http::plugin] Header line too long #5018

Open nicolas-parmentier opened 4 months ago

nicolas-parmentier commented 4 months ago

Quick description

When using the expected-content mode on a site with a large number of headers (>8192 chars), the check returns a CRITICAL: 500 Header line too long error.

How to reproduce

Use this check on a website with more than 8192 chars.

Expected result

OK: HTTP test(s)

Actual result

CRITICAL: 500 Header line too long (8556; limit is 8192)

lucie-dubrunfaut commented 1 month ago

Hello :)

According to my research, the error message on the header limit is not generated in the Centreon plugin. To find out more, could you give us the output of your command with the --debug option set?