diff --git a/doc/3-monitoring-basics.md b/doc/3-monitoring-basics.md index 1bd1da4cd..084ace3ce 100644 --- a/doc/3-monitoring-basics.md +++ b/doc/3-monitoring-basics.md @@ -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$" diff --git a/doc/6-configuring-icinga-2.md b/doc/6-configuring-icinga-2.md index 57bee14b5..5e7e77744 100644 --- a/doc/6-configuring-icinga-2.md +++ b/doc/6-configuring-icinga-2.md @@ -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. #### ftp diff --git a/itl/command-plugins.conf b/itl/command-plugins.conf index 74dab6a0a..1261a7d3e 100644 --- a/itl/command-plugins.conf +++ b/itl/command-plugins.conf @@ -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$"