Module: check_mk
Branch: master
Commit: c61c0a1785c6dee87d10ab7fdc7f4830b69d4ec9
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=c61c0a1785c6de…
Author: Andreas Boesl <ab(a)mathias-kettner.de>
Date: Tue Nov 13 11:07:56 2018 +0100
6681 FIX check_bi_aggr: Fixed check exception when an aggregation was assigned to multiple
groups
Change-Id: Ide5815144bca33407a8f07284e60afee610f2ddc
---
.werks/6681 | 11 +++++++++++
active_checks/check_bi_aggr | 2 +-
2 files changed, 12 insertions(+), 1 deletion(-)
diff --git a/.werks/6681 b/.werks/6681
new file mode 100644
index 0000000..8010479
--- /dev/null
+++ b/.werks/6681
@@ -0,0 +1,11 @@
+Title: check_bi_aggr: Fixed check exception when an aggregation was assigned to multiple
groups
+Level: 1
+Component: bi
+Class: fix
+Compatible: compat
+Edition: cre
+State: unknown
+Version: 1.6.0i1
+Date: 1542103644
+
+
diff --git a/active_checks/check_bi_aggr b/active_checks/check_bi_aggr
index c0ff3a9..a3ce96a 100755
--- a/active_checks/check_bi_aggr
+++ b/active_checks/check_bi_aggr
@@ -210,7 +210,7 @@ if len(obj) == 1:
'ERROR: Aggregation "%s" does not exist or user is not
permitted\n' % aggr_name)
sys.exit(3)
-if type(obj) != list or len(obj) != 2:
+if not isinstance(obj, list):
sys.stdout.write('ERROR: Invalid response: %s\n' %
(json.replace("\n", "")))
sys.exit(3)