Currently playing with OID for SNMP to read values of my Draytek Vigor 2925. I haven’t had a lot of luck finding anything useful but did come across the below sensor which gives router type, CPU, Memory, Build No, Version etc etc. I’ve been unable to find another OID which displays these sensors individually.
Thank you VDRainer for the suggestion but I’m still confused as to what “value_template” I would need to use to display the data
I found the below example and tried to use it but the state is “unknown”. This makes sense cause I haven’t told the sensor how to look for the data “Memory Usage”. This is where my lack of json knowledge kicks me the bum.
I’ve connected to my router using “SnmpB” and “Manage Engine Mib Browser” but was unable to find these values as a standalone OID. I will take a look at snmpwalk maybe this might display them differently but not hopeful I will find a solution
I think the state is a list in a string not attributes. I think you’d need to use state and use some string extraction to get each part into individual sensors.
You might consider stripping off the “%” signs in the template and then adding the | float jinja2 filter to convert the string into a numeric value. Then you can have graphs and stuff.
To illustrate, I have a bunch of sensors that use MQTT as means of transporting the measurements, but they have human readable strings in them, including units, in the MQTT payload. While that’s nice to look at, I want these to be numbers. So I define sensors that look something like this:
where that regexp pattern strips off zero or more spaces and the trailing % character from the string. You could probably adapt something like this to your problem.