I was wondering how to go about triggering an event if, for example: 10 or more hosts in a specific hostgroup have a specific trigger status set to PROBLEM.
Another variation: if more than 25% of hosts in a given hostgroup have a specific trigger status set to PROBLEM.
Yet another variation: if more than 10% or 15 or more hosts have a certain trigger in PROBLEM state.
It doesn't seem like IT services can do this, nor can I get aggregation items to count hosts. I don't even know where to begin on how to count triggers within a certain hostgroup.
I figure I can use the API to count things up (total hosts in hostgroup, and trigger counts, etc…) then use zabbix_sender to send the calculated value to the item where I can of course trigger of that value. But, I wanted to check with the community first to see if there an non-API based way of ding this.
(Only on Zabbix 2.0.x so maybe there is some newer stuff that will allow for this.)
Another variation: if more than 25% of hosts in a given hostgroup have a specific trigger status set to PROBLEM.
Yet another variation: if more than 10% or 15 or more hosts have a certain trigger in PROBLEM state.
It doesn't seem like IT services can do this, nor can I get aggregation items to count hosts. I don't even know where to begin on how to count triggers within a certain hostgroup.
I figure I can use the API to count things up (total hosts in hostgroup, and trigger counts, etc…) then use zabbix_sender to send the calculated value to the item where I can of course trigger of that value. But, I wanted to check with the community first to see if there an non-API based way of ding this.
(Only on Zabbix 2.0.x so maybe there is some newer stuff that will allow for this.)
Comment