zabbix_export: version: '6.0' date: '2021-11-21T21:28:07Z' groups: - uuid: 7df96b18c230490a9a0a9e2307226338 name: Templates templates: - uuid: 3ea3618b68eb44cf81b6c1ed1cc90a7d template: 'Mikrotik Script Execution' name: 'Mikrotik Script Execution' description: | ## Overview This template will discover any scripts created in the router which names starts with "Get" (can be customized in the template discovery filter) and will make them available as an item to be plotted in graphics or create triggers and alarms. ## Author Antonio Forster groups: - name: Templates discovery_rules: - uuid: 9693f599c31d499ba4172a94a55ab3d8 name: Scripts type: SNMP_AGENT snmp_oid: 'discovery[{#SNMPVALUE},1.3.6.1.4.1.14988.1.1.8]' key: MikScript delay: '30' filter: evaltype: AND conditions: - macro: '{#SNMPVALUE}' value: ^Get formulaid: A item_prototypes: - uuid: ccd0bb713349448883896637f32f716f name: 'Execution of {#SNMPVALUE}' type: SNMP_AGENT snmp_oid: '1.3.6.1.4.1.14988.1.1.18.{#SNMPINDEX}' key: 'ExecScript.[{#SNMPINDEX}]' delay: '300'