I am currently using snmp to read some oids from a DD-wrt router for bandwidth monitoring and such.
All is well, but: the oids of the interfaces sometimes change after a reboot (probably something to do with the initialization times of the interfaces?) . The result is that my sensor reports nothing because of this.
baseoid: 18.104.22.168.22.214.171.124.126.96.36.199 on dd-wrt reports the total bandwidth used, but after a reboot it sometimes changes to 188.8.131.52.184.108.40.206.220.127.116.11 or 18.104.22.168.22.214.171.124.126.96.36.199 on the router.
I was thinking of creating sensors which read the oids where the interface names are contained:
iso.188.8.131.52.184.108.40.206.1.1.1 = STRING: “lo”
iso.220.127.116.11.18.104.22.168.1.1.8 = STRING: “br0”
and based on that use some kind of variable in the sensor which contains the last integer of the correct oid, in this case that would be “8”…
- platform: snmp
Any ideas on how i could go about this?