Installation
- Copy the script file mtr.sh to the ExternalScripts folder on your Zabbix Server or Proxy.
- Make the script executable:
chmod +x mtr.sh
- Import the Template to your Zabbix Server.
- Link the template to the target host. From there on Zabbix Server or Proxy will discover and monitor the hops between itself and the target’s HOST IP using the {HOST.IP} macro.
Notes
These files and templates were tested and created on Zabbix 4.4 & 5.0 and Debian Linux 9 & 10 amd64 with the package mtr-tiny.
The XML file provided is exported from Zabbix 5.0.3.
This template creates a Master item, which executes the script and receives the MTR JSON output. From there on we have a Low-Level-Discovery rule, that discovery three item prototypes:
- Name of each Hop
- Average RTT(ms) of each Hop
- ICMP Loss% of each Hop
There are no Trigger or Graph prototypes in this template at the moment.
Parts of this Template are directly related to a reddit discussion, which gave me a very good starting point.
Example / Screenshot

Changelog
- 01 October 2020: initial commit.
Just 1 question
Copy the script file mtr.sh to the ExternalScripts folder on your Zabbix Server or Proxy.
Make the script executable: chmod +x mtr.sh
How and where to this in docker ?
Hi, I have no idea about Zabbix running in Docker. I would suggest to first check the official documentation, where this is described in detail as far as I know: https://www.zabbix.com/documentation/current/manual/installation/containers
And if this doesn’t help, politely ask in the Zabbix Telegram Community: https://t.me/ZabbixTech