]> granicus.if.org Git - icinga2/commitdiff
Plugins: Add 'http_auth_pair' as 'http' command argument.
authorMichael Friedrich <michael.friedrich@netways.de>
Tue, 3 Jun 2014 17:54:59 +0000 (19:54 +0200)
committerMichael Friedrich <michael.friedrich@netways.de>
Tue, 3 Jun 2014 17:54:59 +0000 (19:54 +0200)
Fixes #6396

doc/6-configuring-icinga-2.md
itl/command-plugins.conf

index 80a59ce9410af8f14d6c5335fe4e6e7ba6723e71..9e623b3666b823d5c1e4be1b95e919eb54251d8a 100644 (file)
@@ -1858,6 +1858,7 @@ http_vhost         | **Optional.** The virtual host that should be sent in the "
 http_uri           | **Optional.** The request URI.
 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_auth_pair    | **Optional.** Add 'username:password' authorization pair.
 http_warn_time     | **Optional.** The warning threshold.
 http_critical_time | **Optional.** The critical threshold.
 
index c521c8ea5cc6dfe837652256b9f87cd9e4cbb29b..0aca02e24255005ed851ca1e3c331bf6695de334 100644 (file)
@@ -121,6 +121,10 @@ object CheckCommand "http" {
                "-S" = {
                        set_if = "$http_ssl$"
                }
+               "-a" = {
+                       value = "$http_auth_pair$"
+                       description = "Username:password on sites with basic authentication"
+               }
                "-w" = "$http_warn_time$"
                "-c" = "$http_critical_time$"
        }