zabbix_export: version: '5.4' date: '2021-11-21T21:48:39Z' groups: - uuid: 4918b88734c54bd094cff7585b5d71fc name: 'Templates/Network Devices' templates: - uuid: e197099025b5440388431a1b24d83079 template: Mikrotik-Partion-Table name: Mikrotik-Partion-Table description: | ## Overview Zabbix template for monitoring active Mikrotik partition for Zabbix 4.x Has been created in Zabbix 4.0, but exported from Zabbix 4.2 Needs to set up macroses: {$HISTORY} {$TRENDS} {$UPDATEINT} ## Author AlKosmos groups: - name: 'Templates/Network Devices' discovery_rules: - uuid: 35e7c8cbd9e74dfe9001ad9a12245e71 name: 'Mikrotik Partition Table' type: SNMP_AGENT snmp_oid: 'discovery[{#MKTPARTITIONNAME},1.3.6.1.4.1.14988.1.1.17.1.1.2]' key: mktPartitionTable.discovery delay: 6h item_prototypes: - uuid: 53535904503c4a61bd4a1012fe8b2032 name: 'mtxrPartitionActive.[{#MKTPARTITIONNAME}]' type: SNMP_AGENT snmp_oid: '1.3.6.1.4.1.14988.1.1.17.1.1.5.{#SNMPINDEX}' key: 'mtxrPartitionActive.[{#MKTPARTITIONNAME}]' delay: 1h history: '{$HISTORY}' trends: '{$TRENDS}' tags: - tag: Application value: Partitions trigger_prototypes: - uuid: 5e0e743a30cf4337bb2a21196de374d4 expression: '{$FIRSTPATFLAG:"{#MKTPARTITIONNAME}"} and last(/Mikrotik-Partion-Table/mtxrPartitionActive.[{#MKTPARTITIONNAME}])=0' name: 'Partition {#MKTPARTITIONNAME} is not active on {HOST.NAME}' url: 'http://{HOST.IP}' priority: AVERAGE description: 'Part0 is NOT ACTIVE on {HOST.NAME}! Backup partition is currently active! Please make partition part0 active and reboot device. Changes made to device may be lost.' - uuid: c6ce5d8dd1d240c2b50398cb8daddbb8 name: 'mtxrPartitionRunning.[{#MKTPARTITIONNAME}]' type: SNMP_AGENT snmp_oid: '1.3.6.1.4.1.14988.1.1.17.1.1.6.{#SNMPINDEX}' key: 'mtxrPartitionRunning.[{#MKTPARTITIONNAME}]' delay: 1h history: '{$HISTORY}' trends: '{$TRENDS}' tags: - tag: Application value: Partitions trigger_prototypes: - uuid: 378d427ce9ca4ea7acec4f5d9df61372 expression: '{$FIRSTPATFLAG:"{#MKTPARTITIONNAME}"} and last(/Mikrotik-Partion-Table/mtxrPartitionRunning.[{#MKTPARTITIONNAME}])=0' name: 'Partition {#MKTPARTITIONNAME} is not running on {HOST.NAME}' url: 'http://{HOST.IP}' priority: AVERAGE description: 'Part0 is NOT RUNNING on {HOST.NAME}! Device currently operating off backup partition! Please make partition part0 active and reboot device. Changes made to device may be lost.' - uuid: 063a3f639de54fa99bb6b32a53ed6064 name: 'mtxrPartitionSize.[{#MKTPARTITIONNAME}]' type: SNMP_AGENT snmp_oid: '1.3.6.1.4.1.14988.1.1.17.1.1.3.{#SNMPINDEX}' key: 'mtxrPartitionSize.[{#MKTPARTITIONNAME}]' delay: 1h history: '{$HISTORY}' trends: '{$TRENDS}' tags: - tag: Application value: Partitions - uuid: 9641f8644b994990ad5c11b67019a6b7 name: 'mtxrPartitionVersion.[{#MKTPARTITIONNAME}]' type: SNMP_AGENT snmp_oid: '1.3.6.1.4.1.14988.1.1.17.1.1.4.{#SNMPINDEX}' key: 'mtxrPartitionVersion.[{#MKTPARTITIONNAME}]' delay: 1h history: '{$HISTORY}' trends: '0' value_type: TEXT tags: - tag: Application value: Partitions macros: - macro: '{$FIRSTPATFLAG:part0}' value: '1' - macro: '{$FIRSTPATFLAG:part1}' value: '0' - macro: '{$FIRSTPATFLAG:part2}' value: '0'