-
Incident report
-
Resolution: Fixed
-
Major
-
1.6.1, 1.6.5
-
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]