Module: check_mk
Branch: master
Commit: 24f5fca88c78204401fdc40c16c9ab1a292651da
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=24f5fca88c7820…
Author: Andreas Boesl <ab(a)mathias-kettner.de>
Date: Fri Mar 3 10:37:40 2017 +0100
4454 FIX agent_ucs_bladecenter: disabled ssl certificate validation
Change-Id: I0c7c608d346291ef8752e285159518f49661a745
---
.werks/4454 | 10 ++++++++++
agents/special/agent_ucs_bladecenter | 4 ++--
2 files changed, 12 insertions(+), 2 deletions(-)
diff --git a/.werks/4454 b/.werks/4454
new file mode 100644
index 0000000..cf202e8
--- /dev/null
+++ b/.werks/4454
@@ -0,0 +1,10 @@
+Title: agent_ucs_bladecenter: disabled ssl certificate validation
+Level: 1
+Component: checks
+Compatible: compat
+Edition: cre
+Version: 1.5.0i1
+Date: 1488533827
+Class: fix
+
+
diff --git a/agents/special/agent_ucs_bladecenter b/agents/special/agent_ucs_bladecenter
index 833d9d5..a33e7a9 100755
--- a/agents/special/agent_ucs_bladecenter
+++ b/agents/special/agent_ucs_bladecenter
@@ -28,7 +28,7 @@
# about connection configuration and status.
-import sys, getopt, httplib, socket, pprint, re
+import sys, getopt, httplib, socket, pprint, re, ssl
def usage():
sys.stderr.write("""Check_MK UCS Bladecenter Agent
@@ -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(self.netloc)
+ self.conn_handle = httplib.HTTPSConnection(netloc, context =
ssl._create_unverified_context())
self.cookie = None
if opt_debug: