1
0
mirror of https://github.com/opinkerfi/nagios-plugins.git synced 2024-11-04 17:43:46 +01:00

ibm_bladecenter - another firmware bug workaround

This commit is contained in:
Pall Sigurdsson 2014-02-21 11:06:00 +00:00
parent b0b55dcd3e
commit 1574cd13d3

View File

@ -502,18 +502,17 @@ def check_systemhealth():
index, severity, description, date = (1, 2, 3, 4)
# Sometimes chassis delivers warning when absolutely nothing is going on.
# Lets work around that
workaround = {1: '1', 2: 'Good', 3:
'No critical or warning events', 4: 'No timestamp'}
workaround = [{1: '1', 2: 'Good', 3: 'No critical or warning events', 4: 'No timestamp'}]
# Check overall health
if systemhealthstat == '255':
nagios_status(ok)
add_summary("Bladecenter health: OK. ")
elif systemhealthstat == "2":
if summary.values() == workaround:
add_summary("Non-Critical Error: %s " %
elif summary.values() == workaround:
add_summary("Non-Critical Error (bug in firmware): '%s' " %
workaround[0][description])
nagios_status(ok)
return
elif systemhealthstat == "2":
nagios_status(warning)
add_summary("Non-Critical Error. ")
elif systemhealthstat == "4":