Module: check_mk
Branch: master
Commit: c446bc5d6948a8bb5d97a311be7631411f3a557a
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=c446bc5d6948a8…
Author: Konstantin Büttner <kb(a)mathias-kettner.de>
Date: Sun Jan 28 11:54:06 2018 +0100
5708 FIX df: Fix incorrect values being reported on devices with btrfs
This fixes a bug introduced with Werk #4806.
Change-Id: I5211446f2c72ba118363e39629197a81173636d3
---
.werks/5708 | 10 ++++++++++
checks/df | 2 ++
2 files changed, 12 insertions(+)
diff --git a/.werks/5708 b/.werks/5708
new file mode 100644
index 0000000..dc81f59
--- /dev/null
+++ b/.werks/5708
@@ -0,0 +1,10 @@
+Title: df: Fix incorrect values being reported on devices with btrfs
+Level: 2
+Component: checks
+Compatible: compat
+Edition: cre
+Version: 1.5.0i3
+Date: 1517136798
+Class: fix
+
+This fixes a bug introduced with Werk #4806.
diff --git a/checks/df b/checks/df
index 0f26539..c0dfbc3 100644
--- a/checks/df
+++ b/checks/df
@@ -123,6 +123,8 @@ def parse_df(info):
if device not in btrfs_devices:
btrfs_devices.add(device)
mountpoint = "btrfs " + device
+ else:
+ continue
else:
mountpoint = " ".join(line[6:]).replace('\\',
'/') # Windows \ is replaced with /