mirror of
https://github.com/munin-monitoring/contrib.git
synced 2025-07-22 02:51:03 +00:00
Merge pull request #797 from numerigraphe/snmp-juniper-fix-ex-series
Correctly detect the Routing Engines on Virtual Chassis
This commit is contained in:
commit
d22e3dc06e
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