forked from fernandobrunelli/Zabbix-Templates
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Template Module Linux block devices SNMP.xml
152 lines (152 loc) · 7.6 KB
/
Template Module Linux block devices SNMP.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
<?xml version="1.0" encoding="UTF-8"?>
<zabbix_export>
<version>5.0</version>
<groups>
<group>
<name>Templates/Modules</name>
</group>
</groups>
<templates>
<template>
<template>Template Module Linux block devices SNMP</template>
<name>Template Module Linux block devices SNMP</name>
<description>MIBs used:
UCD-DISKIO-MIB
Template tooling version used: 0.36</description>
<groups>
<group>
<name>Templates/Modules</name>
</group>
</groups>
<applications>
<application>
<name>Storage</name>
</application>
</applications>
<discovery_rules>
<discovery_rule>
<name>Block devices discovery</name>
<type>SNMP_AGENT</type>
<snmp_oid>discovery[{#DEVNAME},1.3.6.1.4.1.2021.13.15.1.1.2]</snmp_oid>
<key>vfs.dev.discovery[snmp]</key>
<delay>1h</delay>
<filter>
<evaltype>AND</evaltype>
<conditions>
<condition>
<macro>{#DEVNAME}</macro>
<value>{$VFS.DEV.DEVNAME.MATCHES}</value>
<formulaid>A</formulaid>
</condition>
<condition>
<macro>{#DEVNAME}</macro>
<value>{$VFS.DEV.DEVNAME.NOT_MATCHES}</value>
<operator>NOT_MATCHES_REGEX</operator>
<formulaid>B</formulaid>
</condition>
</conditions>
</filter>
<description>Block devices are discovered from UCD-DISKIO-MIB::diskIOTable (http://net-snmp.sourceforge.net/docs/mibs/ucdDiskIOMIB.html#diskIOTable)</description>
<item_prototypes>
<item_prototype>
<name>{#DEVNAME}: Disk read rate</name>
<type>SNMP_AGENT</type>
<snmp_oid>1.3.6.1.4.1.2021.13.15.1.1.5.{#SNMPINDEX}</snmp_oid>
<key>vfs.dev.read.rate[diskIOReads.{#SNMPINDEX}]</key>
<history>7d</history>
<value_type>FLOAT</value_type>
<units>!r/s</units>
<description>MIB: UCD-DISKIO-MIB
The number of read accesses from this device since boot.</description>
<application_prototypes>
<application_prototype>
<name>Disk {#DEVNAME}</name>
</application_prototype>
</application_prototypes>
<preprocessing>
<step>
<type>CHANGE_PER_SECOND</type>
<params/>
</step>
</preprocessing>
</item_prototype>
<item_prototype>
<name>{#DEVNAME}: Disk utilization</name>
<type>SNMP_AGENT</type>
<snmp_oid>1.3.6.1.4.1.2021.13.15.1.1.9.{#SNMPINDEX}</snmp_oid>
<key>vfs.dev.util[diskIOLA1.{#SNMPINDEX}]</key>
<history>7d</history>
<value_type>FLOAT</value_type>
<units>%</units>
<description>MIB: UCD-DISKIO-MIB
The 1 minute average load of disk (%)</description>
<application_prototypes>
<application_prototype>
<name>Disk {#DEVNAME}</name>
</application_prototype>
</application_prototypes>
</item_prototype>
<item_prototype>
<name>{#DEVNAME}: Disk write rate</name>
<type>SNMP_AGENT</type>
<snmp_oid>1.3.6.1.4.1.2021.13.15.1.1.6.{#SNMPINDEX}</snmp_oid>
<key>vfs.dev.write.rate[diskIOWrites.{#SNMPINDEX}]</key>
<history>7d</history>
<value_type>FLOAT</value_type>
<units>!w/s</units>
<description>MIB: UCD-DISKIO-MIB
The number of write accesses from this device since boot.</description>
<application_prototypes>
<application_prototype>
<name>Disk {#DEVNAME}</name>
</application_prototype>
</application_prototypes>
<preprocessing>
<step>
<type>CHANGE_PER_SECOND</type>
<params/>
</step>
</preprocessing>
</item_prototype>
</item_prototypes>
<graph_prototypes>
<graph_prototype>
<name>{#DEVNAME}: Disk read/write rates</name>
<graph_items>
<graph_item>
<color>1A7C11</color>
<item>
<host>Template Module Linux block devices SNMP</host>
<key>vfs.dev.read.rate[diskIOReads.{#SNMPINDEX}]</key>
</item>
</graph_item>
<graph_item>
<sortorder>1</sortorder>
<drawtype>GRADIENT_LINE</drawtype>
<color>2774A4</color>
<item>
<host>Template Module Linux block devices SNMP</host>
<key>vfs.dev.write.rate[diskIOWrites.{#SNMPINDEX}]</key>
</item>
</graph_item>
</graph_items>
</graph_prototype>
</graph_prototypes>
</discovery_rule>
</discovery_rules>
<macros>
<macro>
<macro>{$VFS.DEV.DEVNAME.MATCHES}</macro>
<value>.+</value>
<description>This macro is used in block devices discovery. Can be overridden on the host or linked template level</description>
</macro>
<macro>
<macro>{$VFS.DEV.DEVNAME.NOT_MATCHES}</macro>
<value>^(loop[0-9]*|sd[a-z][0-9]+|nbd[0-9]+|sr[0-9]+|fd[0-9]+|dm-[0-9]+|ram[0-9]+|ploop[a-z0-9]+|md[0-9]*|hcp[0-9]*|zram[0-9]*)</value>
<description>This macro is used in block devices discovery. Can be overridden on the host or linked template level</description>
</macro>
</macros>
</template>
</templates>
</zabbix_export>