2018-09-06
Weird interface names in snmp due to virtio driver
I want to measure network traffic so I decided to copy most of my rrdtool setup from the old home server. But with virtio network cards I have a confused snmpd:IF-MIB::ifDescr.1 = STRING: lo IF-MIB::ifDescr.2 = STRING: Red Hat, Inc Device 0001 IF-MIB::ifDescr.3 = STRING: Red Hat, Inc Device 0001 IF-MIB::ifDescr.4 = STRING: Red Hat, Inc Device 0001 IF-MIB::ifDescr.5 = STRING: dummy0 IF-MIB::ifDescr.6 = STRING: dumhost IF-MIB::ifDescr.7 = STRING: dumdh6Fix: go for the IF-MIB::ifName snmp variables, found in oid 1.3.6.1.2.1.31.1.1.1:IF-MIB::ifName.1 = STRING: lo IF-MIB::ifName.2 = STRING: eth0 IF-MIB::ifName.3 = STRING: eth1 IF-MIB::ifName.4 = STRING: eth2 IF-MIB::ifName.5 = STRING: dummy0 IF-MIB::ifName.6 = STRING: dumhost IF-MIB::ifName.7 = STRING: dumdh6Those are easier to discern, now my snmp scripts are gathering data again.