[icinga-checkins] icinga.org: icinga2/next: Plugins: Add 'http_auth_pair' as 'http' command argument.

git at icinga.org git at icinga.org
Tue Jun 3 19:55:43 CEST 2014


Module: icinga2
Branch: next
Commit: 1d9f7fb04594e5aff04fb862cc6f9ca5708a22c3
URL:    https://git.icinga.org/?p=icinga2.git;a=commit;h=1d9f7fb04594e5aff04fb862cc6f9ca5708a22c3

Author: Michael Friedrich <michael.friedrich at netways.de>
Date:   Tue Jun  3 19:54:59 2014 +0200

Plugins: Add 'http_auth_pair' as 'http' command argument.

Fixes #6396

---

 doc/6-configuring-icinga-2.md |    1 +
 itl/command-plugins.conf      |    4 ++++
 2 files changed, 5 insertions(+)

diff --git a/doc/6-configuring-icinga-2.md b/doc/6-configuring-icinga-2.md
index 80a59ce..9e623b3 100644
--- a/doc/6-configuring-icinga-2.md
+++ b/doc/6-configuring-icinga-2.md
@@ -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.
 
diff --git a/itl/command-plugins.conf b/itl/command-plugins.conf
index c521c8e..0aca02e 100644
--- a/itl/command-plugins.conf
+++ b/itl/command-plugins.conf
@@ -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$"
 	}



More information about the icinga-checkins mailing list