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

Trigger prototypes reject valid syntax (sometimes)

    Details

    • Type: Incident report
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 3.0.0alpha2
    • Fix Version/s: 3.0.0alpha2
    • Component/s: Frontend (F)
    • Labels:
    • Environment:
      Ubuntu 15.04

      Description

      I started with a clean, empty database initialized with the scripts in 2.5.1 (it also failed in 2.5.0 release, and also in an updated 2.4.6rc1 database).

      It does not fail for every template: I have not been able to find a pattern for when it does and does not. In fact I have been able to full clone a failing template and have it not fail in the clone.

      To reproduce: drill down into the Template OS Linux, discovery and into trigger prototypes for "Free disk space is less than 20%".

      Take the initial value, and add an "and" condition for free space (not percent) as follows:

      {Template OS Linux:vfs.fs.size[{#FSNAME},pfree].last(0)}< 20
      and
      {Template OS Linux:vfs.fs.size[{#FSNAME},free].last(0)}<200G

      When you try to save it fails with a somewhat nebulous error (in fact it first says updated, then it shows a failure). See first screen shot.

      If instead you use the expression constructor, it looks happy (but will not update), and if you go into the Test, you get what is perhaps an unrelated undefined property error (second screen shot).

      Notice in the third screen shot I did a full clone, and did the exact same edit (+/- the cloned name). This was accepted without error (see fourth showing it in place). Note that the Undefined Property error will still appear in the Test screen for this working case, making me think that may be an independent error.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              Linwood Linwood Ferguson
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: