<?xml version="1.0" encoding="UTF-8"?>
<zabbix_export>
   <version>3.4</version>
   <date>2015-12-30T14:41:30Z</date>
   <groups>
      <group>
         <name>Templates/Network Devices</name>
      </group>
   </groups>
   <templates>
      <template>
         <template>Template Net Mikrotik SNMPv2</template>
         <name>Template Net Mikrotik SNMPv2</name>
         <description>Template Net Mikrotik version: 0.15
MIBs used:
HOST-RESOURCES-MIB
MIKROTIK-MIB
Known Issues:
description : Doesn't have ifHighSpeed filled. fixed in more recent versions
version : RotuerOS 6.28 or lower
device : description : Doesn't have any temperature sensors
version : RotuerOS 6.38.5
device : Mikrotik 941-2nD, Mikrotik 951G-2HnD</description>
         <groups>
            <group>
               <name>Templates/Network Devices</name>
            </group>
         </groups>
         <applications>
            <application>
               <name>CPU</name>
            </application>
            <application>
               <name>Memory</name>
            </application>
            <application>
               <name>Temperature</name>
            </application>
            <application>
               <name>Storage</name>
            </application>
            <application>
               <name>Inventory</name>
            </application>
         </applications>
         <items>
            <item>
               <name>Used memory</name>
               <type>4</type>
               <snmp_community>{$SNMP_COMMUNITY}</snmp_community>
               <snmp_oid>1.3.6.1.2.1.25.2.3.1.6.65536</snmp_oid>
               <key>vm.memory.used[hrStorageUsed.Memory]</key>
               <delay>3m</delay>
               <history>30d</history>
               <trends>365d</trends>
               <status>0</status>
               <value_type>3</value_type>
               <allowed_hosts/>
               <units>B</units>
               <snmpv3_contextname/>
               <snmpv3_securityname/>
               <snmpv3_securitylevel>0</snmpv3_securitylevel>
               <snmpv3_authprotocol>0</snmpv3_authprotocol>
               <snmpv3_authpassphrase/>
               <snmpv3_privprotocol>0</snmpv3_privprotocol>
               <snmpv3_privpassphrase/>
               <params/>
               <ipmi_sensor/>
               <authtype>0</authtype>
               <username/>
               <password/>
               <publickey/>
               <privatekey/>
               <port/>
               <description>MIB: HOST-RESOURCES-MIB
The amount of the storage represented by this entry that is allocated, in units of hrStorageAllocationUnits.</description>
               <inventory_link>0</inventory_link>
               <applications>
                  <application>
                     <name>Memory</name>
                  </application>
               </applications>
               <valuemap/>
               <logtimefmt/>
               <preprocessing>
                  <step>
                     <type>1</type>
                     <params>1024</params>
                  </step>
               </preprocessing>
               <jmx_endpoint/>
               <master_item/>
            </item>
            <item>
               <name>Total memory</name>
               <type>4</type>
               <snmp_community>{$SNMP_COMMUNITY}</snmp_community>
               <snmp_oid>1.3.6.1.2.1.25.2.3.1.5.65536</snmp_oid>
               <key>vm.memory.total[hrStorageSize.Memory]</key>
               <delay>3m</delay>
               <history>30d</history>
               <trends>365d</trends>
               <status>0</status>
               <value_type>3</value_type>
               <allowed_hosts/>
               <units>B</units>
               <snmpv3_contextname/>
               <snmpv3_securityname/>
               <snmpv3_securitylevel>0</snmpv3_securitylevel>
               <snmpv3_authprotocol>0</snmpv3_authprotocol>
               <snmpv3_authpassphrase/>
               <snmpv3_privprotocol>0</snmpv3_privprotocol>
               <snmpv3_privpassphrase/>
               <params/>
               <ipmi_sensor/>
               <authtype>0</authtype>
               <username/>
               <password/>
               <publickey/>
               <privatekey/>
               <port/>
               <description>MIB: HOST-RESOURCES-MIB
The size of the storage represented by this entry, in
units of hrStorageAllocationUnits. This object is
writable to allow remote configuration of the size of
the storage area in those cases where such an
operation makes sense and is possible on the
underlying system. For example, the amount of main
memory allocated to a buffer pool might be modified or
the amount of disk space allocated to virtual memory
might be modified.</description>
               <inventory_link>0</inventory_link>
               <applications>
                  <application>
                     <name>Memory</name>
                  </application>
               </applications>
               <valuemap/>
               <logtimefmt/>
               <preprocessing>
                  <step>
                     <type>1</type>
                     <params>1024</params>
                  </step>
               </preprocessing>
               <jmx_endpoint/>
               <master_item/>
            </item>
            <item>
               <name>Memory utilization</name>
               <type>15</type>
               <snmp_community/>
               <snmp_oid/>
               <key>vm.memory.pused[memoryUsedPercentage.Memory]</key>
               <delay>3m</delay>
               <history>30d</history>
               <trends>365d</trends>
               <status>0</status>
               <value_type>0</value_type>
               <allowed_hosts/>
               <units>%</units>
               <snmpv3_contextname/>
               <snmpv3_securityname/>
               <snmpv3_securitylevel>0</snmpv3_securitylevel>
               <snmpv3_authprotocol>0</snmpv3_authprotocol>
               <snmpv3_authpassphrase/>
               <snmpv3_privprotocol>0</snmpv3_privprotocol>
               <snmpv3_privpassphrase/>
               <params>(last(vm.memory.used[hrStorageUsed.Memory])/last(vm.memory.total[hrStorageSize.Memory]))*100</params>
               <ipmi_sensor/>
               <authtype>0</authtype>
               <username/>
               <password/>
               <publickey/>
               <privatekey/>
               <port/>
               <description>Memory utilization in %</description>
               <inventory_link>0</inventory_link>
               <applications>
                  <application>
                     <name>Memory</name>
                  </application>
               </applications>
               <valuemap/>
               <logtimefmt/>
               <preprocessing/>
               <jmx_endpoint/>
               <master_item/>
            </item>
            <item>
               <name>Device: Temperature</name>
               <type>4</type>
               <snmp_community>{$SNMP_COMMUNITY}</snmp_community>
               <snmp_oid>1.3.6.1.4.1.14988.1.1.3.10.0</snmp_oid>
               <key>sensor.temp.value[mtxrHlTemperature]</key>
               <delay>3m</delay>
               <history>30d</history>
               <trends>365d</trends>
               <status>0</status>
               <value_type>0</value_type>
               <allowed_hosts/>
               <units>°C</units>
               <snmpv3_contextname/>
               <snmpv3_securityname/>
               <snmpv3_securitylevel>0</snmpv3_securitylevel>
               <snmpv3_authprotocol>0</snmpv3_authprotocol>
               <snmpv3_authpassphrase/>
               <snmpv3_privprotocol>0</snmpv3_privprotocol>
               <snmpv3_privpassphrase/>
               <params/>
               <ipmi_sensor/>
               <authtype>0</authtype>
               <username/>
               <password/>
               <publickey/>
               <privatekey/>
               <port/>
               <description>MIB: MIKROTIK-MIB
(mtxrHlTemperature) Device temperature in Celsius (degrees C). Might be missing in entry models (RB750, RB450G..)
Reference: http://wiki.mikrotik.com/wiki/Manual:SNMP</description>
               <inventory_link>0</inventory_link>
               <applications>
                  <application>
                     <name>Temperature</name>
                  </application>
               </applications>
               <valuemap/>
               <logtimefmt/>
               <preprocessing>
                  <step>
                     <type>1</type>
                     <params>0.1</params>
                  </step>
               </preprocessing>
               <jmx_endpoint/>
               <master_item/>
            </item>
            <item>
               <name>Operating system</name>
               <type>4</type>
               <snmp_community>{$SNMP_COMMUNITY}</snmp_community>
               <snmp_oid>1.3.6.1.4.1.14988.1.1.4.4.0</snmp_oid>
               <key>system.sw.os</key>
               <delay>1h</delay>
               <history>2w</history>
               <trends>0d</trends>
               <status>0</status>
               <value_type>1</value_type>
               <allowed_hosts/>
               <units/>
               <snmpv3_contextname/>
               <snmpv3_securityname/>
               <snmpv3_securitylevel>0</snmpv3_securitylevel>
               <snmpv3_authprotocol>0</snmpv3_authprotocol>
               <snmpv3_authpassphrase/>
               <snmpv3_privprotocol>0</snmpv3_privprotocol>
               <snmpv3_privpassphrase/>
               <params/>
               <ipmi_sensor/>
               <authtype>0</authtype>
               <username/>
               <password/>
               <publickey/>
               <privatekey/>
               <port/>
               <description>MIB: MIKROTIK-MIB
Software version</description>
               <inventory_link>5</inventory_link>
               <applications>
                  <application>
                     <name>Inventory</name>
                  </application>
               </applications>
               <valuemap/>
               <logtimefmt/>
               <preprocessing/>
               <jmx_endpoint/>
               <master_item/>
            </item>
            <item>
               <name>Hardware model name</name>
               <type>4</type>
               <snmp_community>{$SNMP_COMMUNITY}</snmp_community>
               <snmp_oid>1.3.6.1.2.1.1.1.0</snmp_oid>
               <key>system.hw.model</key>
               <delay>1h</delay>
               <history>2w</history>
               <trends>0d</trends>
               <status>0</status>
               <value_type>1</value_type>
               <allowed_hosts/>
               <units/>
               <snmpv3_contextname/>
               <snmpv3_securityname/>
               <snmpv3_securitylevel>0</snmpv3_securitylevel>
               <snmpv3_authprotocol>0</snmpv3_authprotocol>
               <snmpv3_authpassphrase/>
               <snmpv3_privprotocol>0</snmpv3_privprotocol>
               <snmpv3_privpassphrase/>
               <params/>
               <ipmi_sensor/>
               <authtype>0</authtype>
               <username/>
               <password/>
               <publickey/>
               <privatekey/>
               <port/>
               <description/>
               <inventory_link>29</inventory_link>
               <applications>
                  <application>
                     <name>Inventory</name>
                  </application>
               </applications>
               <valuemap/>
               <logtimefmt/>
               <preprocessing/>
               <jmx_endpoint/>
               <master_item/>
            </item>
            <item>
               <name>Hardware serial number</name>
               <type>4</type>
               <snmp_community>{$SNMP_COMMUNITY}</snmp_community>
               <snmp_oid>1.3.6.1.4.1.14988.1.1.7.3.0</snmp_oid>
               <key>system.hw.serialnumber</key>
               <delay>1h</delay>
               <history>2w</history>
               <trends>0d</trends>
               <status>0</status>
               <value_type>1</value_type>
               <allowed_hosts/>
               <units/>
               <snmpv3_contextname/>
               <snmpv3_securityname/>
               <snmpv3_securitylevel>0</snmpv3_securitylevel>
               <snmpv3_authprotocol>0</snmpv3_authprotocol>
               <snmpv3_authpassphrase/>
               <snmpv3_privprotocol>0</snmpv3_privprotocol>
               <snmpv3_privpassphrase/>
               <params/>
               <ipmi_sensor/>
               <authtype>0</authtype>
               <username/>
               <password/>
               <publickey/>
               <privatekey/>
               <port/>
               <description>MIB: MIKROTIK-MIB
RouterBOARD serial number</description>
               <inventory_link>8</inventory_link>
               <applications>
                  <application>
                     <name>Inventory</name>
                  </application>
               </applications>
               <valuemap/>
               <logtimefmt/>
               <preprocessing/>
               <jmx_endpoint/>
               <master_item/>
            </item>
            <item>
               <name>Firmware version</name>
               <type>4</type>
               <snmp_community>{$SNMP_COMMUNITY}</snmp_community>
               <snmp_oid>1.3.6.1.4.1.14988.1.1.7.4.0</snmp_oid>
               <key>system.hw.firmware</key>
               <delay>1h</delay>
               <history>2w</history>
               <trends>0d</trends>
               <status>0</status>
               <value_type>1</value_type>
               <allowed_hosts/>
               <units/>
               <snmpv3_contextname/>
               <snmpv3_securityname/>
               <snmpv3_securitylevel>0</snmpv3_securitylevel>
               <snmpv3_authprotocol>0</snmpv3_authprotocol>
               <snmpv3_authpassphrase/>
               <snmpv3_privprotocol>0</snmpv3_privprotocol>
               <snmpv3_privpassphrase/>
               <params/>
               <ipmi_sensor/>
               <authtype>0</authtype>
               <username/>
               <password/>
               <publickey/>
               <privatekey/>
               <port/>
               <description>MIB: MIKROTIK-MIB
Current firmware version</description>
               <inventory_link>0</inventory_link>
               <applications>
                  <application>
                     <name>Inventory</name>
                  </application>
               </applications>
               <valuemap/>
               <logtimefmt/>
               <preprocessing/>
               <jmx_endpoint/>
               <master_item/>
            </item>
         </items>
         <discovery_rules>
            <discovery_rule>
               <name>CPU Discovery</name>
               <type>4</type>
               <snmp_community>{$SNMP_COMMUNITY}</snmp_community>
               <snmp_oid>discovery[{#SNMPVALUE},1.3.6.1.2.1.25.3.3.1.1]</snmp_oid>
               <key>hrProcessorLoad.discovery</key>
               <delay>1h</delay>
               <status>0</status>
               <allowed_hosts/>
               <snmpv3_contextname/>
               <snmpv3_securityname/>
               <snmpv3_securitylevel>0</snmpv3_securitylevel>
               <snmpv3_authprotocol>0</snmpv3_authprotocol>
               <snmpv3_authpassphrase/>
               <snmpv3_privprotocol>0</snmpv3_privprotocol>
               <snmpv3_privpassphrase/>
               <params/>
               <ipmi_sensor/>
               <authtype>0</authtype>
               <username/>
               <password/>
               <publickey/>
               <privatekey/>
               <port/>
               <filter>
                  <evaltype>0</evaltype>
                  <formula/>
                  <conditions/>
               </filter>
               <lifetime>30d</lifetime>
               <description>HOST-RESOURCES-MIB::hrProcessorTable discovery</description>
               <item_prototypes>
                  <item_prototype>
                     <name>#{#SNMPINDEX}: CPU utilization</name>
                     <type>4</type>
                     <snmp_community>{$SNMP_COMMUNITY}</snmp_community>
                     <snmp_oid>1.3.6.1.2.1.25.3.3.1.2.{#SNMPINDEX}</snmp_oid>
                     <key>system.cpu.util[hrProcessorLoad.{#SNMPINDEX}]</key>
                     <delay>3m</delay>
                     <history>30d</history>
                     <trends>365d</trends>
                     <status>0</status>
                     <value_type>0</value_type>
                     <allowed_hosts/>
                     <units>%</units>
                     <snmpv3_contextname/>
                     <snmpv3_securityname/>
                     <snmpv3_securitylevel>0</snmpv3_securitylevel>
                     <snmpv3_authprotocol>0</snmpv3_authprotocol>
                     <snmpv3_authpassphrase/>
                     <snmpv3_privprotocol>0</snmpv3_privprotocol>
                     <snmpv3_privpassphrase/>
                     <params/>
                     <ipmi_sensor/>
                     <authtype>0</authtype>
                     <username/>
                     <password/>
                     <publickey/>
                     <privatekey/>
                     <port/>
                     <description>MIB: HOST-RESOURCES-MIB
The average, over the last minute, of the percentage of time that this processor was not idle.Implementations may approximate this one minute smoothing period if necessary.</description>
                     <inventory_link>0</inventory_link>
                     <applications>
                        <application>
                           <name>CPU</name>
                        </application>
                     </applications>
                     <valuemap/>
                     <logtimefmt/>
                     <preprocessing/>
                     <jmx_endpoint/>
                     <application_prototypes/>
                     <master_item_prototype/>
                  </item_prototype>
               </item_prototypes>
               <trigger_prototypes>
                  <trigger_prototype>
                     <expression>{Template Net Mikrotik SNMPv2:system.cpu.util[hrProcessorLoad.{#SNMPINDEX}].avg(5m)}&gt;{$CPU_UTIL_MAX}</expression>
                     <recovery_mode>0</recovery_mode>
                     <recovery_expression/>
                     <name>#{#SNMPINDEX}: High CPU utilization</name>
                     <correlation_mode>0</correlation_mode>
                     <correlation_tag/>
                     <url/>
                     <status>0</status>
                     <priority>3</priority>
                     <description>Last value: {ITEM.LASTVALUE1}.</description>
                     <type>0</type>
                     <manual_close>0</manual_close>
                     <dependencies/>
                     <tags/>
                  </trigger_prototype>
               </trigger_prototypes>
               <graph_prototypes>
                  <graph_prototype>
                     <name>#{#SNMPINDEX}: CPU utilization</name>
                     <width>900</width>
                     <height>200</height>
                     <yaxismin>0</yaxismin>
                     <yaxismax>100</yaxismax>
                     <show_work_period>1</show_work_period>
                     <show_triggers>1</show_triggers>
                     <type>0</type>
                     <show_legend>1</show_legend>
                     <show_3d>0</show_3d>
                     <percent_left>0.0000</percent_left>
                     <percent_right>0.0000</percent_right>
                     <ymin_type_1>1</ymin_type_1>
                     <ymax_type_1>1</ymax_type_1>
                     <ymin_item_1>0</ymin_item_1>
                     <ymax_item_1>0</ymax_item_1>
                     <graph_items>
                        <graph_item>
                           <sortorder>0</sortorder>
                           <drawtype>5</drawtype>
                           <color>1A7C11</color>
                           <yaxisside>0</yaxisside>
                           <calc_fnc>2</calc_fnc>
                           <type>0</type>
                           <item>
                              <host>Template Net Mikrotik SNMPv2</host>
                              <key>system.cpu.util[hrProcessorLoad.{#SNMPINDEX}]</key>
                           </item>
                        </graph_item>
                     </graph_items>
                  </graph_prototype>
               </graph_prototypes>
               <host_prototypes/>
               <jmx_endpoint/>
            </discovery_rule>
            <discovery_rule>
               <name>Temperature Discovery CPU</name>
               <type>4</type>
               <snmp_community>{$SNMP_COMMUNITY}</snmp_community>
               <snmp_oid>discovery[{#SNMPVALUE},1.3.6.1.4.1.14988.1.1.3.11]</snmp_oid>
               <key>mtxrHlProcessorTemperature.discovery</key>
               <delay>1h</delay>
               <status>0</status>
               <allowed_hosts/>
               <snmpv3_contextname/>
               <snmpv3_securityname/>
               <snmpv3_securitylevel>0</snmpv3_securitylevel>
               <snmpv3_authprotocol>0</snmpv3_authprotocol>
               <snmpv3_authpassphrase/>
               <snmpv3_privprotocol>0</snmpv3_privprotocol>
               <snmpv3_privpassphrase/>
               <params/>
               <ipmi_sensor/>
               <authtype>0</authtype>
               <username/>
               <password/>
               <publickey/>
               <privatekey/>
               <port/>
               <filter>
                  <evaltype>0</evaltype>
                  <formula/>
                  <conditions/>
               </filter>
               <lifetime>30d</lifetime>
               <description>MIKROTIK-MIB::mtxrHlProcessorTemperature
Since temperature of CPU is not available on all Mikrotik hardware, this is done to avoid unsupported items.</description>
               <item_prototypes>
                  <item_prototype>
                     <name>CPU: Temperature</name>
                     <type>4</type>
                     <snmp_community>{$SNMP_COMMUNITY}</snmp_community>
                     <snmp_oid>1.3.6.1.4.1.14988.1.1.3.11.{#SNMPINDEX}</snmp_oid>
                     <key>sensor.temp.value[mtxrHlProcessorTemperature.{#SNMPINDEX}]</key>
                     <delay>3m</delay>
                     <history>30d</history>
                     <trends>365d</trends>
                     <status>0</status>
                     <value_type>0</value_type>
                     <allowed_hosts/>
                     <units>°C</units>
                     <snmpv3_contextname/>
                     <snmpv3_securityname/>
                     <snmpv3_securitylevel>0</snmpv3_securitylevel>
                     <snmpv3_authprotocol>0</snmpv3_authprotocol>
                     <snmpv3_authpassphrase/>
                     <snmpv3_privprotocol>0</snmpv3_privprotocol>
                     <snmpv3_privpassphrase/>
                     <params/>
                     <ipmi_sensor/>
                     <authtype>0</authtype>
                     <username/>
                     <password/>
                     <publickey/>
                     <privatekey/>
                     <port/>
                     <description>MIB: MIKROTIK-MIB
(mtxrHlProcessorTemperature) Processor temperature in Celsius (degrees C). Might be missing in entry models (RB750, RB450G..)</description>
                     <inventory_link>0</inventory_link>
                     <applications>
                        <application>
                           <name>Temperature</name>
                        </application>
                     </applications>
                     <valuemap/>
                     <logtimefmt/>
                     <preprocessing>
                        <step>
                           <type>1</type>
                           <params>0.1</params>
                        </step>
                     </preprocessing>
                     <jmx_endpoint/>
                     <application_prototypes/>
                     <master_item_prototype/>
                  </item_prototype>
               </item_prototypes>
               <trigger_prototypes>
                  <trigger_prototype>
                     <expression>{Template Net Mikrotik SNMPv2:sensor.temp.value[mtxrHlProcessorTemperature.{#SNMPINDEX}].avg(5m)}&gt;{$TEMP_WARN:"CPU"}</expression>
                     <recovery_mode>1</recovery_mode>
                     <recovery_expression>{Template Net Mikrotik SNMPv2:sensor.temp.value[mtxrHlProcessorTemperature.{#SNMPINDEX}].max(5m)}&lt;{$TEMP_WARN:"CPU"}-3</recovery_expression>
                     <name>CPU: Temperature is above warning threshold: &gt;{$TEMP_WARN:"CPU"}</name>
                     <correlation_mode>0</correlation_mode>
                     <correlation_tag/>
                     <url/>
                     <status>0</status>
                     <priority>2</priority>
                     <description>Last value: {ITEM.LASTVALUE1}.
This trigger uses temperature sensor values as well as temperature sensor status if available</description>
                     <type>0</type>
                     <manual_close>0</manual_close>
                     <dependencies>
                        <dependency>
                           <name>CPU: Temperature is above critical threshold: &gt;{$TEMP_CRIT:"CPU"}</name>
                           <expression>{Template Net Mikrotik SNMPv2:sensor.temp.value[mtxrHlProcessorTemperature.{#SNMPINDEX}].avg(5m)}&gt;{$TEMP_CRIT:"CPU"}</expression>
                           <recovery_expression>{Template Net Mikrotik SNMPv2:sensor.temp.value[mtxrHlProcessorTemperature.{#SNMPINDEX}].max(5m)}&lt;{$TEMP_CRIT:"CPU"}-3</recovery_expression>
                        </dependency>
                     </dependencies>
                     <tags/>
                  </trigger_prototype>
                  <trigger_prototype>
                     <expression>{Template Net Mikrotik SNMPv2:sensor.temp.value[mtxrHlProcessorTemperature.{#SNMPINDEX}].avg(5m)}&gt;{$TEMP_CRIT:"CPU"}</expression>
                     <recovery_mode>1</recovery_mode>
                     <recovery_expression>{Template Net Mikrotik SNMPv2:sensor.temp.value[mtxrHlProcessorTemperature.{#SNMPINDEX}].max(5m)}&lt;{$TEMP_CRIT:"CPU"}-3</recovery_expression>
                     <name>CPU: Temperature is above critical threshold: &gt;{$TEMP_CRIT:"CPU"}</name>
                     <correlation_mode>0</correlation_mode>
                     <correlation_tag/>
                     <url/>
                     <status>0</status>
                     <priority>4</priority>
                     <description>Last value: {ITEM.LASTVALUE1}.
This trigger uses temperature sensor values as well as temperature sensor status if available</description>
                     <type>0</type>
                     <manual_close>0</manual_close>
                     <dependencies/>
                     <tags/>
                  </trigger_prototype>
                  <trigger_prototype>
                     <expression>{Template Net Mikrotik SNMPv2:sensor.temp.value[mtxrHlProcessorTemperature.{#SNMPINDEX}].avg(5m)}&lt;{$TEMP_CRIT_LOW:"CPU"}</expression>
                     <recovery_mode>1</recovery_mode>
                     <recovery_expression>{Template Net Mikrotik SNMPv2:sensor.temp.value[mtxrHlProcessorTemperature.{#SNMPINDEX}].min(5m)}&gt;{$TEMP_CRIT_LOW:"CPU"}+3</recovery_expression>
                     <name>CPU: Temperature is too low: &lt;{$TEMP_CRIT_LOW:"CPU"}</name>
                     <correlation_mode>0</correlation_mode>
                     <correlation_tag/>
                     <url/>
                     <status>0</status>
                     <priority>3</priority>
                     <description>Last value: {ITEM.LASTVALUE1}.</description>
                     <type>0</type>
                     <manual_close>0</manual_close>
                     <dependencies/>
                     <tags/>
                  </trigger_prototype>
               </trigger_prototypes>
               <graph_prototypes/>
               <host_prototypes/>
               <jmx_endpoint/>
            </discovery_rule>
            <discovery_rule>
               <name>Storage Discovery</name>
               <type>4</type>
               <snmp_community>{$SNMP_COMMUNITY}</snmp_community>
               <snmp_oid>discovery[{#SNMPVALUE},1.3.6.1.2.1.25.2.3.1.3,{#ALLOC_UNITS},1.3.6.1.2.1.25.2.3.1.4,{#STORAGE_TYPE},1.3.6.1.2.1.25.2.3.1.2]</snmp_oid>
               <key>storage.discovery</key>
               <delay>1h</delay>
               <status>0</status>
               <allowed_hosts/>
               <snmpv3_contextname/>
               <snmpv3_securityname/>
               <snmpv3_securitylevel>0</snmpv3_securitylevel>
               <snmpv3_authprotocol>0</snmpv3_authprotocol>
               <snmpv3_authpassphrase/>
               <snmpv3_privprotocol>0</snmpv3_privprotocol>
               <snmpv3_privpassphrase/>
               <params/>
               <ipmi_sensor/>
               <authtype>0</authtype>
               <username/>
               <password/>
               <publickey/>
               <privatekey/>
               <port/>
               <filter>
                  <evaltype>2</evaltype>
                  <formula/>
                  <conditions>
                     <condition>
                        <macro>{#STORAGE_TYPE}</macro>
                        <value>.+4$</value>
                        <operator>8</operator>
                        <formulaid>B</formulaid>
                     </condition>
                     <condition>
                        <macro>{#STORAGE_TYPE}</macro>
                        <value>.+hrStorageFixedDisk</value>
                        <operator>8</operator>
                        <formulaid>A</formulaid>
                     </condition>
                  </conditions>
               </filter>
               <lifetime>30d</lifetime>
               <description>HOST-RESOURCES-MIB::hrStorage discovery with storage filter</description>
               <item_prototypes>
                  <item_prototype>
                     <name>Disk-{#SNMPINDEX}: Used space</name>
                     <type>4</type>
                     <snmp_community>{$SNMP_COMMUNITY}</snmp_community>
                     <snmp_oid>1.3.6.1.2.1.25.2.3.1.6.{#SNMPINDEX}</snmp_oid>
                     <key>vfs.fs.used[hrStorageSize.{#SNMPINDEX}]</key>
                     <delay>5m</delay>
                     <history>30d</history>
                     <trends>365d</trends>
                     <status>0</status>
                     <value_type>3</value_type>
                     <allowed_hosts/>
                     <units>B</units>
                     <snmpv3_contextname/>
                     <snmpv3_securityname/>
                     <snmpv3_securitylevel>0</snmpv3_securitylevel>
                     <snmpv3_authprotocol>0</snmpv3_authprotocol>
                     <snmpv3_authpassphrase/>
                     <snmpv3_privprotocol>0</snmpv3_privprotocol>
                     <snmpv3_privpassphrase/>
                     <params/>
                     <ipmi_sensor/>
                     <authtype>0</authtype>
                     <username/>
                     <password/>
                     <publickey/>
                     <privatekey/>
                     <port/>
                     <description>MIB: HOST-RESOURCES-MIB
The amount of the storage represented by this entry that is allocated, in units of hrStorageAllocationUnits.</description>
                     <inventory_link>0</inventory_link>
                     <applications>
                        <application>
                           <name>Storage</name>
                        </application>
                     </applications>
                     <valuemap/>
                     <logtimefmt/>
                     <preprocessing>
                        <step>
                           <type>1</type>
                           <params>1024</params>
                        </step>
                     </preprocessing>
                     <jmx_endpoint/>
                     <application_prototypes/>
                     <master_item_prototype/>
                  </item_prototype>
                  <item_prototype>
                     <name>Disk-{#SNMPINDEX}: Total space</name>
                     <type>4</type>
                     <snmp_community>{$SNMP_COMMUNITY}</snmp_community>
                     <snmp_oid>1.3.6.1.2.1.25.2.3.1.5.{#SNMPINDEX}</snmp_oid>
                     <key>vfs.fs.total[hrStorageSize.{#SNMPINDEX}]</key>
                     <delay>5m</delay>
                     <history>30d</history>
                     <trends>365d</trends>
                     <status>0</status>
                     <value_type>3</value_type>
                     <allowed_hosts/>
                     <units>B</units>
                     <snmpv3_contextname/>
                     <snmpv3_securityname/>
                     <snmpv3_securitylevel>0</snmpv3_securitylevel>
                     <snmpv3_authprotocol>0</snmpv3_authprotocol>
                     <snmpv3_authpassphrase/>
                     <snmpv3_privprotocol>0</snmpv3_privprotocol>
                     <snmpv3_privpassphrase/>
                     <params/>
                     <ipmi_sensor/>
                     <authtype>0</authtype>
                     <username/>
                     <password/>
                     <publickey/>
                     <privatekey/>
                     <port/>
                     <description>MIB: HOST-RESOURCES-MIB
The size of the storage represented by this entry, in
units of hrStorageAllocationUnits. This object is
writable to allow remote configuration of the size of
the storage area in those cases where such an
operation makes sense and is possible on the
underlying system. For example, the amount of main
memory allocated to a buffer pool might be modified or
the amount of disk space allocated to virtual memory
might be modified.</description>
                     <inventory_link>0</inventory_link>
                     <applications>
                        <application>
                           <name>Storage</name>
                        </application>
                     </applications>
                     <valuemap/>
                     <logtimefmt/>
                     <preprocessing>
                        <step>
                           <type>1</type>
                           <params>1024</params>
                        </step>
                     </preprocessing>
                     <jmx_endpoint/>
                     <application_prototypes/>
                     <master_item_prototype/>
                  </item_prototype>
                  <item_prototype>
                     <name>Disk-{#SNMPINDEX}: Storage utilization</name>
                     <type>15</type>
                     <snmp_community/>
                     <snmp_oid/>
                     <key>vfs.fs.pused[hrStorageSize.{#SNMPINDEX}]</key>
                     <delay>5m</delay>
                     <history>30d</history>
                     <trends>365d</trends>
                     <status>0</status>
                     <value_type>0</value_type>
                     <allowed_hosts/>
                     <units>%</units>
                     <snmpv3_contextname/>
                     <snmpv3_securityname/>
                     <snmpv3_securitylevel>0</snmpv3_securitylevel>
                     <snmpv3_authprotocol>0</snmpv3_authprotocol>
                     <snmpv3_authpassphrase/>
                     <snmpv3_privprotocol>0</snmpv3_privprotocol>
                     <snmpv3_privpassphrase/>
                     <params>(last(vfs.fs.used[hrStorageSize.{#SNMPINDEX}])/last(vfs.fs.total[hrStorageSize.{#SNMPINDEX}]))*100</params>
                     <ipmi_sensor/>
                     <authtype>0</authtype>
                     <username/>
                     <password/>
                     <publickey/>
                     <privatekey/>
                     <port/>
                     <description>Storage utilization in % for Disk-{#SNMPINDEX}</description>
                     <inventory_link>0</inventory_link>
                     <applications>
                        <application>
                           <name>Storage</name>
                        </application>
                     </applications>
                     <valuemap/>
                     <logtimefmt/>
                     <preprocessing/>
                     <jmx_endpoint/>
                     <application_prototypes/>
                     <master_item_prototype/>
                  </item_prototype>
               </item_prototypes>
               <trigger_prototypes>
                  <trigger_prototype>
                     <expression>{Template Net Mikrotik SNMPv2:vfs.fs.pused[hrStorageSize.{#SNMPINDEX}].avg(5m)}&gt;{$STORAGE_UTIL_CRIT}</expression>
                     <recovery_mode>0</recovery_mode>
                     <recovery_expression/>
                     <name>Disk-{#SNMPINDEX}: Disk space is critically low</name>
                     <correlation_mode>0</correlation_mode>
                     <correlation_tag/>
                     <url/>
                     <status>0</status>
                     <priority>3</priority>
                     <description>Last value: {ITEM.LASTVALUE1}.</description>
                     <type>0</type>
                     <manual_close>0</manual_close>
                     <dependencies/>
                     <tags/>
                  </trigger_prototype>
                  <trigger_prototype>
                     <expression>{Template Net Mikrotik SNMPv2:vfs.fs.pused[hrStorageSize.{#SNMPINDEX}].avg(5m)}&gt;{$STORAGE_UTIL_WARN}</expression>
                     <recovery_mode>0</recovery_mode>
                     <recovery_expression/>
                     <name>Disk-{#SNMPINDEX}: Disk space is low</name>
                     <correlation_mode>0</correlation_mode>
                     <correlation_tag/>
                     <url/>
                     <status>0</status>
                     <priority>2</priority>
                     <description>Last value: {ITEM.LASTVALUE1}.</description>
                     <type>0</type>
                     <manual_close>0</manual_close>
                     <dependencies>
                        <dependency>
                           <name>Disk-{#SNMPINDEX}: Disk space is critically low</name>
                           <expression>{Template Net Mikrotik SNMPv2:vfs.fs.pused[hrStorageSize.{#SNMPINDEX}].avg(5m)}&gt;{$STORAGE_UTIL_CRIT}</expression>
                           <recovery_expression/>
                        </dependency>
                     </dependencies>
                     <tags/>
                  </trigger_prototype>
               </trigger_prototypes>
               <graph_prototypes/>
               <host_prototypes/>
               <jmx_endpoint/>
            </discovery_rule>
         </discovery_rules>
         <httptests/>
         <macros>
            <macro>
               <macro>{$TEMP_CRIT:"CPU"}</macro>
               <value>75</value>
            </macro>
            <macro>
               <macro>{$TEMP_WARN:"CPU"}</macro>
               <value>70</value>
            </macro>
            <macro>
               <macro>{$CPU_UTIL_MAX}</macro>
               <value>90</value>
            </macro>
            <macro>
               <macro>{$MEMORY_UTIL_MAX}</macro>
               <value>90</value>
            </macro>
            <macro>
               <macro>{$TEMP_CRIT}</macro>
               <value>60</value>
            </macro>
            <macro>
               <macro>{$TEMP_WARN}</macro>
               <value>50</value>
            </macro>
            <macro>
               <macro>{$TEMP_CRIT_LOW}</macro>
               <value>5</value>
            </macro>
            <macro>
               <macro>{$STORAGE_UTIL_CRIT}</macro>
               <value>90</value>
            </macro>
            <macro>
               <macro>{$STORAGE_UTIL_WARN}</macro>
               <value>80</value>
            </macro>
         </macros>
         <templates>
            <template>
               <name>Template Module Interfaces SNMPv2</name>
            </template>
            <template>
               <name>Template Module Generic SNMPv2</name>
            </template>
         </templates>
         <screens/>
      </template>
   </templates>
   <graphs>
      <graph>
         <name>Memory utilization</name>
         <width>900</width>
         <height>200</height>
         <yaxismin>0</yaxismin>
         <yaxismax>100</yaxismax>
         <show_work_period>1</show_work_period>
         <show_triggers>1</show_triggers>
         <type>0</type>
         <show_legend>1</show_legend>
         <show_3d>0</show_3d>
         <percent_left>0.0000</percent_left>
         <percent_right>0.0000</percent_right>
         <ymin_type_1>1</ymin_type_1>
         <ymax_type_1>1</ymax_type_1>
         <ymin_item_1>0</ymin_item_1>
         <ymax_item_1>0</ymax_item_1>
         <graph_items>
            <graph_item>
               <sortorder>0</sortorder>
               <drawtype>5</drawtype>
               <color>1A7C11</color>
               <yaxisside>0</yaxisside>
               <calc_fnc>2</calc_fnc>
               <type>0</type>
               <item>
                  <host>Template Net Mikrotik SNMPv2</host>
                  <key>vm.memory.pused[memoryUsedPercentage.Memory]</key>
               </item>
            </graph_item>
         </graph_items>
      </graph>
   </graphs>
   <triggers>
      <trigger>
         <expression>{Template Net Mikrotik SNMPv2:vm.memory.pused[memoryUsedPercentage.Memory].avg(5m)}&gt;{$MEMORY_UTIL_MAX}</expression>
         <recovery_mode>0</recovery_mode>
         <recovery_expression/>
         <name>High memory utilization</name>
         <correlation_mode>0</correlation_mode>
         <correlation_tag/>
         <url/>
         <status>0</status>
         <priority>3</priority>
         <description>Last value: {ITEM.LASTVALUE1}.</description>
         <type>0</type>
         <manual_close>0</manual_close>
         <dependencies/>
         <tags/>
      </trigger>
      <trigger>
         <expression>{Template Net Mikrotik SNMPv2:sensor.temp.value[mtxrHlTemperature].avg(5m)}&gt;{$TEMP_WARN:"Device"}</expression>
         <recovery_mode>1</recovery_mode>
         <recovery_expression>{Template Net Mikrotik SNMPv2:sensor.temp.value[mtxrHlTemperature].max(5m)}&lt;{$TEMP_WARN:"Device"}-3</recovery_expression>
         <name>Device: Temperature is above warning threshold: &gt;{$TEMP_WARN:"Device"}</name>
         <correlation_mode>0</correlation_mode>
         <correlation_tag/>
         <url/>
         <status>0</status>
         <priority>2</priority>
         <description>Last value: {ITEM.LASTVALUE1}.
This trigger uses temperature sensor values as well as temperature sensor status if available</description>
         <type>0</type>
         <manual_close>0</manual_close>
         <dependencies>
            <dependency>
               <name>Device: Temperature is above critical threshold: &gt;{$TEMP_CRIT:"Device"}</name>
               <expression>{Template Net Mikrotik SNMPv2:sensor.temp.value[mtxrHlTemperature].avg(5m)}&gt;{$TEMP_CRIT:"Device"}</expression>
               <recovery_expression>{Template Net Mikrotik SNMPv2:sensor.temp.value[mtxrHlTemperature].max(5m)}&lt;{$TEMP_CRIT:"Device"}-3</recovery_expression>
            </dependency>
         </dependencies>
         <tags/>
      </trigger>
      <trigger>
         <expression>{Template Net Mikrotik SNMPv2:sensor.temp.value[mtxrHlTemperature].avg(5m)}&gt;{$TEMP_CRIT:"Device"}</expression>
         <recovery_mode>1</recovery_mode>
         <recovery_expression>{Template Net Mikrotik SNMPv2:sensor.temp.value[mtxrHlTemperature].max(5m)}&lt;{$TEMP_CRIT:"Device"}-3</recovery_expression>
         <name>Device: Temperature is above critical threshold: &gt;{$TEMP_CRIT:"Device"}</name>
         <correlation_mode>0</correlation_mode>
         <correlation_tag/>
         <url/>
         <status>0</status>
         <priority>4</priority>
         <description>Last value: {ITEM.LASTVALUE1}.
This trigger uses temperature sensor values as well as temperature sensor status if available</description>
         <type>0</type>
         <manual_close>0</manual_close>
         <dependencies/>
         <tags/>
      </trigger>
      <trigger>
         <expression>{Template Net Mikrotik SNMPv2:sensor.temp.value[mtxrHlTemperature].avg(5m)}&lt;{$TEMP_CRIT_LOW:"Device"}</expression>
         <recovery_mode>1</recovery_mode>
         <recovery_expression>{Template Net Mikrotik SNMPv2:sensor.temp.value[mtxrHlTemperature].min(5m)}&gt;{$TEMP_CRIT_LOW:"Device"}+3</recovery_expression>
         <name>Device: Temperature is too low: &lt;{$TEMP_CRIT_LOW:"Device"}</name>
         <correlation_mode>0</correlation_mode>
         <correlation_tag/>
         <url/>
         <status>0</status>
         <priority>3</priority>
         <description>Last value: {ITEM.LASTVALUE1}.</description>
         <type>0</type>
         <manual_close>0</manual_close>
         <dependencies/>
         <tags/>
      </trigger>
      <trigger>
         <expression>{Template Net Mikrotik SNMPv2:system.hw.serialnumber.diff()}=1 and {Template Net Mikrotik SNMPv2:system.hw.serialnumber.strlen()}&gt;0</expression>
         <recovery_mode>2</recovery_mode>
         <recovery_expression/>
         <name>Device has been replaced (new serial number received)</name>
         <correlation_mode>0</correlation_mode>
         <correlation_tag/>
         <url/>
         <status>0</status>
         <priority>1</priority>
         <description>Last value: {ITEM.LASTVALUE1}.
Device serial number has changed. Ack to close</description>
         <type>0</type>
         <manual_close>1</manual_close>
         <dependencies/>
         <tags/>
      </trigger>
      <trigger>
         <expression>{Template Net Mikrotik SNMPv2:system.hw.firmware.diff()}=1 and {Template Net Mikrotik SNMPv2:system.hw.firmware.strlen()}&gt;0</expression>
         <recovery_mode>2</recovery_mode>
         <recovery_expression/>
         <name>Firmware has changed</name>
         <correlation_mode>0</correlation_mode>
         <correlation_tag/>
         <url/>
         <status>0</status>
         <priority>1</priority>
         <description>Last value: {ITEM.LASTVALUE1}.
Firmware version has changed. Ack to close</description>
         <type>0</type>
         <manual_close>1</manual_close>
         <dependencies/>
         <tags/>
      </trigger>
   </triggers>
   <value_maps/>
</zabbix_export>
