zabbix-mikrotik-snmp
zabbix-mikrotik-snmp copied to clipboard
Mikrotik SNMP template for Zabbix
Zabbix template for Mikrotik router
This is Zabbix template for Mikrotik router that use SNMP and Low Level Discovery for network interfaces.
How to use
SNMP
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}.
Value mapping
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>
Regular expression
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
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! ;)