Ad Widget

Collapse

Change value for text by condition

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • petroj02
    Junior Member
    • Feb 2019
    • 4

    #1

    Change value for text by condition

    Hello guys,
    I wonder. if there is any way how to change value i am getting via SNMP.... In my case, I am getting information about used mobile technology at my device. This technology is represented by number. For example 1=LTE, 2 = EDGE, 3 HUSPA etc.... I would like to do preprocesing of item, that would be replace number for text. But issue is, that I cant figure our, which way it is possible.
    I have tried regular expression, where pattern is my number and output is text matched with number..... ( pattern = 1 ----> output = LTE), then I add next regular expression below the first one ( pattern = 2 ----> output = EDGE). But it doesnt work for me.
    Is it even possible to do this conditional replacement?
  • brunohl
    Senior Member
    Zabbix Certified Specialist
    • Mar 2019
    • 215

    #2
    Why don't you use Value Mappings?
    Attached Files

    Comment


    • petroj02
      petroj02 commented
      Editing a comment
      Thats exactly, what I am looking for. Thank you:-)
Working...