Module: check_mk
Branch: master
Commit: ce0f3a0e92a253b5dcae722fd23fdc350f0d9801
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=ce0f3a0e92a253…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Fri Oct 13 09:48:39 2017 +0200
5394 FIX agent_ucs_bladecenter: Fixed broken agent since 1.4.0p14 (#5233)
Change-Id: I4178ad282e78d4f57570ebfa63a0921aa0ef2351
---
.werks/5394 | 11 +++++++++++
agents/special/agent_ucs_bladecenter | 6 +++---
2 files changed, 14 insertions(+), 3 deletions(-)
diff --git a/.werks/5394 b/.werks/5394
new file mode 100644
index 0000000..84a71ed
--- /dev/null
+++ b/.werks/5394
@@ -0,0 +1,11 @@
+Title: agent_ucs_bladecenter: Fixed broken agent since 1.4.0p14 (#5233)
+Level: 1
+Component: checks
+Class: fix
+Compatible: compat
+Edition: cre
+State: unknown
+Version: 1.5.0i1
+Date: 1507880858
+
+
diff --git a/agents/special/agent_ucs_bladecenter b/agents/special/agent_ucs_bladecenter
index 8bc678f..085a7a7 100755
--- a/agents/special/agent_ucs_bladecenter
+++ b/agents/special/agent_ucs_bladecenter
@@ -106,9 +106,9 @@ class Server:
if params is None:
params = {}
- cookies = {}
if self.cookie:
- cookies.update({"cookie": self.cookie})
+ # Beware: This is no HTTP cookie. Just a shared secret between the server and
the client.
+ params.update({"cookie": self.cookie})
payload = payload % params
if opt_debug:
@@ -119,7 +119,7 @@ class Server:
"Content-Type": 'text/xml; charset="utf-8"'
}
- response = self.session_handle.post("https://%s/nuova" % self.netloc,
headers = headers, cookies = cookies)
+ response = self.session_handle.post("https://%s/nuova" % self.netloc,
headers=headers, data=payload)
data = response.text
if opt_debug:
sys.stderr.write("<==== %s\n" % data)