This is Zabbix template for Mikrotik router that use SNMP and Low Level Discovery for network interfaces.
Enable SNMP in you Mikrotik router. Set SNMP-community to public
. If you want to use another word for community you have to change it in the template's items. Or create appropriate {MACRO}.
This template uses some value mapping. Please create the following in Administration -> General -> Value mapping
:
- Network port status, [1 ⇒ Up, 2 ⇒ Down].
- Network port admin status, [1 ⇒ Enabled, 2 ⇒ Disabled]
Like this:
If you don't want to use value mapping, please delete all th lines with:
<valuemap>
<name>Network port admin status</name>
</valuemap>
and
<valuemap>
<name>Network port status</name>
</valuemap>
This template uses Low Level Discovery for network interfaces. To filter unactive interfaces it uses regular expression. Please, create the following in Administration -> General -> Regular expression
:
- Mikrotik interfaces 1 ,
.*slave.*
[Result is FALSE]
Like this:
If you don't want to use special regular expression you will have to change or remove it in the LLD rule filter tab:
Import template in Zabbix frontend: Configurtaion -> Template -> Import
.
Add the template to the mikrotik host. Be sure to set SNMP IP-address and Agent interfaces IP-address (used for ping).
You can find more screenshots here.
Enjoy! ;)