Ad Widget

Collapse

Zabbix 4 - Tags in Triggers

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • eli.winderickx
    Junior Member
    • Nov 2018
    • 3

    #1

    Zabbix 4 - Tags in Triggers

    Hi guys

    I'm trying to work with tags for the first time in the combination with triggers and I'm having some difficulty setting this up.

    This is what I have set up: {{HOST.NAME}.regsub("NET-([A-Z]+)", \1)}
    Host name: NET-MEI-SWI-TEST
    What I'm trying to sort out: MEI

    What am I doing wrong? I tested the regex with regex101 and it seem to work there.

    Thanks in advance!
  • splitek
    Senior Member
    • Dec 2018
    • 101

    #2
    Maybe try this: (?<=-)(.*?)(?=-)
    \1 for MEI
    \2 for SWI

    Comment

    Working...