1
0
mirror of https://github.com/opinkerfi/nagios-plugins.git synced 2024-11-21 18:03:45 +01:00

check_hpacucli: ignore hpacucli output that starts with "Note:"

This commit is contained in:
Pall Sigurdsson 2013-05-27 16:17:23 +00:00
parent 5a49b22a10
commit 3cf6cb7f2d

View File

@ -173,6 +173,7 @@ def run_hpacucli(type='controllers', controller=None):
for i in output:
if len(i) == 0: continue
if i.strip() == '': continue
if i.startswith('Note:'): continue
if type=='controllers' and i[0] != ' ': # No space on first line
if object and not object in objects: objects.append(object)
object = {}