开发者

Zabbix - calculated item function over multiple items

开发者 https://www.devze.com 2023-03-28 15:04 出处:网络
From the Zabbix Manual the calculated items开发者_运维技巧 expression follows the form, func(<key>|<hostname:key>,<parameter1>,<parameter2>,...)

From the Zabbix Manual the calculated items开发者_运维技巧 expression follows the form,

func(<key>|<hostname:key>,<parameter1>,<parameter2>,...)

This is fine for computations using functions over a single item like,

max("temp1",120)

How should a function like min() be applied over 3 different items so it returns the lowest of those?


Unfortunately, that is currently not supported. You may vote on a feature request: https://support.zabbix.com/browse/ZBXNEXT-1829


The answer is in the documentation here http://www.zabbix.com/documentation/2.0/manual/config/items/itemtypes/aggregate

Put the hosts into a group "mygroup" and then:

grpmin["mygroup","temp1",last,0]

If instead, you wanted the minimum of 3 items for the same host, don't do this in an item. Instead put the function in the trigger where you can easily trigger when the min temperature reaches a certain value.

0

精彩评论

暂无评论...
验证码 换一张
取 消