While setting up snmpd on my UDM, I did NOT duplicate the config into /usr/share/... like the article suggests. It’s also important to either match the config as the article suggests or ensure that you at least remove the lines that will prevent external access e.g. agenthost / limit viewability to views / datasets e.g. some of the existing rocommunity lines.
The baseoid for the snmp interface depends on your specific setup. I am using a UDM SE and I’m using the 2.5Gb WAN not the SFP+ WAN. I’d recommend using a tool like MiB Browser to find the specific interface.
I found it helpful to right click on interfaces → ifTable in the LHS panel and select Table View.
Once you have identified the interface you want to measure (there are way more than just WAN interfaces in here — fun!), scroll to the right and find columns titled ifInOctets and ifOutOctets. These are the values you want. Click the cells and note the oids in the bottom panel. As an example, in my specific case, the OID for ifInOctets was 1.3.6.1.2.1.2.2.1.10.12 not 1.3.6.1.2.1.31.1.1.1.6.2 like in many of the examples above. Note you do not need the leading period from this value.
Once I got the raw values in HA, I noticed that the template was not formatting properly. Specifically, it was not rounding. The solution I used was to change the template to
This entity (‘sensor.internet_download’) does not have a unique ID, therefore its settings cannot be managed from the UI. See the documentation for more detail.
THanks for this MIB info. I have found my Interface by looking at the mac address. The stats are coming in but they are not looking correct. I am running a UDM Pro
Here is my yml file and screen shot of my dashboard. Not sure what’s going on. Thoughts??