Module: check_mk
Branch: master
Commit: c5cc541fd228da1e93378b9b7104a6da2207755c
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=c5cc541fd228da…
Author: Simon Betz <si(a)mathias-kettner.de>
Date: Wed Jul 25 14:51:47 2018 +0200
6381 FIX apc_inrow_system_events, liebert_system_events: Fixed handling of empty agent
output
If no events are reported for these two checks, the agent section
is empty and Check_MK marked the related services as 'vanished'.
An empty section is valid and these two checks can handle them
correctly.
Change-Id: I15cc693853f46a8122ac908e14f78b71a9de8250
---
.werks/6381 | 13 +++++++++++++
checks/apc_inrow_system_events | 1 +
checks/liebert_system_events | 1 +
3 files changed, 15 insertions(+)
diff --git a/.werks/6381 b/.werks/6381
new file mode 100644
index 0000000..07bc5df
--- /dev/null
+++ b/.werks/6381
@@ -0,0 +1,13 @@
+Title: apc_inrow_system_events, liebert_system_events: Fixed handling of empty section
+Level: 1
+Component: checks
+Compatible: compat
+Edition: cre
+Version: 1.6.0i1
+Date: 1532522903
+Class: fix
+
+If no events are reported for these two checks, the agent section
+is empty and Check_MK marked the related services as 'vanished'.
+An empty section is valid and these two checks can handle them
+correctly.
diff --git a/checks/apc_inrow_system_events b/checks/apc_inrow_system_events
index 1362f80..a36bd21 100644
--- a/checks/apc_inrow_system_events
+++ b/checks/apc_inrow_system_events
@@ -56,4 +56,5 @@ check_info["apc_inrow_system_events"] = {
"snmp_info" : (".1.3.6.1.4.1.318.1.1.13.3.1.2.1",
["3"]), #airIRAlarmDescription
"snmp_scan_function" : lambda oid:
oid(".1.3.6.1.2.1.1.2.0").startswith(".1.3.6.1.4.1.318.1.3"),
"group" : "apc_system_events",
+ "handle_empty_info" : True,
}
diff --git a/checks/liebert_system_events b/checks/liebert_system_events
index 532b0c6..6bfec7f 100644
--- a/checks/liebert_system_events
+++ b/checks/liebert_system_events
@@ -64,4 +64,5 @@ check_info['liebert_system_events'] = {
]),
'snmp_scan_function' : scan_liebert,
'includes' : [ 'liebert.include' ],
+ 'handle_empty_info' : True,
}