Add http_expect_body_regex and http_ignore_body to command-plugins.conf.

Refs #6487
This commit is contained in:
Gerd von Egidy 2014-06-15 23:13:04 +02:00 committed by Michael Friedrich
parent 444a85ddd0
commit 64946bc3a2
2 changed files with 16 additions and 10 deletions

View File

@ -1851,16 +1851,18 @@ Check command object for the `check_http` plugin.
Custom Attributes: Custom Attributes:
Name | Description Name | Description
-------------------|-------------- -------------------------|--------------
http_address | **Optional.** The host's address. Defaults to "$address". http_address | **Optional.** The host's address. Defaults to "$address".
http_vhost | **Optional.** The virtual host that should be sent in the "Host" header. http_vhost | **Optional.** The virtual host that should be sent in the "Host" header.
http_uri | **Optional.** The request URI. http_uri | **Optional.** The request URI.
http_port | **Optional.** The TCP port. Defaults to 80 when not using SSL, 443 otherwise. http_port | **Optional.** The TCP port. Defaults to 80 when not using SSL, 443 otherwise.
http_ssl | **Optional.** Whether to use SSL. Defaults to false. http_ssl | **Optional.** Whether to use SSL. Defaults to false.
http_auth_pair | **Optional.** Add 'username:password' authorization pair. http_auth_pair | **Optional.** Add 'username:password' authorization pair.
http_warn_time | **Optional.** The warning threshold. http_ignore_body | **Optional.** Don't download the body, just the headers.
http_critical_time | **Optional.** The critical threshold. 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.
#### <a id="plugin-check-command-ftp"></a> ftp #### <a id="plugin-check-command-ftp"></a> ftp

View File

@ -125,6 +125,10 @@ object CheckCommand "http" {
value = "$http_auth_pair$" value = "$http_auth_pair$"
description = "Username:password on sites with basic authentication" description = "Username:password on sites with basic authentication"
} }
"--no-body" = {
set_if = "$http_ignore_body$"
}
"-r" = "$http_expect_body_regex$"
"-w" = "$http_warn_time$" "-w" = "$http_warn_time$"
"-c" = "$http_critical_time$" "-c" = "$http_critical_time$"
} }