PDA

View Full Version : Error while applying Template with Trigger


StephenKing
08-11-2011, 19:43
Hi,

I've just updated our Zabbix 1.8.2 to 1.9.7 (and ran the upgrade script).

I experience the problem that I cannot apply a certain template (our base template :eek:) to any new hosts.

It always fails with


...
Trigger [Checksum of /vmlinuz changed:{srv114.example.org:vfs.file.cksum[/vmlinuz].diff(0)}>0] created.
Cannot implode expression "{srv114.example.org:vfs.fs.inode[/,free].avg(600)} / {srv114.example.org:vfs.fs.inode[/,total].last()} < 0.1".


Do you have any clue, why this is happening?

I had a brief view at that code in class.ctrigger.php and it passes exactly that trigger expression to explode_exp(), however, I have no idea, why that fails. Am I using some invalid trigger syntax?

Thanks for your reply
Steffen

StephenKing
08-11-2011, 20:15
Ah, I noticed that last() seems to be not valid anymore, but has to be last(0) instead.

Now it works..