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

There is a problem with import triggers

    XMLWordPrintable

    Details

    • Type: Incident report
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.6.1, 1.6.5
    • Fix Version/s: 1.8.5
    • Component/s: Frontend (F)
    • Labels:
      None
    • Environment:
      Linux 2.6.25-gentoo-r7 i686 GenuineIntel GNU/Linux
      PHP 5.2.6-pl7-gentoo with Suhosin-Patch 0.9.6.2
      Server version: Apache/2.2.9 (Unix)
      Zabbix version checked 1.6.1, 1.6.5

      Description

      There is a problem with import triggers

      XML:
      <trigger>
      <description>interface FastEthernet0</description>
      <type>0</type>
      <expression>{{HOSTNAME}:ifAdminStatus.2.last(0)}=1&{{HOSTNAME}:ifOperStatus.2.avg(120)}=2</expression>
      <url></url>
      <status>0</status>
      <priority>2</priority>
      <comments></comments>
      </trigger>

      Import:
      Incorrect trigger expression. [ ... ... ]

      I replaced the line in include/triggers.inc.php:
      if($ZBX_TR_EXPR_REPLACE_TO != $expr){
      //error('Incorrect trigger expression. ['.str_replace($ZBX_TR_EXPR_REPLACE_TO, ' ... ', $expr).']');
      error('Incorrect trigger expression. ['.$expr.']');
      return false;
      }
      and received here that:
      Incorrect trigger expression. [zbx_expr_okzbx_expr_ok]

        Attachments

          Activity

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            lopatich Kobra Lopatich
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: