snmp-exporter: cross index mapping

13 views
Skip to first unread message

Olaf Heydorn

unread,
Jul 22, 2020, 10:51:40 AM7/22/20
to Prometheus Users
Hi all,

any idea, how to map these two crazy indexes?

I want to add the interface name, desc or any other desc from the ifIndex to RMON-MIB::etherStatsCRCAlignErrors (1.3.6.1.2.1.16.1.1.1.8 ) .
The RMON-MIB has a link to the ifIndex via this crazy link I have never seen before:

oid: 1.3.6.1.2.1.16.1.1.1.2

snmpwalk:
RMON-MIB::etherStatsDataSource.5 = OID: IF-MIB::ifIndex.1001
RMON-MIB::etherStatsDataSource.6 = OID: IF-MIB::ifIndex.1002
RMON-MIB::etherStatsDataSource.7 = OID: IF-MIB::ifIndex.1003
RMON-MIB::etherStatsDataSource.8 = OID: IF-MIB::ifIndex.1004
RMON-MIB::etherStatsDataSource.9 = OID: IF-MIB::ifIndex.2001
RMON-MIB::etherStatsDataSource.10 = OID: IF-MIB::ifIndex.2002
RMON-MIB::etherStatsDataSource.11 = OID: IF-MIB::ifIndex.2003
RMON-MIB::etherStatsDataSource.12 = OID: IF-MIB::ifIndex.2004
RMON-MIB::etherStatsDataSource.13 = OID: IF-MIB::ifIndex.3001
RMON-MIB::etherStatsDataSource.14 = OID: IF-MIB::ifIndex.3002
RMON-MIB::etherStatsDataSource.15 = OID: IF-MIB::ifIndex.3003
RMON-MIB::etherStatsDataSource.16 = OID: IF-MIB::ifIndex.3004

The etherStats index (1.3.6.1.2.1.16.1.1.1.1) itself is not matching with the ifIndex. Only etherStatsDataSource value has the ifIndex reference.

Thanks a lot and regards,

Olaf
Reply all
Reply to author
Forward
0 new messages