Module: check_mk
Branch: master
Commit: 203860380a001bc6eaac5c1fd2e7ea1e02ef2f44
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=203860380a001b…
Author: Simon Betz <si(a)mathias-kettner.de>
Date: Thu Aug 11 10:28:50 2016 +0200
3773 FIX check_http: fixed proxy authentication
---
.werks/3773 | 9 +++++++++
ChangeLog | 1 +
checks/check_http | 2 +-
3 files changed, 11 insertions(+), 1 deletion(-)
diff --git a/.werks/3773 b/.werks/3773
new file mode 100644
index 0000000..1130cd7
--- /dev/null
+++ b/.werks/3773
@@ -0,0 +1,9 @@
+Title: check_http: fixed proxy authentication
+Level: 1
+Component: checks
+Compatible: compat
+Version: 1.4.0i1
+Date: 1470904065
+Class: fix
+
+
diff --git a/ChangeLog b/ChangeLog
index 80dce87..8c2c54d 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -330,6 +330,7 @@
* 3715 FIX: agent_ipmi_sensors: fixed error handling
* 3772 FIX: ipmi_sensors: fixed missing states
* 3562 FIX: agent_vsphere.pysphere: fixed problems related to ssl certificate
validation on older distributions/python versions
+ * 3773 FIX: check_http: fixed proxy authentication
Multisite:
* 3187 notification view: new filter for log command via regex
diff --git a/checks/check_http b/checks/check_http
index 6e7bfec..1b29aed 100644
--- a/checks/check_http
+++ b/checks/check_http
@@ -97,7 +97,7 @@ def check_http_arguments(params):
args += [ "-a", passwordstore_get_cmdline("%s:%%s" %
username, password) ]
if "proxy_auth" in settings:
- username, password = settings["auth"]
+ username, password = settings["proxy_auth"]
args += [ "-b", passwordstore_get_cmdline("%s:%%s" %
username, password) ]
if "onredirect" in settings: