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

Details

    • Documentation task
    • Status: Closed
    • Trivial
    • Resolution: Won't fix
    • None
    • None
    • None
    • None

    Description

      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
       
       
       
       

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: