Module: check_mk
Branch: master
Commit: 568cacc7eed2caddce910cd618334b39cefbf5fa
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=568cacc7eed2ca…
Author: Ronny Bruska <rb(a)mathias-kettner.de>
Date: Thu Feb 7 10:10:23 2019 +0100
7151 FIX apache_status: fixed NameError
Change-Id: Ic8393640dda81bd1c81e679e564989cf75eaf961
---
.werks/7151 | 10 ++++++++++
agents/plugins/apache_status | 2 +-
2 files changed, 11 insertions(+), 1 deletion(-)
diff --git a/.werks/7151 b/.werks/7151
new file mode 100644
index 0000000..c00ac83
--- /dev/null
+++ b/.werks/7151
@@ -0,0 +1,10 @@
+Title: apache_status: fixed NameError
+Level: 1
+Component: checks
+Compatible: compat
+Edition: cre
+Version: 1.6.0i1
+Date: 1549530332
+Class: fix
+
+
diff --git a/agents/plugins/apache_status b/agents/plugins/apache_status
index e34d762..7b4c739 100755
--- a/agents/plugins/apache_status
+++ b/agents/plugins/apache_status
@@ -100,7 +100,7 @@ def try_detect_servers():
server_address = '127.0.0.1'
elif server_address == '::':
server_address = '[::1]'
- elif ':' in address:
+ elif ':' in server_address:
server_address = '[%s]' % server_address
# Switch protocol if port is SSL port. In case you use SSL on another