When interface reinitializes or restarts it gets new index number, and LibreNMS sees it as new interface instead as same interface that just restarted.
As you can see in this image usb LTE interface has interface number 66 and OpenVPN tun1 interface has number 67…
On each interface restart they get new interface numbers, and LibreNMS then shows stats from last interface restart but all older data is lost
I’m looking at RFC2863 and changing of interface ID-a should be tolerated when driver is reinitialized:
3.1.5. Interface Numbering
MIB-II defines an object, ifNumber, whose value represents:
“The number of network interfaces (regardless of their current state) present on this system.”
Each interface is identified by a unique value of the ifIndex object, and the description of ifIndex constrains its value as follows:
“Its value ranges between 1 and the value of ifNumber. The value for each interface must remain constant at least from one re-initialization of the entity’s network management system to the next re-initialization.”
Is there a way to setup LibreNMS so that is tracks interface name and not interface number? So even if my tun1 interface goes from 5 to 5000 it still shows graphs and data from start to finish?