1
0
Fork 0
mirror of https://github.com/munin-monitoring/contrib.git synced 2025-07-22 14:16:00 +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:
sumpfralle 2017-02-10 00:40:45 +01:00 committed by GitHub
commit d22e3dc06e

View file

@ -109,8 +109,7 @@ class JunOSSnmpClient(object):
if not str(name).startswith(jnxOperatingTable): if not str(name).startswith(jnxOperatingTable):
continue continue
# TODO: Find a better way to get the routing engines in a cluster if 'Routing Engine' in str(value):
if str(value).endswith(' Routing Engine'):
devices[str(name)[len(jnxOperatingTable):]] = re.sub("[^\w]", '_', str(value).replace(' Routing Engine', '')) devices[str(name)[len(jnxOperatingTable):]] = re.sub("[^\w]", '_', str(value).replace(' Routing Engine', ''))
return devices return devices