Module: check_mk
Branch: master
Commit: a06d558b61c6365233cc494baf251d3606fe64ea
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=a06d558b61c636…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Mon Oct 7 21:05:17 2013 +0200
winperf_phydisk: fail if no disk is found
---
checks/diskstat.include | 2 ++
1 file changed, 2 insertions(+)
diff --git a/checks/diskstat.include b/checks/diskstat.include
index ac50687..5f68c3b 100644
--- a/checks/diskstat.include
+++ b/checks/diskstat.include
@@ -205,6 +205,8 @@ def check_diskstat_generic(item, params, this_time, info):
# summary mode
if item == 'SUMMARY': # summary mode (only summarize physical disks!)
summary_line = [0] * 13
+ if len(info) == 0:
+ return 3, "No performance information about any disk found"
for line in info:
devname = line[0]
if ' ' in devname: