mirror of
https://github.com/opinkerfi/nagios-plugins.git
synced 2024-11-22 02:13:44 +01:00
This commit is contained in:
parent
8c129c6fea
commit
107e71d85c
@ -550,6 +550,7 @@ def check_controllers():
|
|||||||
for controller in result:
|
for controller in result:
|
||||||
controller['systemname'] = i['objectname']
|
controller['systemname'] = i['objectname']
|
||||||
controllers.append( controller )
|
controllers.append( controller )
|
||||||
|
summary = "%s objects found " % len(controllers)
|
||||||
for i in controllers:
|
for i in controllers:
|
||||||
systemname = i['systemname']
|
systemname = i['systemname']
|
||||||
if i.has_key('controllername'):
|
if i.has_key('controllername'):
|
||||||
@ -561,7 +562,7 @@ def check_controllers():
|
|||||||
|
|
||||||
# Lets add to the summary
|
# Lets add to the summary
|
||||||
if not i.has_key('operationalstate'):
|
if not i.has_key('operationalstate'):
|
||||||
summary = summary + " %s does not have any operationalstate" % controllername
|
summary = summary + " %s does not have any operationalstate " % controllername
|
||||||
nagios_state = max( unknown, nagios_state )
|
nagios_state = max( unknown, nagios_state )
|
||||||
continue
|
continue
|
||||||
elif i['operationalstate'] != 'good':
|
elif i['operationalstate'] != 'good':
|
||||||
|
Loading…
Reference in New Issue
Block a user