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

Extensions 2.0 SNMP using query to change variables

rdinis
Participant

Hi all,

Im using the SNMP extension 2.0 to collect metrics of devices in different rooms.
Each device have a hostname - sys.name - with the id of the room and I would like to collect the device name and transform the variable to become a tag or property, but i need to remove some chars in string.

snmp:
  - group: device-group
    interval:
      minutes: 1
    dimensions:
      - key: sys.name ### ABC0123456789
        value: oid:1.3.6.1.2.1.1.5.0
      - key: device.room
        query: # device.room = sys.name -> 1234

I would like to know if its possible to change the string value of keys in any way possible.

1 REPLY 1

ChadTurner
DynaMight Legend
DynaMight Legend

@rdinis Do these entities show up as 'Hosts'? if so, you could leverage host naming rules and target the detected name but then use regex to parse data out of it. I use Regex 101 to test and formulate regex for naming and tagging. I hope this helps 🙂 

-Chad

Featured Posts