Uploaded image for project: 'ZABBIX BUGS AND ISSUES'
  1. ZABBIX BUGS AND ISSUES
  2. ZBX-19326

macro filters regsub and iregsub not working as documented

XMLWordPrintable

    • Icon: Documentation task Documentation task
    • Resolution: Won't fix
    • Icon: Trivial Trivial
    • None
    • None
    • None
    • None

      https://www.zabbix.com/documentation/5.0/manual/config/macros/macro_functions?s[]=regsub

      documentation is not correct it states that:

       
      <macro> - the macro to customize (for example {ITEM.VALUE} or {#LLDMACRO})
       
       
       
      however if i use  {

      {HOST.HOST}

      .regsub("(.)pr|oe|on(.)",\1-\2)}
      on the tag it doesn't work
       
      so either de documentation is unclear or there is something not working
       
       
       
       

            zabbix.support Zabbix Support Team
            patrik patrik uytterhoeven
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: