Hallo!
I have a new Zabbix administration task, which is a nice riddle. Google didn´t help out. I want to compare string items and trigger, when the comparison fails the -second- time.
A simple solution which works but triggers the first time looks like this:
I know how to work with the count() function on one item. But how do I use it in a comparison?
I saw that I can put the expressions in brackets
But when I add the count() function...
... I get "Incorrect trigger expression".
Has anyone an idea how to implement this test?
I have a new Zabbix administration task, which is a nice riddle. Google didn´t help out. I want to compare string items and trigger, when the comparison fails the -second- time.
A simple solution which works but triggers the first time looks like this:
Code:
{host1:itemname[{HOST.HOST}].str()}<>{host2:itemname[{HOST.HOST}].str()}
I saw that I can put the expressions in brackets
Code:
({host1:itemname[{HOST.HOST}].str()}<>{host2:itemname[{HOST.HOST}].str()})
Code:
{({host1:itemname[{HOST.HOST}].str()}<>{host2:itemname[{HOST.HOST}].str()}).count(2#,1,eq}=2
Has anyone an idea how to implement this test?
Comment