Module: check_mk
Branch: master
Commit: e37ecf70f20c5813b0db85f806cfed647647e35a
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=e37ecf70f20c58…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Sun Apr 29 19:59:23 2018 +0200
6049 FIX docker_node_disk_usage: Fixed crash when docker process is not running
Change-Id: I8d086ac8ff10ab5d28b335514ca3a7ea55b3b297
---
.werks/6049 | 11 +++++++++++
checks/docker_node_disk_usage | 2 +-
2 files changed, 12 insertions(+), 1 deletion(-)
diff --git a/.werks/6049 b/.werks/6049
new file mode 100644
index 0000000..cf41a3b
--- /dev/null
+++ b/.werks/6049
@@ -0,0 +1,11 @@
+Title: docker_node_disk_usage: Fixed crash when docker process is not running
+Level: 1
+Component: checks
+Class: fix
+Compatible: compat
+Edition: cre
+State: unknown
+Version: 1.6.0i1
+Date: 1525024748
+
+
diff --git a/checks/docker_node_disk_usage b/checks/docker_node_disk_usage
index 0038a6d..816ac69 100644
--- a/checks/docker_node_disk_usage
+++ b/checks/docker_node_disk_usage
@@ -53,7 +53,7 @@ def inventory_docker_node_disk_usage(parsed):
def check_docker_node_disk_usage(item, params, parsed):
data = parsed.get(item)
if data is None:
- yield 3, "no data"
+ return
for key, param, conversion_func in (
('Size', 'size', get_filesize_human_readable),