From 40ba14c4cbfb9fbae6f8d6ae096a960d1e4ec6ef Mon Sep 17 00:00:00 2001 From: Pall Sigurdsson Date: Sun, 16 Nov 2014 15:01:41 +0100 Subject: [PATCH] check_hpacucli - critical on failed logical drives --- check_hpacucli/check_hpacucli.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/check_hpacucli/check_hpacucli.py b/check_hpacucli/check_hpacucli.py index 1dd5dde..c5428b8 100644 --- a/check_hpacucli/check_hpacucli.py +++ b/check_hpacucli/check_hpacucli.py @@ -274,6 +274,9 @@ def check_logicaldisks(): ld_status = check(i, 'Status') status = max(status, ld_status) + if i.get('Status') == 'Failed': + status = max(status, critical) + mount_point = i['Mount Points'] add_long("- %s (%s) = %s" % (i['name'], mount_point, state[ld_status])) add_summary(". ")