Module: check_mk
Branch: master
Commit: 26d28c7b40bfcbb3adc1a95ad53c9baf0d23424c
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=26d28c7b40bfcb…
Author: Ronny Bruska <rb(a)mathias-kettner.de>
Date: Thu Mar 7 11:30:55 2019 +0100
7196 FIX agent_prism: Fixed wrong usage and capacity detection
The special agent used the API endpoint "storage.usage_bytes" and
"storage.capacity_bytes"
what leaded to wrong values. New used API endpoints are
"storage.user_usage_bytes" and
"storage.user_capacity_bytes".
Change-Id: I64d002a2a721c85b5c491b33e5ee644c3aace14d
---
.werks/7196 | 12 ++++++++++++
agents/special/agent_prism | 4 ++--
2 files changed, 14 insertions(+), 2 deletions(-)
diff --git a/.werks/7196 b/.werks/7196
new file mode 100644
index 0000000..4e768ab
--- /dev/null
+++ b/.werks/7196
@@ -0,0 +1,12 @@
+Title: agent_prism: Fixed wrong usage and capacity detection
+Level: 1
+Component: checks
+Compatible: compat
+Edition: cre
+Version: 1.6.0i1
+Date: 1551954114
+Class: fix
+
+The special agent used the API endpoint "storage.usage_bytes" and
"storage.capacity_bytes"
+what leaded to wrong values. New used API endpoints are
"storage.user_usage_bytes" and
+"storage.user_capacity_bytes".
diff --git a/agents/special/agent_prism b/agents/special/agent_prism
index de3e18f..65ac76c 100755
--- a/agents/special/agent_prism
+++ b/agents/special/agent_prism
@@ -143,8 +143,8 @@ def output_containers(opener, headers):
for entity in obj['entities']:
writer.writerow([
- entity['name'],
entity['usageStats']['storage.usage_bytes'],
- entity['usageStats']['storage.capacity_bytes']
+ entity['name'],
entity['usageStats']['storage.user_usage_bytes'],
+ entity['usageStats']['storage.user_capacity_bytes']
])