Module: check_mk
Branch: master
Commit: ebe7d33125c2b25d785d9af6eab18e39db21208d
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=ebe7d33125c2b2…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Wed May 22 12:05:31 2013 +0200
FIX: zfsget: do not assume that devices begin with /, but mountpoints
---
ChangeLog | 1 +
checks/zfsget | 2 +-
2 files changed, 2 insertions(+), 1 deletion(-)
diff --git a/ChangeLog b/ChangeLog
index 1707784..c15d27a 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -142,6 +142,7 @@
* FIX: f5_bigip_psu: handle more than first power supply, thanks to Miro Ramza
* FIX: ipmi_sensors: ignore sensors in state [NA] (not available)
* FIX: aix_lvm: handle agents that output an extra header line
+ * FIX: zfsget: do not assume that devices begin with /, but mountpoints
Multisite:
* List of views: Output the alias of a datasource instead of internal name
diff --git a/checks/zfsget b/checks/zfsget
index cb51094..b152291 100644
--- a/checks/zfsget
+++ b/checks/zfsget
@@ -109,7 +109,7 @@ def zfsget_parse_df_info(entries, info):
for device, kbytes, used, avail, percent, mountpoint in info:
# ignore entries already contained in zfsget and also
# entries for virtual filesystems (like swap)
- if device.startswith("/") and mountpoint not in entries:
+ if mountpoint.startswith("/") and mountpoint not in entries:
entry = {}
total = int(kbytes) / 1024.0
entry["total"] = total