Zabbix triggers and multiple expressions: How to migrate HP OML policy with multiple thresholds to Zabbix?

Unfortunately Zabbix cannot handle multiple thresholds in the same trigger so if you want to achieve the same effect you have to create one trigger for each threshold (HP Operations Manager policy condition) and create dependencies.

Configuration

  1. If Disaster is in PROBLEM state do not alert as High
  2. If High in PROBLEM state do not alert as Warning
  3. if Disaster is in PROBLEM state, do not alert on High and Warning.

Test

[root@zabbix3 ~]# zabbix_sender -c /etc/zabbix/zabbix_agentd.conf -s fake001 -k test.dependency.severity -o 1
info from server: "processed: 1; failed: 0; total: 1; seconds spent: 0.000119"
sent: 1; skipped: 0; total: 1
[root@zabbix3 ~]# zabbix_sender -c /etc/zabbix/zabbix_agentd.conf -s fake001 -k test.dependency.severity -o 5
info from server: "processed: 1; failed: 0; total: 1; seconds spent: 0.000092"
sent: 1; skipped: 0; total: 1
[root@zabbix3 ~]# zabbix_sender -c /etc/zabbix/zabbix_agentd.conf -s fake001 -k test.dependency.severity -o 10
info from server: "processed: 1; failed: 0; total: 1; seconds spent: 0.000121"
sent: 1; skipped: 0; total: 1
[root@zabbix3 ~]# zabbix_sender -c /etc/zabbix/zabbix_agentd.conf -s fake001 -k test.dependency.severity -o 5
info from server: "processed: 1; failed: 0; total: 1; seconds spent: 0.000115"
sent: 1; skipped: 0; total: 1
[root@zabbix3 ~]# zabbix_sender -c /etc/zabbix/zabbix_agentd.conf -s fake001 -k test.dependency.severity -o 1
info from server: "processed: 1; failed: 0; total: 1; seconds spent: 0.000108"
sent: 1; skipped: 0; total: 1
[root@zabbix3 ~]# zabbix_sender -c /etc/zabbix/zabbix_agentd.conf -s fake001 -k test.dependency.severity -o 0
info from server: "processed: 1; failed: 0; total: 1; seconds spent: 0.000048"
sent: 1; skipped: 0; total: 1