Dear Zabbix Community,
I came across an issue recently and I wanted to ask you if you have any suggestions to this (or had similar use cases).
A calculated item has a value (list of objects), that looks like this:
I want to create a trigger that fires when the value of the built-in macro {HOST.IP} is not found in this list. I have tried to do it several ways, through an item or a trigger, both with a syntax like seen below:
But without success, as {HOST.IP} is not being resolved in this context (as per documentation). Apart from doing this externally, via API or maybe with a discovery rule, do you see any other option I could use to make this trigger work ?
The idea is to make a template and attach it to multiple hosts, so I am looking for a convenient solution that is not too greedy in terms of resources.
Thank you in advance for your ideas :-)
Kind regards,
Ludovic
I came across an issue recently and I wanted to ask you if you have any suggestions to this (or had similar use cases).
A calculated item has a value (list of objects), that looks like this:
Code:
["IP":"1.1.1.1","IP":"2.2.2.2"]
Code:
find(/host/my-calculated-item,,"regexp","\"{HOST.IP}\"") <> 1
The idea is to make a template and attach it to multiple hosts, so I am looking for a convenient solution that is not too greedy in terms of resources.
Thank you in advance for your ideas :-)
Kind regards,
Ludovic
Comment