Hi, I have a newbie question. Is it possible to check host group in trigger expression? I have several host groups and template based hosts. In certain template I want to create a trigger which should work differently for different host groups. The problem is that I have no idea how to specify certain group in expression. I can open "Configuration -> Templates -> Triggers -> My trigger -> Expression, Edit -> Item, Select" and choose the group and item I need, but in this case resulting expression looks like "myhost:agent ping..." where myhost is the first host in the host group, not the group itself. Can you help me? Is that a wrong in general idea to check the host group in trigger and change behavior based on it?
Ad Widget
Collapse
Host group in trigger expression
Collapse
X
-
Unfortunately there are no macros for getting/evaluating the host group in a trigger expression. Have a look at the manual for what is available: https://www.zabbix.com/documentation...ed_by_location
If it is simply a threshold that is different per group, then just make use of normal user macros, where you then define different values to that user macro on the first host (in the one that will trigger the alert) in each host group.
I think the reason why there aren't anything like this available is due to the fact that you can assign a single host to multiple host groups.Comment
Comment