Module: check_mk
Branch: master
Commit: 54a5e2cbc095954e6c2f94f9e0f92f9b9e5d2480
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=54a5e2cbc09595…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Wed May 17 16:02:37 2017 +0200
4722 FIX agent_ucs_bladecenter: Fixed broken special agent
The special agent was broken since march. It failed with the error
"NameError: global name 'netloc' is not defined".
Change-Id: I5c368394ac4f7f4ff0f2af0a3f3a16cb9aec537b
---
.werks/4722 | 11 +++++++++++
agents/special/agent_ucs_bladecenter | 2 +-
2 files changed, 12 insertions(+), 1 deletion(-)
diff --git a/.werks/4722 b/.werks/4722
new file mode 100644
index 0000000..2e1452b
--- /dev/null
+++ b/.werks/4722
@@ -0,0 +1,11 @@
+Title: agent_ucs_bladecenter: Fixed broken special agent
+Level: 1
+Component: checks
+Compatible: compat
+Edition: cre
+Version: 1.5.0i1
+Date: 1495029698
+Class: fix
+
+The special agent was broken since march. It failed with the error
+"NameError: global name 'netloc' is not defined".
diff --git a/agents/special/agent_ucs_bladecenter b/agents/special/agent_ucs_bladecenter
index a33e7a9..ca55b10 100755
--- a/agents/special/agent_ucs_bladecenter
+++ b/agents/special/agent_ucs_bladecenter
@@ -94,7 +94,7 @@ def get_pattern(pattern, line):
class Server:
def __init__(self, host_address):
self.netloc = host_address
- self.conn_handle = httplib.HTTPSConnection(netloc, context =
ssl._create_unverified_context())
+ self.conn_handle = httplib.HTTPSConnection(self.netloc, context =
ssl._create_unverified_context())
self.cookie = None
if opt_debug: