mirror of https://github.com/Icinga/icinga2.git
Add http expect option (-e) to check_http command
fixes #6695 Signed-off-by: Michael Friedrich <michael.friedrich@netways.de>
This commit is contained in:
parent
af2645d7c1
commit
dd1646f78d
|
@ -736,6 +736,7 @@ macro value can be resolved by Icinga 2.
|
|||
"-r" = "$http_expect_body_regex$"
|
||||
"-w" = "$http_warn_time$"
|
||||
"-c" = "$http_critical_time$"
|
||||
"-e" = "$http_expect$"
|
||||
}
|
||||
|
||||
vars.http_address = "$address$"
|
||||
|
|
|
@ -808,6 +808,7 @@ Example:
|
|||
"-r" = "$http_expect_body_regex$"
|
||||
"-w" = "$http_warn_time$"
|
||||
"-c" = "$http_critical_time$"
|
||||
"-e" = "$http_expect$"
|
||||
}
|
||||
|
||||
vars.http_address = "$address$"
|
||||
|
@ -1933,6 +1934,7 @@ http_ignore_body | **Optional.** Don't download the body, just the heade
|
|||
http_expect_body_regex | **Optional.** A regular expression which the body must match against. Incompatible with http_ignore_body.
|
||||
http_warn_time | **Optional.** The warning threshold.
|
||||
http_critical_time | **Optional.** The critical threshold.
|
||||
http_expect | **Optional.** Comma-delimited list of strings, at least one of them is expected in the first (status) line of the server response. Default: HTTP/1.
|
||||
|
||||
#### <a id="plugin-check-command-ftp"></a> ftp
|
||||
|
||||
|
|
|
@ -199,6 +199,7 @@ object CheckCommand "http" {
|
|||
"-r" = "$http_expect_body_regex$"
|
||||
"-w" = "$http_warn_time$"
|
||||
"-c" = "$http_critical_time$"
|
||||
"-e" = "$http_expect$"
|
||||
}
|
||||
|
||||
vars.http_address = "$address$"
|
||||
|
|
Loading…
Reference in New Issue