Open nicolas-parmentier opened 4 months 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?
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.
centreon_plugins.pl --plugin=apps::protocols::http::plugin --mode=expected-content --hostname=example.com --proto='https' --port='443' --urlpath='/' --timeout=15 --expected-string='Hello World' --warning-time='5' --critical-time='10' --critical-status='%{http_code} < 200 or %{http_code} >= 300' --credentials --username='' --password=''
Expected result
OK: HTTP test(s)
Actual result
CRITICAL: 500 Header line too long (8556; limit is 8192)