Module: check_mk
Branch: master
Commit: ceb07887fd18bb2fa2983fcaadd27ed1bc65e3f7
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=ceb07887fd18bb…
Author: Andreas Boesl <ab(a)mathias-kettner.de>
Date: Thu Feb 14 10:06:39 2019 +0100
added WK6705: agent_netapp: fixed typo in agent which caused the agent to fail on bigger
netapp server responses
Change-Id: I53509826ec5edaba678c14a87a384803c3ac6b49
---
.werks/6705 | 11 +++++++++++
agents/special/agent_netapp | 4 ++--
2 files changed, 13 insertions(+), 2 deletions(-)
diff --git a/.werks/6705 b/.werks/6705
new file mode 100644
index 0000000..f633168
--- /dev/null
+++ b/.werks/6705
@@ -0,0 +1,11 @@
+Title: agent_netapp: fixed typo in agent which caused the agent to fail on bigger netapp
server responses
+Level: 1
+Component: checks
+Class: fix
+Compatible: compat
+Edition: cre
+State: unknown
+Version: 1.6.0i1
+Date: 1550056924
+
+
diff --git a/agents/special/agent_netapp b/agents/special/agent_netapp
index 6fc10b5..4190882 100755
--- a/agents/special/agent_netapp
+++ b/agents/special/agent_netapp
@@ -683,7 +683,7 @@ def query(what, return_toplevel_node=False):
# We need to start additinal query until all data is fetched
tag_response = server.get_response(
[what, [["max-records", max_records], ["tag",
tag_string]]])
- if tag_response.result_status() != "passed":
+ if tag_response.results_status() != "passed":
return
if tag_response.get_results().child_get_string("num-records") ==
"0":
break
@@ -751,7 +751,7 @@ def query_counters(what):
"perf-object-instance-list-info-iter",
[["objectname", what], ["max-records",
max_records], ["tag", tag_string]]
])
- if tag_response.result_status() != "passed":
+ if tag_response.results_status() != "passed":
return
if tag_response.get_results().child_get_string("num-records")
== "0":
break