Using macros

Let's take a careful look at the emails we received (if you have already deleted them, just send a couple more SNMP traps). The subject and body both mention the trigger name—SNMP trap has arrived on snmptraps. It looks like it was a good idea to include the hostname macro in the trigger name. While there's another solution we will explore right now, a general suggestion is to always include the hostname in the trigger name. Doing so will avoid cases when you receive an alert, but have no idea which host has the problem. For example, if we had omitted the hostname macro from our trigger, the email alerts would have said SNMP trap has arrived.

Another solution is possible in regards to the aforementioned problem; we can use the ...

Get Zabbix 4 Network Monitoring - Third Edition now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.