zabbix_export: version: '5.4' date: '2021-11-21T21:28:04Z' groups: - uuid: 7df96b18c230490a9a0a9e2307226338 name: Templates templates: - uuid: 8d322ca8c4ea4f32bcbd926b2ed53bf6 template: 'Mikrotik CRS125-24G-1S-2HnD-IN' name: 'Mikrotik CRS125-24G-1S-2HnD-IN' description: | ## Overview This template has been customized for CRS125-24G-1S-2HnD-IN, but will probably work fine for other Mikrotik routers. It includes interfaces, processors, memory, disk, availability, temperature, voltage, DHCP leases and wireless clients. Updated in 2019-May-15 to reflect the OID changes implemented by Mikrotik. For some reason, they changed several OIDs and my monitoring stopped working. After some troubleshooting I found out the router was showing the data on different OIDs so I updated the template to reflect them. If you are experiencing broken graphics and Items showing as "Not supported" since a few weeks ago, please update the template to this one. Im not sure if you will need to clear the data.. I did it during the troubleshooting process because I thought my DB was somehow corrupted, but please try to update the template first.. if it does not work properly, then clean the historical data of your router in your Zabbix. ## Author Antonio Forster groups: - name: Templates items: - uuid: ba43f95ec7af4edfb4b224e3cb8572a5 name: 'ICMP ping' type: SIMPLE key: icmpping delay: 30s request_method: POST tags: - tag: Application value: Availability - uuid: 51dff41f249b4e79ba9ccbc7a2a0d5b9 name: 'ICMP loss' type: SIMPLE key: icmppingloss delay: 30s value_type: FLOAT units: '%' request_method: POST tags: - tag: Application value: Availability - uuid: 9b99a39c2a364fb9a6c0b772c9566f9f name: 'ICMP response time' type: SIMPLE key: icmppingsec delay: 30s value_type: FLOAT units: s request_method: POST tags: - tag: Application value: Availability - uuid: 0af0b369ff8442009dd0123b482ada1c name: 'DHCP Leases' type: SNMP_AGENT snmp_oid: iso.3.6.1.4.1.14988.1.1.6.1.0 key: mtxrDHCPLeaseCount delay: 30s units: leases request_method: POST tags: - tag: Application value: Services - uuid: e093a0c254834ce291864eaf1d1dab14 name: 'Wireless Clients' type: SNMP_AGENT snmp_oid: 'SNMPv2-SMI::enterprises.14988.1.1.1.3.1.6.1.0' key: mtxrWlApClientCount delay: 30s units: clients request_method: POST tags: - tag: Application value: Services - uuid: 01e0356d48bf4d0997422e8890fcf23c name: 'Device contact details' type: SNMP_AGENT snmp_oid: 'SNMPv2-MIB::sysContact.0' key: sysContact delay: 5m trends: '0' value_type: CHAR request_method: POST tags: - tag: Application value: General - uuid: a80bf25ab69a4c388074f1d65fa567fd name: 'Device description' type: SNMP_AGENT snmp_oid: 'SNMPv2-MIB::sysDescr.0' key: sysDescr delay: 5m trends: '0' value_type: CHAR request_method: POST tags: - tag: Application value: General - uuid: 0d0364dfbb1c451cba90b4b463d92707 name: 'Device location' type: SNMP_AGENT snmp_oid: 'SNMPv2-MIB::sysLocation.0' key: sysLocation delay: 5m trends: '0' value_type: CHAR request_method: POST tags: - tag: Application value: General - uuid: 6470e11cea934456b7c9d1afdab61ee6 name: 'Device name' type: SNMP_AGENT snmp_oid: 'SNMPv2-MIB::sysName.0' key: sysName delay: 5m trends: '0' value_type: CHAR request_method: POST tags: - tag: Application value: General - uuid: 4cf39c51f4e6478a8489e5ddfe9365dc name: 'Device uptime' type: SNMP_AGENT snmp_oid: 'SNMPv2-MIB::sysUpTime.0' key: sysUpTime units: uptime preprocessing: - type: MULTIPLIER parameters: - '0.01' request_method: POST tags: - tag: Application value: General - uuid: a73a4660d3224a55b796b7d5014b3261 name: Temperature type: SNMP_AGENT snmp_oid: iso.3.6.1.4.1.14988.1.1.3.10.0 key: temperature delay: 30s units: ºC preprocessing: - type: MULTIPLIER parameters: - '0.1' request_method: POST tags: - tag: Application value: General - uuid: 52369b0f2af64959aa0a4069aea1b592 name: Voltage type: SNMP_AGENT snmp_oid: iso.3.6.1.4.1.14988.1.1.3.8.0 key: voltage delay: 30s units: Volts preprocessing: - type: MULTIPLIER parameters: - '0.1' request_method: POST tags: - tag: Application value: General discovery_rules: - uuid: b6f606153544498d812ad79135f99f6a name: Processors type: SNMP_AGENT snmp_oid: 'discovery[{#SNMPVALUE},HOST-RESOURCES-MIB::hrProcessorLoad]' key: hrProcessorLoad delay: 5m item_prototypes: - uuid: 5cd1b1f1c4e9404fa6633c8651cb37e2 name: 'Utilization of processor #$1' type: SNMP_AGENT snmp_oid: 'HOST-RESOURCES-MIB::hrProcessorLoad.{#SNMPINDEX}' key: 'hrProcessorLoad[{#SNMPINDEX}]' delay: 30s units: '%' request_method: POST tags: - tag: Application value: CPU trigger_prototypes: - uuid: 35cd2a33b78f4ffb8ce2226657c6fe69 expression: 'min(/Mikrotik CRS125-24G-1S-2HnD-IN/hrProcessorLoad[{#SNMPINDEX}],#5)>80' name: 'High CPU Utilization' priority: HIGH - uuid: ae82310cd29d44cf9cb7ccfeb021b1bc expression: 'min(/Mikrotik CRS125-24G-1S-2HnD-IN/hrProcessorLoad[{#SNMPINDEX}],#5)=100' name: 'High CPU Utilization - 100%' priority: DISASTER graph_prototypes: - uuid: 354bdd5fbc5f4bc4a3d7711345fc06e4 name: 'Processor #{#SNMPINDEX}' ymin_type_1: FIXED ymax_type_1: FIXED graph_items: - drawtype: GRADIENT_LINE color: '000088' item: host: 'Mikrotik CRS125-24G-1S-2HnD-IN' key: 'hrProcessorLoad[{#SNMPINDEX}]' request_method: POST - uuid: f9947907ec14483dbf482ed2bf4ebe7b name: 'Disk partitions' type: SNMP_AGENT snmp_oid: 'discovery[{#SNMPVALUE},HOST-RESOURCES-MIB::hrStorageDescr]' key: hrStorageDescr delay: 5m item_prototypes: - uuid: fe28c24412b444ea9a91122ea53af828 name: 'Allocation units for storage $1' type: SNMP_AGENT snmp_oid: 'HOST-RESOURCES-MIB::hrStorageAllocationUnits.{#SNMPINDEX}' key: 'hrStorageAllocationUnits[{#SNMPVALUE}]' delay: 1h units: B request_method: POST tags: - tag: Application value: Flash - uuid: 3509e490101b4f43bcf1128e3e71ce04 name: 'Description of storage $1' type: SNMP_AGENT snmp_oid: 'HOST-RESOURCES-MIB::hrStorageDescr.{#SNMPINDEX}' key: 'hrStorageDescr[{#SNMPVALUE}]' delay: 1h trends: '0' value_type: CHAR request_method: POST tags: - tag: Application value: Flash - uuid: ac08565f465b45fa857890b145a48771 name: 'Total space on $1' type: CALCULATED key: 'hrStorageSizeInBytes[{#SNMPVALUE}]' delay: 1h units: B params: 'last(//hrStorageSize[{#SNMPVALUE}]) * last(//hrStorageAllocationUnits[{#SNMPVALUE}])' request_method: POST tags: - tag: Application value: Flash - uuid: 239f5c431f0749ee80698799b7cc7e80 name: 'Total space on $1 in units' type: SNMP_AGENT snmp_oid: 'HOST-RESOURCES-MIB::hrStorageSize.{#SNMPINDEX}' key: 'hrStorageSize[{#SNMPVALUE}]' delay: 1h units: units request_method: POST tags: - tag: Application value: Flash - uuid: 57ad838af22a43f3b3f41add55d9f765 name: 'Used space on $1' type: CALCULATED key: 'hrStorageUsedInBytes[{#SNMPVALUE}]' units: B params: 'last(//hrStorageUsed[{#SNMPVALUE}]) * last(//hrStorageAllocationUnits[{#SNMPVALUE}])' request_method: POST tags: - tag: Application value: Flash - uuid: 3ca0dc7cd7a144f9b5481cc64829f505 name: 'Used space on $1 in units' type: SNMP_AGENT snmp_oid: 'HOST-RESOURCES-MIB::hrStorageUsed.{#SNMPINDEX}' key: 'hrStorageUsed[{#SNMPVALUE}]' units: units request_method: POST tags: - tag: Application value: Flash graph_prototypes: - uuid: 63e9a4e272114ed88ee307c42cd4fe93 name: 'Used Space on {#SNMPVALUE}' graph_items: - drawtype: BOLD_LINE color: '007700' item: host: 'Mikrotik CRS125-24G-1S-2HnD-IN' key: 'hrStorageSizeInBytes[{#SNMPVALUE}]' - sortorder: '1' drawtype: GRADIENT_LINE color: CC0000 item: host: 'Mikrotik CRS125-24G-1S-2HnD-IN' key: 'hrStorageUsedInBytes[{#SNMPVALUE}]' request_method: POST - uuid: 5f935e81d2774264a42fa94eaa617e88 name: Interfaces type: SNMP_AGENT snmp_oid: 'discovery[{#SNMPVALUE},.1.3.6.1.2.1.2.2.1.2]' key: MikInterfaces delay: 5m lifetime: 10d item_prototypes: - uuid: d24c98ad491647328970906b50787eae name: 'Interface {#SNMPVALUE} status' type: SNMP_AGENT snmp_oid: '.1.3.6.1.2.1.2.2.1.8.{#SNMPINDEX}' key: '.1.3.6.1.2.1.2.2.1.8.[{#SNMPINDEX}]' delay: 5m history: 2w trends: 30d description: | 1 — up 2 — down request_method: POST tags: - tag: Application value: Network trigger_prototypes: - uuid: a91f06e9c52e4826a5bdab364cdfc384 expression: '(last(/Mikrotik CRS125-24G-1S-2HnD-IN/.1.3.6.1.2.1.2.2.1.8.[{#SNMPINDEX}],#1)<>last(/Mikrotik CRS125-24G-1S-2HnD-IN/.1.3.6.1.2.1.2.2.1.8.[{#SNMPINDEX}],#2))=1' name: 'Operational status was changed on {HOST.NAME} interface {#SNMPVALUE}' priority: HIGH - uuid: 4f8b656c765748b8999b0a974f22111f name: 'Interface {#SNMPVALUE} bps in' type: SNMP_AGENT snmp_oid: '.1.3.6.1.2.1.31.1.1.1.6.{#SNMPINDEX}' key: '.1.3.6.1.2.1.31.1.1.1.6.[{#SNMPINDEX}]' delay: 30s history: 2w trends: 30d units: bps preprocessing: - type: MULTIPLIER parameters: - '8' - type: CHANGE_PER_SECOND parameters: - '' request_method: POST tags: - tag: Application value: Traffic trigger_prototypes: - uuid: d95d76f998014e5f94f21df3f0bf5a23 expression: 'avg(/Mikrotik CRS125-24G-1S-2HnD-IN/.1.3.6.1.2.1.31.1.1.1.6.[{#SNMPINDEX}],300s)>{$MIKROTIK.MAX.TRAF}' name: 'Incoming traffic ({ITEM.VALUE}) is too high at {#SNMPVALUE} for last 300 sec' priority: DISASTER - uuid: 7dc09955bc854aaaa7d35736aabdd663 name: 'Interface {#SNMPVALUE} packets in' type: SNMP_AGENT snmp_oid: '.1.3.6.1.2.1.31.1.1.1.7.{#SNMPINDEX}' key: '.1.3.6.1.2.1.31.1.1.1.7.[{#SNMPINDEX}]' delay: 30s history: 2w trends: 30d units: P preprocessing: - type: CHANGE_PER_SECOND parameters: - '' request_method: POST tags: - tag: Application value: Traffic - uuid: 15c3dce497634a3dbe9941b327347e3a name: 'Interface {#SNMPVALUE} bps out' type: SNMP_AGENT snmp_oid: '.1.3.6.1.2.1.31.1.1.1.10.{#SNMPINDEX}' key: '.1.3.6.1.2.1.31.1.1.1.10.[{#SNMPINDEX}]' delay: 30s history: 2w trends: 30d units: bps preprocessing: - type: MULTIPLIER parameters: - '8' - type: CHANGE_PER_SECOND parameters: - '' request_method: POST tags: - tag: Application value: Traffic trigger_prototypes: - uuid: 18ee0e4893924d668d9ef630953d7bc7 expression: 'avg(/Mikrotik CRS125-24G-1S-2HnD-IN/.1.3.6.1.2.1.31.1.1.1.10.[{#SNMPINDEX}],300s)>{$MIKROTIK.MAX.TRAF}' name: 'Outgoing traffic ({ITEM.VALUE}) is too high at {#SNMPVALUE} for last 300 sec' priority: DISASTER - uuid: b33e0526a48d423e883a42607aff2059 name: 'Interface {#SNMPVALUE} packets out' type: SNMP_AGENT snmp_oid: '.1.3.6.1.2.1.31.1.1.1.11.{#SNMPINDEX}' key: '.1.3.6.1.2.1.31.1.1.1.11.[{#SNMPINDEX}]' delay: 30s history: 2w trends: 30d units: P preprocessing: - type: CHANGE_PER_SECOND parameters: - '' request_method: POST tags: - tag: Application value: Traffic - uuid: e9670ab2bbe24315a465fbeb7f86efde name: 'Interface {#SNMPVALUE} admin status' type: SNMP_AGENT snmp_oid: '.1.3.6.1.2.1.2.2.1.7.{#SNMPINDEX}' key: 'MIkAdminStatus[{#SNMPINDEX}]' delay: 5m history: 2w trends: 30d description: | 1 — administratively enabled 2 — administratively disabled request_method: POST tags: - tag: Application value: Network graph_prototypes: - uuid: f5f8a9d73c7540b18c4dce7544397b0f name: 'Interface {#SNMPVALUE} traffic - bps' show_work_period: 'NO' graph_items: - drawtype: GRADIENT_LINE color: 00C800 item: host: 'Mikrotik CRS125-24G-1S-2HnD-IN' key: '.1.3.6.1.2.1.31.1.1.1.10.[{#SNMPINDEX}]' - sortorder: '1' drawtype: GRADIENT_LINE color: C80000 item: host: 'Mikrotik CRS125-24G-1S-2HnD-IN' key: '.1.3.6.1.2.1.31.1.1.1.6.[{#SNMPINDEX}]' - uuid: f60577a1867b43bea68144068e7f4423 name: 'Interface {#SNMPVALUE} traffic - pps' graph_items: - drawtype: GRADIENT_LINE color: '880000' item: host: 'Mikrotik CRS125-24G-1S-2HnD-IN' key: '.1.3.6.1.2.1.31.1.1.1.7.[{#SNMPINDEX}]' - sortorder: '1' drawtype: GRADIENT_LINE color: 33FF33 item: host: 'Mikrotik CRS125-24G-1S-2HnD-IN' key: '.1.3.6.1.2.1.31.1.1.1.11.[{#SNMPINDEX}]' request_method: POST macros: - macro: '{$MIKROTIK.CPUCORE.LOAD.MAX}' value: '80' - macro: '{$MIKROTIK.MAX.TRAF}' value: '838860800' graphs: - uuid: 5592316038d744fe973b16069deb5193 name: Clients graph_items: - drawtype: GRADIENT_LINE color: 0000BB item: host: 'Mikrotik CRS125-24G-1S-2HnD-IN' key: mtxrDHCPLeaseCount - sortorder: '1' drawtype: GRADIENT_LINE color: 00CC00 item: host: 'Mikrotik CRS125-24G-1S-2HnD-IN' key: mtxrWlApClientCount - uuid: 95e788ce7fbd4d92a066a7039e55cc5b name: 'ICMP Availability' graph_items: - drawtype: GRADIENT_LINE color: EE0000 item: host: 'Mikrotik CRS125-24G-1S-2HnD-IN' key: icmppingloss - sortorder: '1' drawtype: GRADIENT_LINE color: 0000BB item: host: 'Mikrotik CRS125-24G-1S-2HnD-IN' key: icmppingsec - uuid: 98398440b4c74b8c9ba55a0050c85cb6 name: 'Temperature & Voltage' graph_items: - drawtype: GRADIENT_LINE color: '007777' item: host: 'Mikrotik CRS125-24G-1S-2HnD-IN' key: temperature - sortorder: '1' drawtype: BOLD_LINE color: F63100 yaxisside: RIGHT item: host: 'Mikrotik CRS125-24G-1S-2HnD-IN' key: voltage