title: Aggregate item data from Zabbix?
body: <p>I would like to have Zabbix monitor different items (on the same host, or on different hosts) and assign a value depending on the outcome, then have it fire (or not) a trigger depending on the aggregation of these values.</p>
  
  <p>For instance, let's imagine a cluster of 3 database nodes.  Zabbix monitors every one of them via ping and increases a global variable by 1 if the node is reachable.  After a round, the variable could have the following values:</p>
  
  <ul>
  <li>3 => (all nodes are up) cluster is OK</li>
  <li>2 => (one node is down) cluster is still working but in degraded state</li>
  <li>1 => (two nodes are down) cluster is working but no replication is done </li>
  <li>0 => (all nodes are down) cluster is down</li>
  </ul>
  
  <p>Then Zabbix fires a trigger with WARNING severity if value is 1, and a trigger with HIGH severity if value is 0.</p>
  
  <p>Is there a way to do this natively or via a module, without having to use the APIs?  Thanks.   </p>