Zabbix - calculated element function across multiple elements

From the Zabbix manual, the expression of calculated elements follows the form

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

This is great for computing using functions on a single element, such as

 max("temp1",120) 

How should the min () function be applied over 3 different elements so that it returns the lowest of them?

+6
source share
2 answers

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

Put the hosts in the "mygroup" group, and then:

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

If instead you wanted to have at least 3 elements for the same host, do not do this in the element. Instead, put the function in a trigger where you can easily start when the minimum temperature reaches a certain value.

0
source

Unfortunately, this is not currently supported. You can vote for the feature request: https://support.zabbix.com/browse/ZBXNEXT-1829

0
source

Source: https://habr.com/ru/post/895265/


All Articles