SNMP Extension 2.0 Regex OID

Hi,

I have a list of devices that end with the oid :

Es.

2606.7.4.1.2.1.3.1  = Device12606.7.4.1.2.1.3.2 = Device22606.7.4.1.2.1.3.3 = Device3

the last number of oid is the index of the device. (colored red)

I need the corresponding value, but on other table doesn’t end with the same index

Es.

2606.7.4.2.2.1.4.1.2 = INTEGER: 10

2606.7.4.2.2.1.4.2.2 = INTEGER: 20

2606.7.4.2.2.1.4.3.2 = INTEGER: 30

Is possible to custom the oid with a regex or someting like that ?

dimensions:
  - key: custom.snmp.test.device
	value: oid:2606.7.4.1.2.1.3
metrics:
  - key: custom.snmp.test.value
	value: oid:2606.7.4.2.2.1.4.{custom.snmp.test.device}.2​

I hope I have explained myselfI appreciate any advice, I’ve been struggling with it for daysThank you

The only way this’d be possible was if the values were in an SNMP table, so you’d go table: true in the subgroup to poll the columns of a table. If it’s not a table, there is currently no way of doing that dynamically. You’d have to hardcode it into the YAML.

Unfortunately, it’s as I thought.

I was hoping there was a more dynamic way.

Thanks for support

Hi , Did you find any solution?