Make http_header repeatable (fixes #8573) (#8574)

* Made http_header repeatable (fixes #8573)

* Removed explicit repeat_key option for a default setting

* Fixed closing backtick
This commit is contained in:
Peter Eckel 2021-10-01 17:40:38 +02:00 committed by GitHub
parent 0c22a84a01
commit fd9f69b3a2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -656,7 +656,7 @@ http_method | **Optional.** Set http method (for example: H
http_maxage | **Optional.** Warn if document is more than seconds old.
http_contenttype | **Optional.** Specify Content-Type header when POSTing.
http_useragent | **Optional.** String to be sent in http header as User Agent.
http_header | **Optional.** Any other tags to be sent in http header.
http_header | **Optional.** Any other tags to be sent in http header. Can be an array if multiple headers should be passed to `check_http`.
http_extendedperfdata | **Optional.** Print additional perfdata. Defaults to false.
http_onredirect | **Optional.** How to handle redirect pages. Possible values: "ok" (default), "warning", "critical", "follow", "sticky" (like follow but stick to address), "stickyport" (like sticky but also to port)
http_pagesize | **Optional.** Minimum page size required:Maximum page size required.

View File

@ -502,7 +502,7 @@ object CheckCommand "http" {
}
"-k" = {
value = "$http_header$"
description = "Any other tags to be sent in http header"
description = "Any other tags to be sent in http header (may be repeated)"
}
"-E" = {
set_if = "$http_extendedperfdata$"