PDA

View Full Version : calculate trigger with two items


jpawlowski
25-05-2005, 17:16
hi,

i'd like this trigger to work together with templates:

{Tpl.Printer_HP:toner_curfill3.last(0)}/{Tpl.Printer_HP:toner_maxfill3.last(0)}<0.2

Unfortunately only the first expression will be updated to the final hostname when I add the template to a host, the second is not. if i change the second expression on the host manually it works fine.

i think this is some kind of bug so I report it here :-)

skendall
28-07-2005, 21:12
I have a few triggers on a template that check multiple items. When that template is assigned to a host, I get the same problem. It seems that the check on the last item is updated with the correct hostname, but any previous checks keep the template name.

mconigliaro
28-07-2005, 21:28
i believe this is a known bug. only the first expression is evaluated.

Alexei
29-07-2005, 08:02
I'm aware of this issue. It is already fixed and next alpha will be released very soon.

clawson
09-09-2005, 02:03
I am trying to do something similar to what is described here and I am still having problems.

I recently changed from 1.1 alpha 11 to 1.1 alpha 12 hoping that this problem would be resolved. (So is the fix in alpha 12 or in some future alpha?)

Here's the trigger that I want to execute:

Description: Disk space less than 50% on host's volume /
Expression: ({host:diskused[/].last(0)}/{host:disktotal[/].last(0)})<0.50

From the zabbix_server log, I get the following error:
012373:20050908:174802 Evaluation of expression [(15943812096.000000/{11277})<0.50] failed
012373:20050908:174802 Expression [({11276}/{11277})<0.50] cannot be evaluated.


Can anyone help here?

Thanks,
Dan

Alexei
09-09-2005, 09:42
I believe this is because disktotal is refreshed once per 30 or 60 minutes. Drink tea, eat cookies and the trigger will start working.