mirror of
https://github.com/opinkerfi/nagios-plugins.git
synced 2024-11-22 18:33:45 +01:00
This commit is contained in:
parent
268169c9d4
commit
b05e02a6c4
@ -187,7 +187,11 @@ def check_controllers():
|
|||||||
cache_status = check(i, 'Cache Status' )
|
cache_status = check(i, 'Cache Status' )
|
||||||
status = max(status, cache_status)
|
status = max(status, cache_status)
|
||||||
|
|
||||||
controller_serial = i['Serial Number']
|
controller_serial = 'n/a'
|
||||||
|
cache_serial = 'n/a'
|
||||||
|
if i.has_key('Serial Number'):
|
||||||
|
controller_serial = i['Serial Number')
|
||||||
|
if i.has_key('Cache Serial Number'):
|
||||||
cache_serial = i['Cache Serial Number']
|
cache_serial = i['Cache Serial Number']
|
||||||
add_long ( "%s" % (i['name']) )
|
add_long ( "%s" % (i['name']) )
|
||||||
add_long( "- Controller Status: %s (sn: %s)" % ( state[controller_status], controller_serial ) )
|
add_long( "- Controller Status: %s (sn: %s)" % ( state[controller_status], controller_serial ) )
|
||||||
|
Loading…
Reference in New Issue
Block a user