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

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

XMLWordPrintable

    • Icon: Incident report Incident report
    • Resolution: Fixed
    • Icon: Minor Minor
    • 1.8.12rc2, 2.0.0rc3
    • 2.0.0rc1
    • Frontend (F)
    • 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.

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

              Created:
              Updated:
              Resolved: