r/zabbix•
ckaili

Trigger targeting a host group

edit: the title should probably be "Trigger applied to a host group"

Hi, this might be a newbie question, but I've been trying for a while and can't seem to get this to work. Disclaimer -- I've inherited these configurations so I'm open to restructuring if necessary.

I have a sort of catch-all template that includes all the linux box hosts and implements basic items, like checking for memory, processor load, etc. I need to implement a trigger on a subset of these hosts. For example, a subset of those boxes is more sensitive to low memory. So, in addition to existing memory check that I have, I want that subset to have another trigger that occurs at a different threshold.

At first I tried making a host group to contain this subset. However, I can't figure out, within the catch-all template, how to make a trigger target this host group. It doesn't appear to be a targetable item like an individual host or template. I also tried to make a new template containing that subset, but I get errors when attempting to add the same item to check (hosts belonging to both templates end up with duplicate items, e.g. two identical memory check items, which zabbix does not appear to allow).

I'm wondering if I'm missing something or if the way that our hosts are organized into templates is just plain wrong. I know I can enable/disable the new trigger manually on specific hosts but there are a lot of hosts and I think between maintenance of both the configuration and my sanity I'd prefer to target a predefined subset if possible.

I'd greatly appreciate any input, and can provide more info if necessary. I'm using version Zabbix 2.2.12. Thanks!

Posted Aug 9, 2016, 3:58 PM UTC

22
Loading comments…