1
0
mirror of https://github.com/opinkerfi/nagios-plugins.git synced 2024-11-24 11:23:47 +01:00

check_hpacucli - critical on failed logical drives

This commit is contained in:
Pall Sigurdsson 2014-11-16 15:01:41 +01:00
parent e7af0e4098
commit 40ba14c4cb

View File

@ -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(". ")