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

Preprocessing Regexp do not work correctly

    XMLWordPrintable

Details

    • Team A
    • Sprint 22, Sprint 23, Sprint 30, Sprint 31
    • 1

    Description

      The built-in template "Template Module Cisco Inventory SNMPv2" has key system.sw.os, which has a regexp preprocessing rule "Version (.+), RELEASE". When this template is assigned to a cisco switch, this results in an error in zabbix_server.log:

      Item preprocessing step #1 failed: cannot perform regular expression match on value "Cisco IOS Software, C2960 Software (C2960-LANBASEK9-M), Version 12.2(44)SE6, RELEASE SOFTWARE (fc1)
      Copyright (c) 1986-2009 by Cisco Systems, Inc.
      Compiled Mon 09-Mar-09 18:10 by gereddy" of type "string": pattern does not match
      e.g. grep -P "Version (.+), RELEASE" on the zabbix log file correctly returns the error line so the regular expression seems correct.

      Attachments

        1. 1.png
          1.png
          21 kB
        2. ZBX-13066.patch
          1 kB

        Issue Links

          Activity

            People

              viktors.tjarve Viktors Tjarve
              leosenko Leos Pohl
              Votes:
              1 Vote for this issue
              Watchers:
              12 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: