cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

SNMP Extension 2.0 Regex OID

NicoloB
Observer

Hi, 

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

Es. 

2606.7.4.1.2.1.3.1  = Device1
2606.7.4.1.2.1.3.2 = Device2
2606.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 myself
I appreciate any advice, I've been struggling with it for days
 
Thank you
2 REPLIES 2

Mike_L
Dynatrace Guru
Dynatrace Guru

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.

Mike

NicoloB
Observer

Unfortunately, it's as I thought.

I was hoping there was a more dynamic way.

Thanks for support

Featured Posts