Module: check_mk
Branch: master
Commit: e983bfcbb1b67d25f9fd2a06d59f59fd48c3a9ae
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=e983bfcbb1b67d…
Author: Goetz Golla <gg(a)mathias-kettner.de>
Date: Fri Oct 10 11:41:31 2014 +0200
FIX for case when disk is removed from the device, thanks to Marcel Schulte
---
checks/diskstat.include | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/checks/diskstat.include b/checks/diskstat.include
index a095b8a..6543833 100644
--- a/checks/diskstat.include
+++ b/checks/diskstat.include
@@ -234,7 +234,9 @@ def check_diskstat_generic(item, params, this_time, info,
mode='sectors'):
result = check_diskstat_line(this_time, item, params, line, mode)
else:
result = (2, "more than one device found in cluster")
- return result
+
+ if result != "":
+ return result
return (3, "device missing")