mirror of
https://github.com/munin-monitoring/contrib.git
synced 2025-07-21 18:41:03 +00:00
Correctly detect the Routing Engines on Virtual Chassis
The current recommended firmware for EX3400 (JUNOS 15.1X53-D55.5) lists the routing engines as 'Routing engine <member id>' when the switches are stacked in a Virtual Chassis. The former code failed to detect these strings, so I relaxed it a bit. This matches the documentation found here: https://kb.juniper.net/InfoCenter/index?page=content&id=KB17526&actp=search
This commit is contained in:
parent
06408e956f
commit
e607ac7708
1 changed files with 1 additions and 2 deletions
|
@ -109,8 +109,7 @@ class JunOSSnmpClient(object):
|
|||
if not str(name).startswith(jnxOperatingTable):
|
||||
continue
|
||||
|
||||
# TODO: Find a better way to get the routing engines in a cluster
|
||||
if str(value).endswith(' Routing Engine'):
|
||||
if 'Routing Engine' in str(value):
|
||||
devices[str(name)[len(jnxOperatingTable):]] = re.sub("[^\w]", '_', str(value).replace(' Routing Engine', ''))
|
||||
return devices
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue