<?xml version="1.0" encoding="UTF-8"?>
<zabbix_export>
    <version>5.0</version>
    <date>2021-03-22T00:10:23Z</date>
    <groups>
        <group>
            <name>Templates</name>
        </group>
    </groups>
    <templates>
        <template>
            <template>Template Synology DiskStation 2021</template>
            <name>Template Synology DiskStation 2021</name>
            <templates>
                <template>
                    <name>Template Module ICMP Ping</name>
                </template>
            </templates>
            <groups>
                <group>
                    <name>Templates</name>
                </group>
            </groups>
            <applications>
                <application>
                    <name>CPU</name>
                </application>
                <application>
                    <name>Disk</name>
                </application>
                <application>
                    <name>Memory</name>
                </application>
                <application>
                    <name>Network</name>
                </application>
                <application>
                    <name>Synology Disk</name>
                </application>
                <application>
                    <name>Synology Disk SMART</name>
                </application>
                <application>
                    <name>Synology iSCSI LUN</name>
                </application>
                <application>
                    <name>Synology RAID</name>
                </application>
                <application>
                    <name>Synology Services</name>
                </application>
                <application>
                    <name>Synology Spaceio</name>
                </application>
                <application>
                    <name>Synology Storageio</name>
                </application>
                <application>
                    <name>Synology System</name>
                </application>
                <application>
                    <name>Synology UPS</name>
                </application>
                <application>
                    <name>System Health</name>
                </application>
                <application>
                    <name>System Information</name>
                </application>
            </applications>
            <items>
                <item>
                    <name>CPU Fan Status</name>
                    <type>SNMP_AGENT</type>
                    <snmp_oid>.1.3.6.1.4.1.6574.1.4.2.0</snmp_oid>
                    <key>synoSystem.cpuFanStatus</key>
                    <description>Returns error if CPU fan fails.</description>
                    <applications>
                        <application>
                            <name>CPU</name>
                        </application>
                        <application>
                            <name>Synology System</name>
                        </application>
                        <application>
                            <name>System Health</name>
                        </application>
                    </applications>
                    <valuemap>
                        <name>SYNOLOGY-SYSTEM-MIB::systemStatus</name>
                    </valuemap>
                    <triggers>
                        <trigger>
                            <expression>{last()}&lt;&gt;1</expression>
                            <name>CPU Fan CRITICAL on {HOST.NAME}</name>
                            <priority>HIGH</priority>
                        </trigger>
                    </triggers>
                </item>
                <item>
                    <name>Load Avg 1 min</name>
                    <type>SNMP_AGENT</type>
                    <snmp_oid>.1.3.6.1.4.1.2021.10.1.5.1</snmp_oid>
                    <key>synoSystem.laLoadInt.1</key>
                    <value_type>FLOAT</value_type>
                    <description>1 minute load.</description>
                    <applications>
                        <application>
                            <name>CPU</name>
                        </application>
                        <application>
                            <name>Synology System</name>
                        </application>
                        <application>
                            <name>System Health</name>
                        </application>
                    </applications>
                    <preprocessing>
                        <step>
                            <type>MULTIPLIER</type>
                            <params>.01</params>
                        </step>
                    </preprocessing>
                </item>
                <item>
                    <name>Load Avg 5 min</name>
                    <type>SNMP_AGENT</type>
                    <snmp_oid>.1.3.6.1.4.1.2021.10.1.5.2</snmp_oid>
                    <key>synoSystem.laLoadInt.2</key>
                    <value_type>FLOAT</value_type>
                    <description>5 minute load.</description>
                    <applications>
                        <application>
                            <name>CPU</name>
                        </application>
                        <application>
                            <name>Synology System</name>
                        </application>
                        <application>
                            <name>System Health</name>
                        </application>
                    </applications>
                    <preprocessing>
                        <step>
                            <type>MULTIPLIER</type>
                            <params>.01</params>
                        </step>
                    </preprocessing>
                </item>
                <item>
                    <name>Load Avg 15 min</name>
                    <type>SNMP_AGENT</type>
                    <snmp_oid>.1.3.6.1.4.1.2021.10.1.5.3</snmp_oid>
                    <key>synoSystem.laLoadInt.3</key>
                    <value_type>FLOAT</value_type>
                    <description>15 minute load.</description>
                    <applications>
                        <application>
                            <name>CPU</name>
                        </application>
                        <application>
                            <name>Synology System</name>
                        </application>
                        <application>
                            <name>System Health</name>
                        </application>
                    </applications>
                    <preprocessing>
                        <step>
                            <type>MULTIPLIER</type>
                            <params>.01</params>
                        </step>
                    </preprocessing>
                </item>
                <item>
                    <name>Model Name</name>
                    <type>SNMP_AGENT</type>
                    <snmp_oid>.1.3.6.1.4.1.6574.1.5.1.0</snmp_oid>
                    <key>synoSystem.modelName</key>
                    <delay>1h</delay>
                    <trends>0</trends>
                    <value_type>TEXT</value_type>
                    <description>Model name of this NAS.</description>
                    <inventory_link>MODEL</inventory_link>
                    <applications>
                        <application>
                            <name>Synology System</name>
                        </application>
                        <application>
                            <name>System Information</name>
                        </application>
                    </applications>
                </item>
                <item>
                    <name>Power Status</name>
                    <type>SNMP_AGENT</type>
                    <snmp_oid>.1.3.6.1.4.1.6574.1.3.0</snmp_oid>
                    <key>synoSystem.powerStatus</key>
                    <description>Returns error if power supplies fail</description>
                    <applications>
                        <application>
                            <name>Synology System</name>
                        </application>
                    </applications>
                    <valuemap>
                        <name>SYNOLOGY-SYSTEM-MIB::powerStatus</name>
                    </valuemap>
                    <triggers>
                        <trigger>
                            <expression>{last()}&lt;&gt;1</expression>
                            <name>Power Status FAILED on {HOST.NAME}</name>
                            <priority>HIGH</priority>
                        </trigger>
                    </triggers>
                </item>
                <item>
                    <name>Serial Number</name>
                    <type>SNMP_AGENT</type>
                    <snmp_oid>.1.3.6.1.4.1.6574.1.5.2.0</snmp_oid>
                    <key>synoSystem.serialNumber</key>
                    <delay>1h</delay>
                    <trends>0</trends>
                    <status>DISABLED</status>
                    <value_type>TEXT</value_type>
                    <description>Model serial number</description>
                    <inventory_link>SERIALNO_A</inventory_link>
                    <applications>
                        <application>
                            <name>Synology System</name>
                        </application>
                        <application>
                            <name>System Information</name>
                        </application>
                    </applications>
                </item>
                <item>
                    <name>CPU Idle</name>
                    <type>SNMP_AGENT</type>
                    <snmp_oid>.1.3.6.1.4.1.2021.11.11.0</snmp_oid>
                    <key>synoSystem.ssCpuIdle</key>
                    <units>%</units>
                    <description>The percentage of processor time spent idle, calculated over the last minute.</description>
                    <applications>
                        <application>
                            <name>CPU</name>
                        </application>
                        <application>
                            <name>Synology System</name>
                        </application>
                        <application>
                            <name>System Health</name>
                        </application>
                    </applications>
                    <triggers>
                        <trigger>
                            <expression>{avg(5m)}&lt;10</expression>
                            <name>CPU Usage High on {HOST.NAME}</name>
                            <priority>WARNING</priority>
                        </trigger>
                        <trigger>
                            <expression>{avg(5m)}&lt;5</expression>
                            <name>CPU Usage Very High on {HOST.NAME}</name>
                            <priority>HIGH</priority>
                        </trigger>
                    </triggers>
                </item>
                <item>
                    <name>CPU System</name>
                    <type>SNMP_AGENT</type>
                    <snmp_oid>.1.3.6.1.4.1.2021.11.10.0</snmp_oid>
                    <key>synoSystem.ssCpuSystem</key>
                    <units>%</units>
                    <description>The percentage of CPU time spent processing system-level code, calculated over the last minute.</description>
                    <applications>
                        <application>
                            <name>CPU</name>
                        </application>
                        <application>
                            <name>Synology System</name>
                        </application>
                        <application>
                            <name>System Health</name>
                        </application>
                    </applications>
                </item>
                <item>
                    <name>CPU User</name>
                    <type>SNMP_AGENT</type>
                    <snmp_oid>.1.3.6.1.4.1.2021.11.9.0</snmp_oid>
                    <key>synoSystem.ssCpuUser</key>
                    <units>%</units>
                    <description>The percentage of CPU time spent processing user-level code.</description>
                    <applications>
                        <application>
                            <name>CPU</name>
                        </application>
                        <application>
                            <name>Synology System</name>
                        </application>
                        <application>
                            <name>System Health</name>
                        </application>
                    </applications>
                </item>
                <item>
                    <name>System Fan Status</name>
                    <type>SNMP_AGENT</type>
                    <snmp_oid>.1.3.6.1.4.1.6574.1.4.1.0</snmp_oid>
                    <key>synoSystem.systemFanStatus</key>
                    <description>Returns error if system fan fails.</description>
                    <applications>
                        <application>
                            <name>Synology System</name>
                        </application>
                        <application>
                            <name>System Health</name>
                        </application>
                    </applications>
                    <valuemap>
                        <name>SYNOLOGY-SYSTEM-MIB::systemStatus</name>
                    </valuemap>
                    <triggers>
                        <trigger>
                            <expression>{last()}&lt;&gt;1</expression>
                            <name>System Fan Status CRITCAL on {HOST.NAME}</name>
                            <priority>WARNING</priority>
                        </trigger>
                    </triggers>
                </item>
                <item>
                    <name>System Status</name>
                    <type>SNMP_AGENT</type>
                    <snmp_oid>.1.3.6.1.4.1.6574.1.1.0</snmp_oid>
                    <key>synoSystem.systemStatus</key>
                    <description>System partition status.</description>
                    <applications>
                        <application>
                            <name>Synology System</name>
                        </application>
                        <application>
                            <name>System Health</name>
                        </application>
                    </applications>
                    <valuemap>
                        <name>SYNOLOGY-SYSTEM-MIB::systemStatus</name>
                    </valuemap>
                    <triggers>
                        <trigger>
                            <expression>{last()}&lt;&gt;1</expression>
                            <name>System Partition CRITICAL on {HOST.NAME}</name>
                            <priority>DISASTER</priority>
                        </trigger>
                    </triggers>
                </item>
                <item>
                    <name>System Temperature</name>
                    <type>SNMP_AGENT</type>
                    <snmp_oid>.1.3.6.1.4.1.6574.1.2.0</snmp_oid>
                    <key>synoSystem.temperature</key>
                    <delay>3m</delay>
                    <units>C</units>
                    <description>Temperature of this NAS.</description>
                    <applications>
                        <application>
                            <name>Synology System</name>
                        </application>
                        <application>
                            <name>System Health</name>
                        </application>
                    </applications>
                    <triggers>
                        <trigger>
                            <expression>{avg(#4)}&gt;60</expression>
                            <name>System Temperature CRITICAL on {HOST.NAME}</name>
                            <priority>AVERAGE</priority>
                        </trigger>
                    </triggers>
                </item>
                <item>
                    <name>Upgrade Available</name>
                    <type>SNMP_AGENT</type>
                    <snmp_oid>.1.3.6.1.4.1.6574.1.5.4.0</snmp_oid>
                    <key>synoSystem.upgradeAvailable</key>
                    <delay>1h</delay>
                    <description>Checks whether a new version or update of DSM is available</description>
                    <applications>
                        <application>
                            <name>Synology System</name>
                        </application>
                        <application>
                            <name>System Information</name>
                        </application>
                    </applications>
                    <valuemap>
                        <name>SYNOLOGY-SYSTEM-MIB::upgradeAvailable</name>
                    </valuemap>
                    <triggers>
                        <trigger>
                            <expression>{last()}=1</expression>
                            <name>Update available on {HOST.NAME}</name>
                            <priority>INFO</priority>
                            <manual_close>YES</manual_close>
                        </trigger>
                    </triggers>
                </item>
                <item>
                    <name>Version</name>
                    <type>SNMP_AGENT</type>
                    <snmp_oid>.1.3.6.1.4.1.6574.1.5.3.0</snmp_oid>
                    <key>synoSystem.version</key>
                    <delay>1h</delay>
                    <trends>0</trends>
                    <value_type>TEXT</value_type>
                    <description>The version of DSM</description>
                    <inventory_link>OS</inventory_link>
                    <applications>
                        <application>
                            <name>Synology System</name>
                        </application>
                        <application>
                            <name>System Information</name>
                        </application>
                    </applications>
                </item>
                <item>
                    <name>Total Physical Available</name>
                    <type>SNMP_AGENT</type>
                    <snmp_oid>.1.3.6.1.4.1.2021.4.6.0</snmp_oid>
                    <key>ucdavis.memory.memAvailReal</key>
                    <delay>3m</delay>
                    <units>B</units>
                    <description>The amount of real/physical memory currently unused or available.</description>
                    <applications>
                        <application>
                            <name>Memory</name>
                        </application>
                        <application>
                            <name>System Health</name>
                        </application>
                    </applications>
                    <preprocessing>
                        <step>
                            <type>MULTIPLIER</type>
                            <params>1024</params>
                        </step>
                    </preprocessing>
                </item>
                <item>
                    <name>Total Swap Available</name>
                    <type>SNMP_AGENT</type>
                    <snmp_oid>.1.3.6.1.4.1.2021.4.4.0</snmp_oid>
                    <key>ucdavis.memory.memAvailSwap</key>
                    <delay>3m</delay>
                    <units>B</units>
                    <description>The amount of swap space currently unused or available.</description>
                    <applications>
                        <application>
                            <name>Memory</name>
                        </application>
                        <application>
                            <name>System Health</name>
                        </application>
                    </applications>
                    <preprocessing>
                        <step>
                            <type>MULTIPLIER</type>
                            <params>1024</params>
                        </step>
                    </preprocessing>
                </item>
                <item>
                    <name>Total Buffer Memory</name>
                    <type>SNMP_AGENT</type>
                    <snmp_oid>.1.3.6.1.4.1.2021.4.14.0</snmp_oid>
                    <key>ucdavis.memory.memBuffer</key>
                    <delay>3m</delay>
                    <units>B</units>
                    <description>The total amount of real or virtual memory currently allocated for use as memory buffers.</description>
                    <applications>
                        <application>
                            <name>Memory</name>
                        </application>
                        <application>
                            <name>System Health</name>
                        </application>
                    </applications>
                    <preprocessing>
                        <step>
                            <type>MULTIPLIER</type>
                            <params>1024</params>
                        </step>
                    </preprocessing>
                </item>
                <item>
                    <name>Total Cached Memory</name>
                    <type>SNMP_AGENT</type>
                    <snmp_oid>.1.3.6.1.4.1.2021.4.15.0</snmp_oid>
                    <key>ucdavis.memory.memCached</key>
                    <delay>3m</delay>
                    <units>B</units>
                    <description>The total amount of real or virtual memory currently allocated for use as cached memory.</description>
                    <applications>
                        <application>
                            <name>Memory</name>
                        </application>
                        <application>
                            <name>System Health</name>
                        </application>
                    </applications>
                    <preprocessing>
                        <step>
                            <type>MULTIPLIER</type>
                            <params>1024</params>
                        </step>
                    </preprocessing>
                </item>
                <item>
                    <name>Total Shared Memory</name>
                    <type>SNMP_AGENT</type>
                    <snmp_oid>.1.3.6.1.4.1.2021.4.13.0</snmp_oid>
                    <key>ucdavis.memory.memShared</key>
                    <delay>3m</delay>
                    <units>B</units>
                    <description>The total amount of real or virtual memory currently allocated for use as shared memory.</description>
                    <applications>
                        <application>
                            <name>Memory</name>
                        </application>
                        <application>
                            <name>System Health</name>
                        </application>
                    </applications>
                    <preprocessing>
                        <step>
                            <type>MULTIPLIER</type>
                            <params>1024</params>
                        </step>
                    </preprocessing>
                </item>
                <item>
                    <name>Total Free Memory</name>
                    <type>SNMP_AGENT</type>
                    <snmp_oid>.1.3.6.1.4.1.2021.4.11.0</snmp_oid>
                    <key>ucdavis.memory.memTotalFree</key>
                    <delay>3m</delay>
                    <units>B</units>
                    <description>The total amount of memory free or available for use on this host.</description>
                    <applications>
                        <application>
                            <name>Memory</name>
                        </application>
                        <application>
                            <name>System Health</name>
                        </application>
                    </applications>
                    <preprocessing>
                        <step>
                            <type>MULTIPLIER</type>
                            <params>1024</params>
                        </step>
                    </preprocessing>
                </item>
                <item>
                    <name>Total Physical Memory</name>
                    <type>SNMP_AGENT</type>
                    <snmp_oid>.1.3.6.1.4.1.2021.4.5.0</snmp_oid>
                    <key>ucdavis.memory.memTotalReal</key>
                    <delay>3m</delay>
                    <units>B</units>
                    <description>The total amount of real/physical memory installed on this host.</description>
                    <applications>
                        <application>
                            <name>Memory</name>
                        </application>
                        <application>
                            <name>System Health</name>
                        </application>
                    </applications>
                    <preprocessing>
                        <step>
                            <type>MULTIPLIER</type>
                            <params>1024</params>
                        </step>
                    </preprocessing>
                </item>
                <item>
                    <name>Total Swap Space</name>
                    <type>SNMP_AGENT</type>
                    <snmp_oid>.1.3.6.1.4.1.2021.4.3.0</snmp_oid>
                    <key>ucdavis.memory.memTotalSwap</key>
                    <delay>3m</delay>
                    <units>B</units>
                    <description>The total amount of swap space configured for this host.</description>
                    <applications>
                        <application>
                            <name>Memory</name>
                        </application>
                        <application>
                            <name>System Health</name>
                        </application>
                    </applications>
                    <preprocessing>
                        <step>
                            <type>MULTIPLIER</type>
                            <params>1024</params>
                        </step>
                    </preprocessing>
                </item>
            </items>
            <discovery_rules>
                <discovery_rule>
                    <name>Disk</name>
                    <type>SNMP_AGENT</type>
                    <snmp_oid>discovery[{#IFINDEX},.1.3.6.1.2.1.25.2.3.1.1,{#IFDESCR},.1.3.6.1.2.1.25.2.3.1.3,{#IFUNIT},.1.3.6.1.2.1.25.2.3.1.4]</snmp_oid>
                    <key>host.hrStorage.hrStorageTable.hrStorageEntry</key>
                    <delay>1h</delay>
                    <filter>
                        <conditions>
                            <condition>
                                <macro>{#IFDESCR}</macro>
                                <value>/volume</value>
                                <formulaid>A</formulaid>
                            </condition>
                        </conditions>
                    </filter>
                    <item_prototypes>
                        <item_prototype>
                            <name>Storage Multiplier on {#IFDESCR}</name>
                            <type>SNMP_AGENT</type>
                            <snmp_oid>.1.3.6.1.2.1.25.2.3.1.4.{#IFINDEX}</snmp_oid>
                            <key>host.hrStorage.hrStorageTable.hrStorageEntry.hrStorageMultiplier[{#IFINDEX}]</key>
                            <delay>3m</delay>
                            <applications>
                                <application>
                                    <name>Disk</name>
                                </application>
                            </applications>
                        </item_prototype>
                        <item_prototype>
                            <name>Storage Size Raw Data on {#IFDESCR}</name>
                            <type>SNMP_AGENT</type>
                            <snmp_oid>.1.3.6.1.2.1.25.2.3.1.5.{#IFINDEX}</snmp_oid>
                            <key>host.hrStorage.hrStorageTable.hrStorageEntry.hrStorageSizeRawData[{#IFINDEX}]</key>
                            <delay>3m</delay>
                            <applications>
                                <application>
                                    <name>Disk</name>
                                </application>
                            </applications>
                        </item_prototype>
                        <item_prototype>
                            <name>Storage Size on {#IFDESCR}</name>
                            <type>CALCULATED</type>
                            <key>host.hrStorage.hrStorageTable.hrStorageEntry.hrStorageSize[{#IFINDEX}]</key>
                            <delay>3m</delay>
                            <units>B</units>
                            <params>last(host.hrStorage.hrStorageTable.hrStorageEntry.hrStorageSizeRawData[{#IFINDEX}]) * last(host.hrStorage.hrStorageTable.hrStorageEntry.hrStorageMultiplier[{#IFINDEX}])</params>
                            <description>The size of the storage represented by this entry, in units of hrStorageAllocationUnits.</description>
                            <applications>
                                <application>
                                    <name>Disk</name>
                                </application>
                            </applications>
                        </item_prototype>
                        <item_prototype>
                            <name>Storage Used Raw Data on {#IFDESCR}</name>
                            <type>SNMP_AGENT</type>
                            <snmp_oid>.1.3.6.1.2.1.25.2.3.1.6.{#IFINDEX}</snmp_oid>
                            <key>host.hrStorage.hrStorageTable.hrStorageEntry.hrStorageUsedRawData[{#IFINDEX}]</key>
                            <delay>3m</delay>
                            <applications>
                                <application>
                                    <name>Disk</name>
                                </application>
                            </applications>
                        </item_prototype>
                        <item_prototype>
                            <name>Storage Used on {#IFDESCR} (%)</name>
                            <type>CALCULATED</type>
                            <key>host.hrStorage.hrStorageTable.hrStorageEntry.hrStorageUsed[{#IFINDEX},pct]</key>
                            <delay>5m</delay>
                            <units>%</units>
                            <params>last(host.hrStorage.hrStorageTable.hrStorageEntry.hrStorageUsed[{#IFINDEX}])/last(host.hrStorage.hrStorageTable.hrStorageEntry.hrStorageSize[{#IFINDEX}])*100</params>
                            <description>% of disk space used.</description>
                            <applications>
                                <application>
                                    <name>Disk</name>
                                </application>
                            </applications>
                            <trigger_prototypes>
                                <trigger_prototype>
                                    <expression>{last()}&gt;{$DISK_UTIL_HIGH}</expression>
                                    <name>Disk Space is CRITICAL on {#IFDESCR}</name>
                                    <priority>HIGH</priority>
                                </trigger_prototype>
                                <trigger_prototype>
                                    <expression>{last()}&gt;{$DISK_UTIL_WARN}</expression>
                                    <name>Disk Space is LOW on {#IFDESCR}</name>
                                    <priority>WARNING</priority>
                                </trigger_prototype>
                            </trigger_prototypes>
                        </item_prototype>
                        <item_prototype>
                            <name>Storage Used on {#IFDESCR}</name>
                            <type>CALCULATED</type>
                            <key>host.hrStorage.hrStorageTable.hrStorageEntry.hrStorageUsed[{#IFINDEX}]</key>
                            <delay>3m</delay>
                            <units>B</units>
                            <params>last(host.hrStorage.hrStorageTable.hrStorageEntry.hrStorageUsedRawData[{#IFINDEX}]) * last(host.hrStorage.hrStorageTable.hrStorageEntry.hrStorageMultiplier[{#IFINDEX}])</params>
                            <description>The amount of the storage represented by this entry.</description>
                            <applications>
                                <application>
                                    <name>Disk</name>
                                </application>
                            </applications>
                        </item_prototype>
                    </item_prototypes>
                    <graph_prototypes>
                        <graph_prototype>
                            <name>Disk: Storage Evolution on {#IFDESCR}</name>
                            <height>300</height>
                            <graph_items>
                                <graph_item>
                                    <color>000000</color>
                                    <calc_fnc>ALL</calc_fnc>
                                    <item>
                                        <host>Template Synology DiskStation 2021</host>
                                        <key>host.hrStorage.hrStorageTable.hrStorageEntry.hrStorageSize[{#IFINDEX}]</key>
                                    </item>
                                </graph_item>
                                <graph_item>
                                    <sortorder>1</sortorder>
                                    <drawtype>FILLED_REGION</drawtype>
                                    <color>0000EE</color>
                                    <item>
                                        <host>Template Synology DiskStation 2021</host>
                                        <key>host.hrStorage.hrStorageTable.hrStorageEntry.hrStorageUsed[{#IFINDEX}]</key>
                                    </item>
                                </graph_item>
                            </graph_items>
                        </graph_prototype>
                        <graph_prototype>
                            <name>Disk: Storage Utilization on {#IFDESCR}</name>
                            <width>600</width>
                            <height>340</height>
                            <yaxismax>0</yaxismax>
                            <show_work_period>NO</show_work_period>
                            <show_triggers>NO</show_triggers>
                            <type>PIE</type>
                            <show_3d>YES</show_3d>
                            <graph_items>
                                <graph_item>
                                    <color>5B5B5B</color>
                                    <calc_fnc>LAST</calc_fnc>
                                    <type>GRAPH_SUM</type>
                                    <item>
                                        <host>Template Synology DiskStation 2021</host>
                                        <key>host.hrStorage.hrStorageTable.hrStorageEntry.hrStorageSize[{#IFINDEX}]</key>
                                    </item>
                                </graph_item>
                                <graph_item>
                                    <sortorder>1</sortorder>
                                    <color>AEEE00</color>
                                    <calc_fnc>LAST</calc_fnc>
                                    <item>
                                        <host>Template Synology DiskStation 2021</host>
                                        <key>host.hrStorage.hrStorageTable.hrStorageEntry.hrStorageUsed[{#IFINDEX}]</key>
                                    </item>
                                </graph_item>
                            </graph_items>
                        </graph_prototype>
                    </graph_prototypes>
                </discovery_rule>
                <discovery_rule>
                    <name>Network</name>
                    <type>SNMP_AGENT</type>
                    <snmp_oid>discovery[{#IFALIAS},1.3.6.1.2.1.31.1.1.1.18,{#IFNAME},1.3.6.1.2.1.31.1.1.1.1]</snmp_oid>
                    <key>ifMIB.ifMIBObjects.ifXTable.ifXEntry</key>
                    <delay>1h</delay>
                    <filter>
                        <conditions>
                            <condition>
                                <macro>{#IFNAME}</macro>
                                <value>eth</value>
                                <formulaid>A</formulaid>
                            </condition>
                        </conditions>
                    </filter>
                    <item_prototypes>
                        <item_prototype>
                            <name>Incomming Packets on Interface {#IFNAME}</name>
                            <type>SNMP_AGENT</type>
                            <snmp_oid>.1.3.6.1.2.1.31.1.1.1.6.{#SNMPINDEX}</snmp_oid>
                            <key>ifMIB.ifMIBObjects.ifXTable.ifXEntry.ifHCInOctets.[{#IFNAME}]</key>
                            <delay>3m</delay>
                            <value_type>FLOAT</value_type>
                            <units>bps</units>
                            <description>The total number of octets received on the interface.</description>
                            <applications>
                                <application>
                                    <name>Network</name>
                                </application>
                            </applications>
                            <preprocessing>
                                <step>
                                    <type>CHANGE_PER_SECOND</type>
                                    <params/>
                                </step>
                                <step>
                                    <type>MULTIPLIER</type>
                                    <params>8</params>
                                </step>
                            </preprocessing>
                        </item_prototype>
                        <item_prototype>
                            <name>Outgoing Packets on Interface {#IFNAME}</name>
                            <type>SNMP_AGENT</type>
                            <snmp_oid>.1.3.6.1.2.1.31.1.1.1.10.{#SNMPINDEX}</snmp_oid>
                            <key>ifMIB.ifMIBObjects.ifXTable.ifXEntry.ifHCOutOctets.[{#IFNAME}]</key>
                            <delay>3m</delay>
                            <value_type>FLOAT</value_type>
                            <units>bps</units>
                            <description>The total number of octets transmitted out of the interface.</description>
                            <applications>
                                <application>
                                    <name>Network</name>
                                </application>
                            </applications>
                            <preprocessing>
                                <step>
                                    <type>CHANGE_PER_SECOND</type>
                                    <params/>
                                </step>
                                <step>
                                    <type>MULTIPLIER</type>
                                    <params>8</params>
                                </step>
                            </preprocessing>
                        </item_prototype>
                    </item_prototypes>
                    <graph_prototypes>
                        <graph_prototype>
                            <name>Network: Traffic on Interface {#IFNAME}</name>
                            <graph_items>
                                <graph_item>
                                    <drawtype>GRADIENT_LINE</drawtype>
                                    <color>00AA00</color>
                                    <item>
                                        <host>Template Synology DiskStation 2021</host>
                                        <key>ifMIB.ifMIBObjects.ifXTable.ifXEntry.ifHCInOctets.[{#IFNAME}]</key>
                                    </item>
                                </graph_item>
                                <graph_item>
                                    <sortorder>1</sortorder>
                                    <drawtype>GRADIENT_LINE</drawtype>
                                    <color>3333FF</color>
                                    <item>
                                        <host>Template Synology DiskStation 2021</host>
                                        <key>ifMIB.ifMIBObjects.ifXTable.ifXEntry.ifHCOutOctets.[{#IFNAME}]</key>
                                    </item>
                                </graph_item>
                            </graph_items>
                        </graph_prototype>
                    </graph_prototypes>
                </discovery_rule>
                <discovery_rule>
                    <name>Synology SpaceIO</name>
                    <type>SNMP_AGENT</type>
                    <snmp_oid>discovery[{#SNMPVALUE},.1.3.6.1.4.1.6574.102.1.1.2]</snmp_oid>
                    <key>spaceIO.spaceIOTable.spaceIOEntry</key>
                    <delay>1h</delay>
                    <status>DISABLED</status>
                    <filter>
                        <conditions>
                            <condition>
                                <macro>{#SNMPVALUE}</macro>
                                <value>sd</value>
                                <formulaid>A</formulaid>
                            </condition>
                        </conditions>
                    </filter>
                    <description>An entry containing a device and its statistics.</description>
                    <item_prototypes>
                        <item_prototype>
                            <name>Space Load of Disk {#SNMPVALUE}</name>
                            <type>SNMP_AGENT</type>
                            <snmp_oid>.1.3.6.1.4.1.6574.102.1.1.7.{#SNMPINDEX}</snmp_oid>
                            <key>spaceIO.spaceIOTable.spaceIOEntry.spaceIOLA.[{#SNMPINDEX}]</key>
                            <delay>3m</delay>
                            <units>%</units>
                            <description>The load of disk in the volume (%).</description>
                            <applications>
                                <application>
                                    <name>Synology Spaceio</name>
                                </application>
                            </applications>
                        </item_prototype>
                        <item_prototype>
                            <name>{#SNMPVALUE} byte(s) read since boot</name>
                            <type>SNMP_AGENT</type>
                            <snmp_oid>.1.3.6.1.4.1.6574.102.1.1.3.{#SNMPINDEX}</snmp_oid>
                            <key>spaceIO.spaceIOTable.spaceIOEntry.spaceIONRead.[{#SNMPINDEX}]</key>
                            <delay>3m</delay>
                            <units>byte(s)</units>
                            <description>The number of bytes read from this volume since boot (32-bit ver.).</description>
                            <applications>
                                <application>
                                    <name>Synology Spaceio</name>
                                </application>
                            </applications>
                        </item_prototype>
                        <item_prototype>
                            <name>{#SNMPVALUE} read access(es) since boot</name>
                            <type>SNMP_AGENT</type>
                            <snmp_oid>.1.3.6.1.4.1.6574.102.1.1.5.{#SNMPINDEX}</snmp_oid>
                            <key>spaceIO.spaceIOTable.spaceIOEntry.spaceIONReads.[{#SNMPINDEX}]</key>
                            <delay>3m</delay>
                            <units>byte(s)</units>
                            <description>The number of read accesses from this volume since boot.</description>
                            <applications>
                                <application>
                                    <name>Synology Spaceio</name>
                                </application>
                            </applications>
                        </item_prototype>
                        <item_prototype>
                            <name>{#SNMPVALUE} write accesses since boot</name>
                            <type>SNMP_AGENT</type>
                            <snmp_oid>.1.3.6.1.4.1.6574.102.1.1.6.{#SNMPINDEX}</snmp_oid>
                            <key>spaceIO.spaceIOTable.spaceIOEntry.spaceIONWrites.[{#SNMPINDEX}]</key>
                            <delay>3m</delay>
                            <units>byte(s)</units>
                            <description>The number of write accesses to this volume since boot (32-bit ver.).</description>
                            <applications>
                                <application>
                                    <name>Synology Spaceio</name>
                                </application>
                            </applications>
                        </item_prototype>
                        <item_prototype>
                            <name>{#SNMPVALUE} byte(s) written since boot</name>
                            <type>SNMP_AGENT</type>
                            <snmp_oid>.1.3.6.1.4.1.6574.102.1.1.4.{#SNMPINDEX}</snmp_oid>
                            <key>spaceIO.spaceIOTable.spaceIOEntry.spaceIONWritten.[{#SNMPINDEX}]</key>
                            <delay>3m</delay>
                            <units>byte(s)</units>
                            <description>The number of bytes written to this volume since boot (32-bit ver.).</description>
                            <applications>
                                <application>
                                    <name>Synology Spaceio</name>
                                </application>
                            </applications>
                        </item_prototype>
                    </item_prototypes>
                    <graph_prototypes>
                        <graph_prototype>
                            <name>SpaceIO: Load on Disk {#SNMPVALUE} (in %)</name>
                            <graph_items>
                                <graph_item>
                                    <color>EE00EE</color>
                                    <item>
                                        <host>Template Synology DiskStation 2021</host>
                                        <key>spaceIO.spaceIOTable.spaceIOEntry.spaceIOLA.[{#SNMPINDEX}]</key>
                                    </item>
                                </graph_item>
                            </graph_items>
                        </graph_prototype>
                    </graph_prototypes>
                </discovery_rule>
                <discovery_rule>
                    <name>Synology StorageIO</name>
                    <type>SNMP_AGENT</type>
                    <snmp_oid>discovery[{#SNMPVALUE},.1.3.6.1.4.1.6574.101.1.1.2]</snmp_oid>
                    <key>storageIO.storageIOTable.storageIOEntry</key>
                    <delay>1h</delay>
                    <status>DISABLED</status>
                    <filter>
                        <conditions>
                            <condition>
                                <macro>{#SNMPVALUE}</macro>
                                <value>sd</value>
                                <formulaid>A</formulaid>
                            </condition>
                        </conditions>
                    </filter>
                    <description>An entry containing a device and its statistics.</description>
                    <item_prototypes>
                        <item_prototype>
                            <name>Storage Load on Disk {#SNMPVALUE}</name>
                            <type>SNMP_AGENT</type>
                            <snmp_oid>.1.3.6.1.4.1.6574.101.1.1.8.{#SNMPINDEX}</snmp_oid>
                            <key>storageIO.storageIOTable.storageIOEntry.storageIOLA.[{#SNMPINDEX}]</key>
                            <delay>3m</delay>
                            <units>%</units>
                            <description>The load of disk (in %).</description>
                            <applications>
                                <application>
                                    <name>Synology Storageio</name>
                                </application>
                            </applications>
                        </item_prototype>
                        <item_prototype>
                            <name>{#SNMPVALUE} byte(s) read since boot</name>
                            <type>SNMP_AGENT</type>
                            <snmp_oid>.1.3.6.1.4.1.6574.101.1.1.3.{#SNMPINDEX}</snmp_oid>
                            <key>storageIO.storageIOTable.storageIOEntry.storageIONRead.[{#SNMPINDEX}]</key>
                            <delay>3m</delay>
                            <units>byte(s)</units>
                            <description>The number of bytes read from this device since boot (32-bit VER.).</description>
                            <applications>
                                <application>
                                    <name>Synology Storageio</name>
                                </application>
                            </applications>
                        </item_prototype>
                        <item_prototype>
                            <name>{#SNMPVALUE} byte(s) written since boot</name>
                            <type>SNMP_AGENT</type>
                            <snmp_oid>.1.3.6.1.4.1.6574.101.1.1.4.{#SNMPINDEX}</snmp_oid>
                            <key>storageIO.storageIOTable.storageIOEntry.storageIONWritten.[{#SNMPINDEX}]</key>
                            <delay>3m</delay>
                            <units>byte(s)</units>
                            <description>The number of bytes written to this device since boot (32-bit VER.).</description>
                            <applications>
                                <application>
                                    <name>Synology Storageio</name>
                                </application>
                            </applications>
                        </item_prototype>
                        <item_prototype>
                            <name>{#SNMPVALUE} read access(es) since boot</name>
                            <type>SNMP_AGENT</type>
                            <snmp_oid>.1.3.6.1.4.1.6574.101.1.1.5.{#SNMPINDEX}</snmp_oid>
                            <key>storageIO.storageIOTable.storageIOEntry.storageIOReads.[{#SNMPINDEX}]</key>
                            <delay>3m</delay>
                            <units>access(es)</units>
                            <description>The number of read accesses from this device since boot (32-bit VER.).</description>
                            <applications>
                                <application>
                                    <name>Synology Storageio</name>
                                </application>
                            </applications>
                        </item_prototype>
                        <item_prototype>
                            <name>{#SNMPVALUE} write access(es) since boot</name>
                            <type>SNMP_AGENT</type>
                            <snmp_oid>.1.3.6.1.4.1.6574.101.1.1.6.{#SNMPINDEX}</snmp_oid>
                            <key>storageIO.storageIOTable.storageIOEntry.storageIOWrites.[{#SNMPINDEX}]</key>
                            <delay>3m</delay>
                            <units>access(es)</units>
                            <description>The number of write accesses from this device since boot (32-bit VER.).</description>
                            <applications>
                                <application>
                                    <name>Synology Storageio</name>
                                </application>
                            </applications>
                        </item_prototype>
                    </item_prototypes>
                    <graph_prototypes>
                        <graph_prototype>
                            <name>StorageIO: Load on Disk {#SNMPVALUE}</name>
                            <show_work_period>NO</show_work_period>
                            <show_triggers>NO</show_triggers>
                            <ymin_type_1>ITEM</ymin_type_1>
                            <ymin_item_1>
                                <host>Template Synology DiskStation 2021</host>
                                <key>storageIO.storageIOTable.storageIOEntry.storageIOLA.[{#SNMPINDEX}]</key>
                            </ymin_item_1>
                            <ymax_type_1>ITEM</ymax_type_1>
                            <ymax_item_1>
                                <host>Template Synology DiskStation 2021</host>
                                <key>storageIO.storageIOTable.storageIOEntry.storageIOLA.[{#SNMPINDEX}]</key>
                            </ymax_item_1>
                            <graph_items>
                                <graph_item>
                                    <drawtype>BOLD_LINE</drawtype>
                                    <color>0000EE</color>
                                    <calc_fnc>ALL</calc_fnc>
                                    <type>GRAPH_SUM</type>
                                    <item>
                                        <host>Template Synology DiskStation 2021</host>
                                        <key>storageIO.storageIOTable.storageIOEntry.storageIOLA.[{#SNMPINDEX}]</key>
                                    </item>
                                </graph_item>
                            </graph_items>
                        </graph_prototype>
                    </graph_prototypes>
                </discovery_rule>
                <discovery_rule>
                    <name>Synology Disk(s)</name>
                    <type>SNMP_AGENT</type>
                    <snmp_oid>discovery[{#SNMPVALUE},.1.3.6.1.4.1.6574.2.1.1.2]</snmp_oid>
                    <key>synoDisk.diskTable.diskEntry</key>
                    <delay>1h</delay>
                    <description>For all disk entry.</description>
                    <item_prototypes>
                        <item_prototype>
                            <name>{#SNMPVALUE} Model</name>
                            <type>SNMP_AGENT</type>
                            <snmp_oid>.1.3.6.1.4.1.6574.2.1.1.3.{#SNMPINDEX}</snmp_oid>
                            <key>synoDisk.diskTable.diskEntry.diskModel.[{#SNMPINDEX}]</key>
                            <delay>1d</delay>
                            <trends>0</trends>
                            <status>DISABLED</status>
                            <discover>NO_DISCOVER</discover>
                            <value_type>TEXT</value_type>
                            <description>Synology disk model name: the disk model name will be showed here.</description>
                            <applications>
                                <application>
                                    <name>Synology Disk</name>
                                </application>
                            </applications>
                            <trigger_prototypes>
                                <trigger_prototype>
                                    <expression>{diff(0)}&gt;0</expression>
                                    <name>{#SNMPVALUE} was changed</name>
                                    <priority>INFO</priority>
                                    <description>Disk was changed</description>
                                </trigger_prototype>
                            </trigger_prototypes>
                        </item_prototype>
                        <item_prototype>
                            <name>{#SNMPVALUE} Status</name>
                            <type>SNMP_AGENT</type>
                            <snmp_oid>.1.3.6.1.4.1.6574.2.1.1.5.{#SNMPINDEX}</snmp_oid>
                            <key>synoDisk.diskTable.diskEntry.diskStatus.[{#SNMPINDEX}]</key>
                            <description>Synology disk status: each meanings of status represented describe below:&#13;
[1] Normal: the hard disk functions normally.&#13;
[2] Initialized: the hard disk has system partition but no data.&#13;
[3] NotInitialized: the hard disk does not have system in system partition.	&#13;
[4] SystemPartitionFailed: the system partitions on the hard disks are damaged.&#13;
[5] Crashed: the hard disk has damaged.</description>
                            <applications>
                                <application>
                                    <name>Synology Disk</name>
                                </application>
                            </applications>
                            <valuemap>
                                <name>SYNOLOGY-DISK-MIB::diskStatus</name>
                            </valuemap>
                            <trigger_prototypes>
                                <trigger_prototype>
                                    <expression>{last()}=5</expression>
                                    <name>{#SNMPVALUE} disk damaged</name>
                                    <priority>HIGH</priority>
                                    <description>The disk is damaged</description>
                                </trigger_prototype>
                                <trigger_prototype>
                                    <expression>{last()}=4</expression>
                                    <name>{#SNMPVALUE} partition damaged</name>
                                    <priority>AVERAGE</priority>
                                    <description>Partitions on the disk are damaged</description>
                                </trigger_prototype>
                            </trigger_prototypes>
                        </item_prototype>
                        <item_prototype>
                            <name>{#SNMPVALUE} Temperature</name>
                            <type>SNMP_AGENT</type>
                            <snmp_oid>.1.3.6.1.4.1.6574.2.1.1.6.{#SNMPINDEX}</snmp_oid>
                            <key>synoDisk.diskTable.diskEntry.diskTemperature.[{#SNMPINDEX}]</key>
                            <units>C</units>
                            <description>Synology disk temperature: the temperature of each disk uses Celsius degree.</description>
                            <applications>
                                <application>
                                    <name>Synology Disk</name>
                                </application>
                            </applications>
                            <trigger_prototypes>
                                <trigger_prototype>
                                    <expression>{avg(#4)}&gt;60</expression>
                                    <name>{#SNMPVALUE} temperature</name>
                                    <priority>WARNING</priority>
                                </trigger_prototype>
                            </trigger_prototypes>
                        </item_prototype>
                        <item_prototype>
                            <name>{#SNMPVALUE} Type</name>
                            <type>SNMP_AGENT</type>
                            <snmp_oid>.1.3.6.1.4.1.6574.2.1.1.4.{#SNMPINDEX}</snmp_oid>
                            <key>synoDisk.diskTable.diskEntry.diskType.[{#SNMPINDEX}]</key>
                            <delay>1d</delay>
                            <trends>0</trends>
                            <status>DISABLED</status>
                            <discover>NO_DISCOVER</discover>
                            <value_type>TEXT</value_type>
                            <description>Synology disk type: the type of disk will be showed here, including SATA, SSD and so on.</description>
                            <applications>
                                <application>
                                    <name>Synology Disk</name>
                                </application>
                            </applications>
                        </item_prototype>
                    </item_prototypes>
                    <graph_prototypes>
                        <graph_prototype>
                            <name>Temperature: Disk {#SNMPVALUE}</name>
                            <graph_items>
                                <graph_item>
                                    <drawtype>FILLED_REGION</drawtype>
                                    <color>2774A4</color>
                                    <calc_fnc>ALL</calc_fnc>
                                    <item>
                                        <host>Template Synology DiskStation 2021</host>
                                        <key>synoDisk.diskTable.diskEntry.diskTemperature.[{#SNMPINDEX}]</key>
                                    </item>
                                </graph_item>
                                <graph_item>
                                    <sortorder>1</sortorder>
                                    <color>3333FF</color>
                                    <item>
                                        <host>Template Synology DiskStation 2021</host>
                                        <key>synoSystem.temperature</key>
                                    </item>
                                </graph_item>
                            </graph_items>
                        </graph_prototype>
                    </graph_prototypes>
                </discovery_rule>
                <discovery_rule>
                    <name>Synology Disk(s) SMART</name>
                    <type>SNMP_AGENT</type>
                    <snmp_oid>discovery[{#SNMPVALUE},.1.3.6.1.4.1.6574.5.1.1.2,{#ATTRNAME},.1.3.6.1.4.1.6574.5.1.1.3,{#ATTRID},.1.3.6.1.4.1.6574.5.1.1.4,{#ATTRCURRENT},.1.3.6.1.4.1.6574.5.1.1.5,{#ATTRWORST},.1.3.6.1.4.1.6574.5.1.1.6,{#ATTRTHRESHOLD},.1.3.6.1.4.1.6574.5.1.1.7,{#ATTRRAW},.1.3.6.1.4.1.6574.5.1.1.8,{#ATTRSTATUS},.1.3.6.1.4.1.6574.5.1.1.9]</snmp_oid>
                    <key>synologyDiskSMART.diskSMARTTable.diskSMARTEntry</key>
                    <delay>1h</delay>
                    <status>DISABLED</status>
                    <description>An entry containing a disk SMART information.</description>
                    <item_prototypes>
                        <item_prototype>
                            <name>{#ATTRNAME} on {#SNMPVALUE}</name>
                            <type>SNMP_AGENT</type>
                            <snmp_oid>.1.3.6.1.4.1.6574.5.1.1.9.{#SNMPINDEX}</snmp_oid>
                            <key>synologyDiskSMART.diskSMARTTable.diskSMARTEntry.[{#SNMPINDEX}]</key>
                            <delay>1h</delay>
                            <trends>0</trends>
                            <value_type>TEXT</value_type>
                            <applications>
                                <application>
                                    <name>Synology Disk SMART</name>
                                </application>
                            </applications>
                            <trigger_prototypes>
                                <trigger_prototype>
                                    <expression>{diff(0)}&gt;0</expression>
                                    <name>Disk SMART attribute {#ATTRNAME} state was changed on {#SNMPVALUE}</name>
                                    <priority>HIGH</priority>
                                </trigger_prototype>
                            </trigger_prototypes>
                        </item_prototype>
                    </item_prototypes>
                </discovery_rule>
                <discovery_rule>
                    <name>Synology iSCSI LUN</name>
                    <type>SNMP_AGENT</type>
                    <snmp_oid>discovery[{#LUNINDEX},.1.3.4.1.4.1.6574.104.1.1.1,{#LUNUID},.1.3.4.1.4.1.6574.104.1.1.2,{#LUNNAME},.1.3.4.1.4.1.6574.104.1.1.3]</snmp_oid>
                    <key>synologyiSCSILUN.iSCSILUNTable.iSCSILUNEntry</key>
                    <delay>1h</delay>
                    <status>DISABLED</status>
                    <description>An entry containing iscsi lun information.</description>
                    <item_prototypes>
                        <item_prototype>
                            <name>Disk Latency Read on LUN {#LUNNAME} ({#LUNUID})</name>
                            <type>SNMP_AGENT</type>
                            <snmp_oid>.1.3.4.1.4.1.6574.104.1.1.10.[{#LUNINDEX}]</snmp_oid>
                            <key>synologyiSCSILUN.iSCSILUNTable.iSCSILUNEntry.iSCSILUNDiskLatencyRead[{#LUNINDEX}]</key>
                            <value_type>FLOAT</value_type>
                            <units>ms</units>
                            <description>LUN read disk latency.</description>
                            <applications>
                                <application>
                                    <name>Synology iSCSI LUN</name>
                                </application>
                            </applications>
                        </item_prototype>
                        <item_prototype>
                            <name>Disk Latency Write on LUN {#LUNNAME} ({#LUNUID})</name>
                            <type>SNMP_AGENT</type>
                            <snmp_oid>.1.3.4.1.4.1.6574.104.1.1.11.[{#LUNINDEX}]</snmp_oid>
                            <key>synologyiSCSILUN.iSCSILUNTable.iSCSILUNEntry.iSCSILUNDiskLatencyWrite[{#LUNINDEX}]</key>
                            <value_type>FLOAT</value_type>
                            <units>ms</units>
                            <description>LUN write disk latency.</description>
                            <applications>
                                <application>
                                    <name>Synology iSCSI LUN</name>
                                </application>
                            </applications>
                        </item_prototype>
                        <item_prototype>
                            <name>IOPS Read on LUN {#LUNNAME} ({#LUNUID})</name>
                            <type>SNMP_AGENT</type>
                            <snmp_oid>.1.3.4.1.4.1.6574.104.1.1.8.[{#LUNINDEX}]</snmp_oid>
                            <key>synologyiSCSILUN.iSCSILUNTable.iSCSILUNEntry.iSCSILUNIopsRead[{#LUNINDEX}]</key>
                            <value_type>FLOAT</value_type>
                            <units>iops</units>
                            <description>LUN read iops.</description>
                            <applications>
                                <application>
                                    <name>Synology iSCSI LUN</name>
                                </application>
                            </applications>
                        </item_prototype>
                        <item_prototype>
                            <name>IOPS Write on LUN {#LUNNAME} ({#LUNUID})</name>
                            <type>SNMP_AGENT</type>
                            <snmp_oid>.1.3.4.1.4.1.6574.104.1.1.9.[{#LUNINDEX}]</snmp_oid>
                            <key>synologyiSCSILUN.iSCSILUNTable.iSCSILUNEntry.iSCSILUNIopsWrite[{#LUNINDEX}]</key>
                            <value_type>FLOAT</value_type>
                            <units>iops</units>
                            <description>LUN write iops.</description>
                            <applications>
                                <application>
                                    <name>Synology iSCSI LUN</name>
                                </application>
                            </applications>
                        </item_prototype>
                        <item_prototype>
                            <name>IO Size Read on LUN {#LUNNAME} ({#LUNUID})</name>
                            <type>SNMP_AGENT</type>
                            <snmp_oid>.1.3.4.1.4.1.6574.104.1.1.14.[{#LUNINDEX}]</snmp_oid>
                            <key>synologyiSCSILUN.iSCSILUNTable.iSCSILUNEntry.iSCSILUNIoSizeRead[{#LUNINDEX}]</key>
                            <value_type>FLOAT</value_type>
                            <units>B</units>
                            <description>LUN average io size when reading.</description>
                            <applications>
                                <application>
                                    <name>Synology iSCSI LUN</name>
                                </application>
                            </applications>
                        </item_prototype>
                        <item_prototype>
                            <name>IO Size Write on LUN {#LUNNAME} ({#LUNUID})</name>
                            <type>SNMP_AGENT</type>
                            <snmp_oid>.1.3.4.1.4.1.6574.104.1.1.15.[{#LUNINDEX}]</snmp_oid>
                            <key>synologyiSCSILUN.iSCSILUNTable.iSCSILUNEntry.iSCSILUNIoSizeWrite[{#LUNINDEX}]</key>
                            <value_type>FLOAT</value_type>
                            <units>B</units>
                            <description>LUN average io size when writing.</description>
                            <applications>
                                <application>
                                    <name>Synology iSCSI LUN</name>
                                </application>
                            </applications>
                        </item_prototype>
                        <item_prototype>
                            <name>Network Latency TX on LUN {#LUNNAME} ({#LUNUID})</name>
                            <type>SNMP_AGENT</type>
                            <snmp_oid>.1.3.4.1.4.1.6574.104.1.1.12.[{#LUNINDEX}]</snmp_oid>
                            <key>synologyiSCSILUN.iSCSILUNTable.iSCSILUNEntry.iSCSILUNNetworkLatencyTx[{#LUNINDEX}]</key>
                            <value_type>FLOAT</value_type>
                            <units>ms</units>
                            <description>LUN network tx latency.</description>
                            <applications>
                                <application>
                                    <name>Synology iSCSI LUN</name>
                                </application>
                            </applications>
                        </item_prototype>
                        <item_prototype>
                            <name>Throughput Read High on LUN {#LUNNAME} ({#LUNUID})</name>
                            <type>SNMP_AGENT</type>
                            <snmp_oid>.1.3.4.1.4.1.6574.104.1.1.4.[{#LUNINDEX}]</snmp_oid>
                            <key>synologyiSCSILUN.iSCSILUNTable.iSCSILUNEntry.iSCSILUNThroughputReadHigh[{#LUNINDEX}]</key>
                            <value_type>FLOAT</value_type>
                            <units>bps</units>
                            <description>LUN read throughput over 32 bits part.</description>
                            <applications>
                                <application>
                                    <name>Synology iSCSI LUN</name>
                                </application>
                            </applications>
                        </item_prototype>
                        <item_prototype>
                            <name>Throughput Read Low on LUN {#LUNNAME} ({#LUNUID})</name>
                            <type>SNMP_AGENT</type>
                            <snmp_oid>.1.3.4.1.4.1.6574.104.1.1.5.[{#LUNINDEX}]</snmp_oid>
                            <key>synologyiSCSILUN.iSCSILUNTable.iSCSILUNEntry.iSCSILUNThroughputReadLow[{#LUNINDEX}]</key>
                            <value_type>FLOAT</value_type>
                            <units>bps</units>
                            <description>LUN read throughput over 32 bits part.</description>
                            <applications>
                                <application>
                                    <name>Synology iSCSI LUN</name>
                                </application>
                            </applications>
                        </item_prototype>
                        <item_prototype>
                            <name>Throughput Write High on LUN {#LUNNAME} ({#LUNUID})</name>
                            <type>SNMP_AGENT</type>
                            <snmp_oid>.1.3.4.1.4.1.6574.104.1.1.6.[{#LUNINDEX}]</snmp_oid>
                            <key>synologyiSCSILUN.iSCSILUNTable.iSCSILUNEntry.iSCSILUNThroughputWriteHigh[{#LUNINDEX}]</key>
                            <value_type>FLOAT</value_type>
                            <units>bps</units>
                            <description>The higher 32 bit of write throughput.</description>
                            <applications>
                                <application>
                                    <name>Synology iSCSI LUN</name>
                                </application>
                            </applications>
                        </item_prototype>
                        <item_prototype>
                            <name>Throughput Write Low on LUN {#LUNNAME} ({#LUNUID})</name>
                            <type>SNMP_AGENT</type>
                            <snmp_oid>.1.3.4.1.4.1.6574.104.1.1.7.[{#LUNINDEX}]</snmp_oid>
                            <key>synologyiSCSILUN.iSCSILUNTable.iSCSILUNEntry.iSCSILUNThroughputWriteLow[{#LUNINDEX}]</key>
                            <value_type>FLOAT</value_type>
                            <units>bps</units>
                            <description>The lower 32 bit of write throughput.</description>
                            <applications>
                                <application>
                                    <name>Synology iSCSI LUN</name>
                                </application>
                            </applications>
                        </item_prototype>
                    </item_prototypes>
                </discovery_rule>
                <discovery_rule>
                    <name>Synology Service(s)</name>
                    <type>SNMP_AGENT</type>
                    <snmp_oid>discovery[{#SNMPVALUE},.1.3.6.1.4.1.6574.6.1.1.2]</snmp_oid>
                    <key>synologyService.serviceTable.serviceEntry</key>
                    <delay>1h</delay>
                    <status>DISABLED</status>
                    <description>An entry containing Service information.</description>
                    <item_prototypes>
                        <item_prototype>
                            <name>{#SNMPVALUE} Users</name>
                            <type>SNMP_AGENT</type>
                            <snmp_oid>.1.3.6.1.4.1.6574.6.1.1.3.{#SNMPINDEX}</snmp_oid>
                            <key>synologyService.serviceTable.serviceEntry.serviceUsers.[{#SNMPINDEX}]</key>
                            <units>user(s)</units>
                            <description>Number of users using this service.</description>
                            <applications>
                                <application>
                                    <name>Synology Services</name>
                                </application>
                            </applications>
                        </item_prototype>
                    </item_prototypes>
                    <graph_prototypes>
                        <graph_prototype>
                            <name>Service: {#SNMPVALUE} Users</name>
                            <show_triggers>NO</show_triggers>
                            <ymin_type_1>ITEM</ymin_type_1>
                            <ymin_item_1>
                                <host>Template Synology DiskStation 2021</host>
                                <key>synologyService.serviceTable.serviceEntry.serviceUsers.[{#SNMPINDEX}]</key>
                            </ymin_item_1>
                            <ymax_type_1>ITEM</ymax_type_1>
                            <ymax_item_1>
                                <host>Template Synology DiskStation 2021</host>
                                <key>synologyService.serviceTable.serviceEntry.serviceUsers.[{#SNMPINDEX}]</key>
                            </ymax_item_1>
                            <graph_items>
                                <graph_item>
                                    <color>0000EE</color>
                                    <calc_fnc>ALL</calc_fnc>
                                    <item>
                                        <host>Template Synology DiskStation 2021</host>
                                        <key>synologyService.serviceTable.serviceEntry.serviceUsers.[{#SNMPINDEX}]</key>
                                    </item>
                                </graph_item>
                            </graph_items>
                        </graph_prototype>
                    </graph_prototypes>
                </discovery_rule>
                <discovery_rule>
                    <name>Synology RAID Volume(s)</name>
                    <type>SNMP_AGENT</type>
                    <snmp_oid>discovery[{#SNMPVALUE},.1.3.6.1.4.1.6574.3.1.1.2]</snmp_oid>
                    <key>synoRaid.raidTable.raidEntry</key>
                    <delay>1h</delay>
                    <item_prototypes>
                        <item_prototype>
                            <name>{#SNMPVALUE} RAID Name</name>
                            <type>SNMP_AGENT</type>
                            <snmp_oid>.1.3.6.1.4.1.6574.3.1.1.2.{#SNMPINDEX}</snmp_oid>
                            <key>synoRaid.raidTable.raidEntry.raidName.[{#SNMPINDEX}]</key>
                            <delay>1d</delay>
                            <trends>0</trends>
                            <value_type>TEXT</value_type>
                            <description>Synology raid name: the name of each raid will be showed here.</description>
                            <applications>
                                <application>
                                    <name>Synology RAID</name>
                                </application>
                            </applications>
                        </item_prototype>
                        <item_prototype>
                            <name>{#SNMPVALUE} RAID Status</name>
                            <type>SNMP_AGENT</type>
                            <snmp_oid>.1.3.6.1.4.1.6574.3.1.1.3.{#SNMPINDEX}</snmp_oid>
                            <key>synoRaid.raidTable.raidEntry.raidStatus.[{#SNMPINDEX}]</key>
                            <delay>3m</delay>
                            <description>Synology Raid status: each meanings of status represented describe below:&#13;
[1] Normal: the raid functions normally.&#13;
[11] Degrade: degrade happens when a tolerable failure of disk(s) occurs.&#13;
[12] Crashed: raid has crashed and just uses for read-only operation.&#13;
&#13;
Note: other status will be showed when creating or deleting raids, including below status:&#13;
[2] Repairing,&#13;
[3] Migrating,&#13;
[4] Expanding, &#13;
[5] Deleting,&#13;
[6] Creating(6),&#13;
[7] RaidSyncing,&#13;
[8] RaidParityChecking,&#13;
[9] RaidAssembling and&#13;
[10] Canceling.</description>
                            <applications>
                                <application>
                                    <name>Synology RAID</name>
                                </application>
                            </applications>
                            <valuemap>
                                <name>SYNOLOGY-RAID-MIB::raidStatus</name>
                            </valuemap>
                            <trigger_prototypes>
                                <trigger_prototype>
                                    <expression>{last()}&gt;1 and {last()}&lt;11</expression>
                                    <name>Raid status on {HOSTNAME}: abnormal</name>
                                    <priority>WARNING</priority>
                                    <description>Repairing(2)&#13;
Migrating(3)&#13;
Expanding(4)&#13;
Deleting(5)&#13;
Creating(6)&#13;
RaidSyncing(7)&#13;
RaidParityChecking(8)&#13;
RaidAssembling(9)&#13;
Canceling(10)</description>
                                </trigger_prototype>
                                <trigger_prototype>
                                    <expression>{last()}=12</expression>
                                    <name>Raid status on {HOSTNAME}: crashed</name>
                                    <priority>HIGH</priority>
                                    <description>RAID has crashed and is now read-only.</description>
                                </trigger_prototype>
                                <trigger_prototype>
                                    <expression>{last()}=11</expression>
                                    <name>Raid status on {HOSTNAME}: degrade</name>
                                    <priority>AVERAGE</priority>
                                    <description>Degrade is shown when a tolerable failure of disk(s) occurs.</description>
                                </trigger_prototype>
                            </trigger_prototypes>
                        </item_prototype>
                    </item_prototypes>
                </discovery_rule>
            </discovery_rules>
            <macros>
                <macro>
                    <macro>{$DISK_UTIL_HIGH}</macro>
                    <value>90</value>
                </macro>
                <macro>
                    <macro>{$DISK_UTIL_WARN}</macro>
                    <value>80</value>
                </macro>
            </macros>
        </template>
    </templates>
    <graphs>
        <graph>
            <name>CPU: Idle System User</name>
            <height>300</height>
            <graph_items>
                <graph_item>
                    <drawtype>BOLD_LINE</drawtype>
                    <color>1A7C11</color>
                    <calc_fnc>ALL</calc_fnc>
                    <item>
                        <host>Template Synology DiskStation 2021</host>
                        <key>synoSystem.ssCpuIdle</key>
                    </item>
                </graph_item>
                <graph_item>
                    <sortorder>1</sortorder>
                    <color>F63100</color>
                    <calc_fnc>ALL</calc_fnc>
                    <item>
                        <host>Template Synology DiskStation 2021</host>
                        <key>synoSystem.ssCpuSystem</key>
                    </item>
                </graph_item>
                <graph_item>
                    <sortorder>2</sortorder>
                    <color>2774A4</color>
                    <calc_fnc>ALL</calc_fnc>
                    <item>
                        <host>Template Synology DiskStation 2021</host>
                        <key>synoSystem.ssCpuUser</key>
                    </item>
                </graph_item>
            </graph_items>
        </graph>
        <graph>
            <name>Memory: Physical Memory (Exploded)</name>
            <width>600</width>
            <height>340</height>
            <yaxismax>0</yaxismax>
            <show_work_period>NO</show_work_period>
            <show_triggers>NO</show_triggers>
            <type>EXPLODED</type>
            <show_3d>YES</show_3d>
            <graph_items>
                <graph_item>
                    <color>6C59DC</color>
                    <calc_fnc>LAST</calc_fnc>
                    <type>GRAPH_SUM</type>
                    <item>
                        <host>Template Synology DiskStation 2021</host>
                        <key>ucdavis.memory.memTotalReal</key>
                    </item>
                </graph_item>
                <graph_item>
                    <sortorder>1</sortorder>
                    <color>EEEE00</color>
                    <calc_fnc>LAST</calc_fnc>
                    <item>
                        <host>Template Synology DiskStation 2021</host>
                        <key>ucdavis.memory.memAvailReal</key>
                    </item>
                </graph_item>
            </graph_items>
        </graph>
        <graph>
            <name>Memory: Swap Memory (Exploded)</name>
            <width>600</width>
            <height>340</height>
            <yaxismax>0</yaxismax>
            <show_work_period>NO</show_work_period>
            <show_triggers>NO</show_triggers>
            <type>EXPLODED</type>
            <show_3d>YES</show_3d>
            <graph_items>
                <graph_item>
                    <color>A54F10</color>
                    <calc_fnc>LAST</calc_fnc>
                    <type>GRAPH_SUM</type>
                    <item>
                        <host>Template Synology DiskStation 2021</host>
                        <key>ucdavis.memory.memTotalSwap</key>
                    </item>
                </graph_item>
                <graph_item>
                    <sortorder>1</sortorder>
                    <color>2774A4</color>
                    <calc_fnc>LAST</calc_fnc>
                    <item>
                        <host>Template Synology DiskStation 2021</host>
                        <key>ucdavis.memory.memAvailSwap</key>
                    </item>
                </graph_item>
            </graph_items>
        </graph>
        <graph>
            <name>System: Temperature</name>
            <graph_items>
                <graph_item>
                    <drawtype>FILLED_REGION</drawtype>
                    <color>2774A4</color>
                    <calc_fnc>ALL</calc_fnc>
                    <item>
                        <host>Template Synology DiskStation 2021</host>
                        <key>synoSystem.temperature</key>
                    </item>
                </graph_item>
            </graph_items>
        </graph>
    </graphs>
    <value_maps>
        <value_map>
            <name>SYNOLOGY-DISK-MIB::diskStatus</name>
            <mappings>
                <mapping>
                    <value>1</value>
                    <newvalue>Normal</newvalue>
                </mapping>
                <mapping>
                    <value>2</value>
                    <newvalue>Initialized</newvalue>
                </mapping>
                <mapping>
                    <value>3</value>
                    <newvalue>Not Initialized</newvalue>
                </mapping>
                <mapping>
                    <value>4</value>
                    <newvalue>System Partition Failed</newvalue>
                </mapping>
                <mapping>
                    <value>5</value>
                    <newvalue>Crashed</newvalue>
                </mapping>
            </mappings>
        </value_map>
        <value_map>
            <name>SYNOLOGY-RAID-MIB::raidStatus</name>
            <mappings>
                <mapping>
                    <value>1</value>
                    <newvalue>Normal</newvalue>
                </mapping>
                <mapping>
                    <value>2</value>
                    <newvalue>Repairing</newvalue>
                </mapping>
                <mapping>
                    <value>3</value>
                    <newvalue>Migrating</newvalue>
                </mapping>
                <mapping>
                    <value>4</value>
                    <newvalue>Expanding</newvalue>
                </mapping>
                <mapping>
                    <value>5</value>
                    <newvalue>Deleting</newvalue>
                </mapping>
                <mapping>
                    <value>6</value>
                    <newvalue>Creating</newvalue>
                </mapping>
                <mapping>
                    <value>7</value>
                    <newvalue>Raid Syncing</newvalue>
                </mapping>
                <mapping>
                    <value>8</value>
                    <newvalue>Raid Parity Checking</newvalue>
                </mapping>
                <mapping>
                    <value>9</value>
                    <newvalue>Raid Assembling</newvalue>
                </mapping>
                <mapping>
                    <value>10</value>
                    <newvalue>Canceling</newvalue>
                </mapping>
                <mapping>
                    <value>11</value>
                    <newvalue>Degraded</newvalue>
                </mapping>
                <mapping>
                    <value>12</value>
                    <newvalue>Crashed</newvalue>
                </mapping>
            </mappings>
        </value_map>
        <value_map>
            <name>SYNOLOGY-SYSTEM-MIB::powerStatus</name>
            <mappings>
                <mapping>
                    <value>1</value>
                    <newvalue>Normal</newvalue>
                </mapping>
                <mapping>
                    <value>2</value>
                    <newvalue>Failed</newvalue>
                </mapping>
            </mappings>
        </value_map>
        <value_map>
            <name>SYNOLOGY-SYSTEM-MIB::systemStatus</name>
            <mappings>
                <mapping>
                    <value>1</value>
                    <newvalue>Normal</newvalue>
                </mapping>
                <mapping>
                    <value>2</value>
                    <newvalue>Failed</newvalue>
                </mapping>
            </mappings>
        </value_map>
        <value_map>
            <name>SYNOLOGY-SYSTEM-MIB::upgradeAvailable</name>
            <mappings>
                <mapping>
                    <value>1</value>
                    <newvalue>Available</newvalue>
                </mapping>
                <mapping>
                    <value>2</value>
                    <newvalue>Unavailable</newvalue>
                </mapping>
                <mapping>
                    <value>3</value>
                    <newvalue>Connecting</newvalue>
                </mapping>
                <mapping>
                    <value>4</value>
                    <newvalue>Disconnected</newvalue>
                </mapping>
                <mapping>
                    <value>5</value>
                    <newvalue>Others</newvalue>
                </mapping>
            </mappings>
        </value_map>
    </value_maps>
</zabbix_export>
