Skip to content

Instantly share code, notes, and snippets.

@xdays
Last active December 29, 2015 15:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save xdays/7689567 to your computer and use it in GitHub Desktop.
Save xdays/7689567 to your computer and use it in GitHub Desktop.
Zabbix DiskIO template based on SNMP
<?xml version="1.0" encoding="UTF-8"?>
<zabbix_export>
<version>2.0</version>
<date>2013-11-28T09:40:30Z</date>
<groups>
<group>
<name>Templates</name>
</group>
</groups>
<templates>
<template>
<template>Template SNMP DiskIO</template>
<name>Template SNMP DiskIO</name>
<groups>
<group>
<name>Templates</name>
</group>
</groups>
<applications>
<application>
<name>Disk IO</name>
</application>
</applications>
<items/>
<discovery_rules>
<discovery_rule>
<name>IO Devices</name>
<type>4</type>
<snmp_community>{$SNMP_COMMUNITY}</snmp_community>
<snmp_oid>UCD-DISKIO-MIB::diskIODevice</snmp_oid>
<key>diskIODevice</key>
<delay>600</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/>
<delay_flex/>
<params/>
<ipmi_sensor/>
<authtype>0</authtype>
<username/>
<password/>
<publickey/>
<privatekey/>
<port/>
<filter>{#SNMPVALUE}:@IO Device</filter>
<lifetime>30</lifetime>
<description/>
<item_prototypes>
<item_prototype>
<name>Bytes read on $1</name>
<type>4</type>
<snmp_community>{$SNMP_COMMUNITY}</snmp_community>
<multiplier>0</multiplier>
<snmp_oid>UCD-DISKIO-MIB::diskIONReadX.{#SNMPINDEX}</snmp_oid>
<key>diskIONReadX[{#SNMPVALUE}]</key>
<delay>30</delay>
<history>14</history>
<trends>365</trends>
<status>0</status>
<value_type>0</value_type>
<allowed_hosts/>
<units>Bps</units>
<delta>1</delta>
<snmpv3_contextname/>
<snmpv3_securityname/>
<snmpv3_securitylevel>0</snmpv3_securitylevel>
<snmpv3_authprotocol>0</snmpv3_authprotocol>
<snmpv3_authpassphrase/>
<snmpv3_privprotocol>0</snmpv3_privprotocol>
<snmpv3_privpassphrase/>
<formula>1</formula>
<delay_flex/>
<params/>
<ipmi_sensor/>
<data_type>0</data_type>
<authtype>0</authtype>
<username/>
<password/>
<publickey/>
<privatekey/>
<port/>
<description>http://net-snmp.sourceforge.net/docs/mibs/ucdDiskIOMIB.html</description>
<inventory_link>0</inventory_link>
<applications>
<application>
<name>Disk IO</name>
</application>
</applications>
<valuemap/>
</item_prototype>
<item_prototype>
<name>Bytes written on $1</name>
<type>4</type>
<snmp_community>{$SNMP_COMMUNITY}</snmp_community>
<multiplier>0</multiplier>
<snmp_oid>UCD-DISKIO-MIB::diskIONWrittenX.{#SNMPINDEX}</snmp_oid>
<key>diskIONWrittenX[{#SNMPVALUE}]</key>
<delay>30</delay>
<history>14</history>
<trends>365</trends>
<status>0</status>
<value_type>0</value_type>
<allowed_hosts/>
<units>Bps</units>
<delta>1</delta>
<snmpv3_contextname/>
<snmpv3_securityname/>
<snmpv3_securitylevel>0</snmpv3_securitylevel>
<snmpv3_authprotocol>0</snmpv3_authprotocol>
<snmpv3_authpassphrase/>
<snmpv3_privprotocol>0</snmpv3_privprotocol>
<snmpv3_privpassphrase/>
<formula>1</formula>
<delay_flex/>
<params/>
<ipmi_sensor/>
<data_type>0</data_type>
<authtype>0</authtype>
<username/>
<password/>
<publickey/>
<privatekey/>
<port/>
<description>http://net-snmp.sourceforge.net/docs/mibs/ucdDiskIOMIB.html</description>
<inventory_link>0</inventory_link>
<applications>
<application>
<name>Disk IO</name>
</application>
</applications>
<valuemap/>
</item_prototype>
<item_prototype>
<name>IO Read operations on $1</name>
<type>4</type>
<snmp_community>{$SNMP_COMMUNITY}</snmp_community>
<multiplier>0</multiplier>
<snmp_oid>UCD-DISKIO-MIB::diskIOReads.{#SNMPINDEX}</snmp_oid>
<key>diskIOReads[{#SNMPVALUE}]</key>
<delay>30</delay>
<history>14</history>
<trends>365</trends>
<status>0</status>
<value_type>0</value_type>
<allowed_hosts/>
<units>io</units>
<delta>1</delta>
<snmpv3_contextname/>
<snmpv3_securityname/>
<snmpv3_securitylevel>0</snmpv3_securitylevel>
<snmpv3_authprotocol>0</snmpv3_authprotocol>
<snmpv3_authpassphrase/>
<snmpv3_privprotocol>0</snmpv3_privprotocol>
<snmpv3_privpassphrase/>
<formula>1</formula>
<delay_flex/>
<params/>
<ipmi_sensor/>
<data_type>0</data_type>
<authtype>0</authtype>
<username/>
<password/>
<publickey/>
<privatekey/>
<port/>
<description>http://net-snmp.sourceforge.net/docs/mibs/ucdDiskIOMIB.html</description>
<inventory_link>0</inventory_link>
<applications>
<application>
<name>Disk IO</name>
</application>
</applications>
<valuemap/>
</item_prototype>
<item_prototype>
<name>IO Write operations on $1</name>
<type>4</type>
<snmp_community>{$SNMP_COMMUNITY}</snmp_community>
<multiplier>0</multiplier>
<snmp_oid>UCD-DISKIO-MIB::diskIOWrites.{#SNMPINDEX}</snmp_oid>
<key>diskIOWrites[{#SNMPVALUE}]</key>
<delay>30</delay>
<history>14</history>
<trends>365</trends>
<status>0</status>
<value_type>0</value_type>
<allowed_hosts/>
<units>io</units>
<delta>1</delta>
<snmpv3_contextname/>
<snmpv3_securityname/>
<snmpv3_securitylevel>0</snmpv3_securitylevel>
<snmpv3_authprotocol>0</snmpv3_authprotocol>
<snmpv3_authpassphrase/>
<snmpv3_privprotocol>0</snmpv3_privprotocol>
<snmpv3_privpassphrase/>
<formula>1</formula>
<delay_flex/>
<params/>
<ipmi_sensor/>
<data_type>0</data_type>
<authtype>0</authtype>
<username/>
<password/>
<publickey/>
<privatekey/>
<port/>
<description>http://net-snmp.sourceforge.net/docs/mibs/ucdDiskIOMIB.html</description>
<inventory_link>0</inventory_link>
<applications>
<application>
<name>Disk IO</name>
</application>
</applications>
<valuemap/>
</item_prototype>
</item_prototypes>
<trigger_prototypes/>
<graph_prototypes>
<graph_prototype>
<name>IO Summary for {#SNMPVALUE}</name>
<width>900</width>
<height>200</height>
<yaxismin>0.0000</yaxismin>
<yaxismax>100.0000</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>0</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>66FF66</color>
<yaxisside>0</yaxisside>
<calc_fnc>2</calc_fnc>
<type>0</type>
<item>
<host>Template SNMP DiskIO</host>
<key>diskIONReadX[{#SNMPVALUE}]</key>
</item>
</graph_item>
<graph_item>
<sortorder>1</sortorder>
<drawtype>5</drawtype>
<color>EE0000</color>
<yaxisside>0</yaxisside>
<calc_fnc>2</calc_fnc>
<type>0</type>
<item>
<host>Template SNMP DiskIO</host>
<key>diskIONWrittenX[{#SNMPVALUE}]</key>
</item>
</graph_item>
<graph_item>
<sortorder>2</sortorder>
<drawtype>0</drawtype>
<color>00CCCC</color>
<yaxisside>1</yaxisside>
<calc_fnc>2</calc_fnc>
<type>0</type>
<item>
<host>Template SNMP DiskIO</host>
<key>diskIOReads[{#SNMPVALUE}]</key>
</item>
</graph_item>
<graph_item>
<sortorder>3</sortorder>
<drawtype>0</drawtype>
<color>EE00EE</color>
<yaxisside>1</yaxisside>
<calc_fnc>2</calc_fnc>
<type>0</type>
<item>
<host>Template SNMP DiskIO</host>
<key>diskIOWrites[{#SNMPVALUE}]</key>
</item>
</graph_item>
</graph_items>
</graph_prototype>
</graph_prototypes>
<host_prototypes/>
</discovery_rule>
</discovery_rules>
<macros/>
<templates/>
<screens/>
</template>
</templates>
</zabbix_export>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment