SNMP text values contain surrounding quotes when processed with *.regexp()

XMLWordPrintable

    • Type: Incident report
    • Resolution: Fixed
    • Priority: Minor
    • 1.8.12rc2, 2.0.0rc3
    • Affects Version/s: 2.0.0rc1
    • Component/s: Frontend (F)
    • Environment:
      Debian 6.0.3
      mysql Ver 14.14 Distrib 5.1.49, for debian-linux-gnu (x86_64)
      PHP 5.3.3-7+squeeze3 with Suhosin-Patch (cli)

      I use a global regular expression in a trigger for an SNMP item (example value: "54 C"):

      {MyHost:SystemTemperature.regexp(@QNAP-SysTemp-OK)}

      =0

      The regexp only works if I include the surrounding quotes:
      This works: ^"[1-5][0-9] C"$
      This doesn't: ^[1-5][0-9] C$

      I guess the intended behaviour should be to strip off the quotes from the SNMP text values before they are further processed by Zabbix.

            Assignee:
            Unassigned
            Reporter:
            Jens Berthold
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: