Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
nicolas-parmentier opened this issue May 6, 2024 · 1 comment
Open

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

nicolas-parmentier opened this issue May 6, 2024 · 1 comment

Comments

@nicolas-parmentier
Copy link

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.

  • Environment: CentOS Linux release 7.9.2009 (Core).
  • Version of the plugin: On branch develop - last commit.
  • Information about the monitored resource: confidential website (non-prod website)
  • Command line: 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)

@lucie-dubrunfaut
Copy link
Contributor

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants