Examples of Zabbix Triggers

I will give some examples of triggers for Zabbix.

Let’s assume there are data elements, starting from them we will create triggers.

An example of a trigger informing that traffic on the switch port is more than permissible:

Name: Incoming port traffic > 70 Mbit/s at the office {HOSTNAME}
Expression: ({TemplateName:ifInOctets.1.last()}>70M)

For all UPLINK ports of switches and other devices, it is desirable to create a trigger when the port utilization is > 90%, for example, for a 1 Gbit/s port:

Name: Traffic on UPLINK port > 900 Mbit/s
Expression: {ixnfo.com:ifHCInOctets.25.last(0)}>900000000

Trigger reporting the loss of the link on the switch port when the value is not equal to 1 (I note that when the link disappeared the status can be different from 2, for example when the port is blocked etc., for example 1-up, 2-down, 3-testing, 4-unknown, 5-dormant, 6-notPresent, 7-lowerLayerDown):

The link to the Office3 (21 ports) was lost on {HOSTNAME}
({192.168.2.22:ifOperStatus.21.last(0)}<>1)

To Zabbix reported the appearance of the link:

A link to the Office3 (21 ports) appeared on {HOSTNAME}
({192.168.2.22:ifOperStatus.21.last(0)}=1)

Trigger with a high processor load:

CPU load on {HOSTNAME} higher 70
{192.168.2.22:cpu.last(0)}>70

Change in value > 50 in the last 10 minutes:

{192.168.2.22:test.change(10m)}>50

See also my articles:
Examples of Items for Zabbix
Tracking file changes via Zabbix

Leave a comment

Leave a Reply