mirror of
https://github.com/opinkerfi/nagios-plugins.git
synced 2026-02-05 22:55:17 +01:00
This commit is contained in:
@@ -271,10 +271,12 @@ def check_switchmodules():
|
|||||||
add_long("Module%s health bad(%s).\n post=%s" % (myIndex, healthstate,resultvalue) )
|
add_long("Module%s health bad(%s).\n post=%s" % (myIndex, healthstate,resultvalue) )
|
||||||
add_summary("Problem with Module %s. " % (myIndex))
|
add_summary("Problem with Module %s. " % (myIndex))
|
||||||
if len(extrainfo) > int(myIndex):
|
if len(extrainfo) > int(myIndex):
|
||||||
myExtraInfo = extrainfo[int(myIndex)-1]
|
try:
|
||||||
module_type = myExtraInfo[22]
|
myExtraInfo = extrainfo[int(myIndex)-1]
|
||||||
module_ip = myExtraInfo[6]
|
module_type = myExtraInfo[22]
|
||||||
add_long( " type=%s ip=%s" % (module_type,module_ip) )
|
module_ip = myExtraInfo[6]
|
||||||
|
add_long( " type=%s ip=%s" % (module_type,module_ip) )
|
||||||
|
except: pass
|
||||||
if exit_status == ok:
|
if exit_status == ok:
|
||||||
add_summary("All switchmodules healthy")
|
add_summary("All switchmodules healthy")
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user