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

There is a problem with import triggers

XMLWordPrintable

    • Icon: Incident report Incident report
    • Resolution: Fixed
    • Icon: Major Major
    • 1.8.5
    • 1.6.1, 1.6.5
    • Frontend (F)
    • None
    • 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

      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]

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

              Created:
              Updated:
              Resolved: