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

Function backslashes escaped when applying template from autoregistration actions

    XMLWordPrintable

Details

    Description

      Steps to reproduce:

      1. Create template with some trigger having function expression containing backslashes, like:
        find(/host/sip.remote[5060],#3,"regexp","^OK\s+")<>0
        
      2. Make this template applied to hosts from autoregistration action (link template when host registers in Zabbix)
      3. Register new host susceptible to autoregistration applying this template

      Result:
      Host trigger expression will be correctly inherited from the template, but backslashes will be escaped, resulting in wrong expression like

      find(/host/sip.remote[5060],#3,"regexp","^OK\\s+")<>0
      

      Expected:
      No such escaping, expressions should be copied as is from templates.

      Attachments

        Activity

          People

            zabbix.dev Zabbix Development Team
            Alex/AT Alexey Asemov
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: