29 Apr 2024 02:33 PM - last edited on 07 May 2024 09:59 AM by MaciejNeumann
Hi,
I have a list of devices that end with the oid :
Es.
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
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
Solved! Go to Solution.
30 Apr 2024 12:29 PM
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.
02 May 2024 09:22 AM
Unfortunately, it's as I thought.
I was hoping there was a more dynamic way.
Thanks for support