mirror of
https://github.com/opinkerfi/nagios-plugins.git
synced 2024-12-22 09:03:54 +01:00
check_hpacucli: ignore hpacucli output that starts with "Note:"
This commit is contained in:
parent
5a49b22a10
commit
3cf6cb7f2d
@ -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 = {}
|
||||
|
Loading…
Reference in New Issue
Block a user