forked from fernandobrunelli/Zabbix-Templates
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Template Module Windows physical disks by Zabbix agent active.xml
186 lines (186 loc) · 10.1 KB
/
Template Module Windows physical disks by Zabbix agent active.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
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
<?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 Windows physical disks by Zabbix agent active</template>
<name>Template Module Windows physical disks by Zabbix agent active</name>
<description>Template tooling version used: 0.37</description>
<groups>
<group>
<name>Templates/Modules</name>
</group>
</groups>
<applications>
<application>
<name>Storage</name>
</application>
</applications>
<discovery_rules>
<discovery_rule>
<name>Physical disks discovery</name>
<type>ZABBIX_ACTIVE</type>
<key>perf_instance_en.discovery[PhysicalDisk]</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>Discovery of installed physical disks.</description>
<item_prototypes>
<item_prototype>
<name>{#DEVNAME}: Disk utilization</name>
<type>ZABBIX_ACTIVE</type>
<key>perf_counter_en["\PhysicalDisk({#DEVNAME})\% Disk Time",60]</key>
<history>7d</history>
<value_type>FLOAT</value_type>
<units>%</units>
<description>This item is the percentage of elapsed time that the selected disk drive was busy servicing read or writes requests.</description>
<application_prototypes>
<application_prototype>
<name>Disk {#DEVNAME}</name>
</application_prototype>
</application_prototypes>
<trigger_prototypes>
<trigger_prototype>
<expression>{min(15m)}>{$VFS.DEV.UTIL.MAX.WARN}</expression>
<name>{#DEVNAME}: Disk is overloaded (util > {$VFS.DEV.UTIL.MAX.WARN}% for 15m)</name>
<priority>WARNING</priority>
<description>The disk appears to be under heavy load</description>
<manual_close>YES</manual_close>
</trigger_prototype>
</trigger_prototypes>
</item_prototype>
<item_prototype>
<name>{#DEVNAME}: Disk average queue size (avgqu-sz)</name>
<type>ZABBIX_ACTIVE</type>
<key>perf_counter_en["\PhysicalDisk({#DEVNAME})\Current Disk Queue Length",60]</key>
<history>7d</history>
<value_type>FLOAT</value_type>
<description>Current average disk queue, the number of requests outstanding on the disk at the time the performance data is collected.</description>
<application_prototypes>
<application_prototype>
<name>Disk {#DEVNAME}</name>
</application_prototype>
</application_prototypes>
</item_prototype>
<item_prototype>
<name>{#DEVNAME}: Disk read rate</name>
<type>ZABBIX_ACTIVE</type>
<key>perf_counter_en["\PhysicalDisk({#DEVNAME})\Disk Reads/sec",60]</key>
<history>7d</history>
<value_type>FLOAT</value_type>
<units>!r/s</units>
<description>Rate of read operations on the 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>ZABBIX_ACTIVE</type>
<key>perf_counter_en["\PhysicalDisk({#DEVNAME})\Disk Writes/sec",60]</key>
<history>7d</history>
<value_type>FLOAT</value_type>
<units>!w/s</units>
<description>Rate of write operations on the disk.</description>
<application_prototypes>
<application_prototype>
<name>Disk {#DEVNAME}</name>
</application_prototype>
</application_prototypes>
</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 Windows physical disks by Zabbix agent active</host>
<key>perf_counter_en["\PhysicalDisk({#DEVNAME})\Disk Reads/sec",60]</key>
</item>
</graph_item>
<graph_item>
<sortorder>1</sortorder>
<drawtype>GRADIENT_LINE</drawtype>
<color>2774A4</color>
<item>
<host>Template Module Windows physical disks by Zabbix agent active</host>
<key>perf_counter_en["\PhysicalDisk({#DEVNAME})\Disk Writes/sec",60]</key>
</item>
</graph_item>
</graph_items>
</graph_prototype>
<graph_prototype>
<name>{#DEVNAME}: Disk utilization and queue</name>
<graph_items>
<graph_item>
<color>1A7C11</color>
<yaxisside>RIGHT</yaxisside>
<item>
<host>Template Module Windows physical disks by Zabbix agent active</host>
<key>perf_counter_en["\PhysicalDisk({#DEVNAME})\Current Disk Queue Length",60]</key>
</item>
</graph_item>
<graph_item>
<sortorder>1</sortorder>
<drawtype>GRADIENT_LINE</drawtype>
<color>2774A4</color>
<item>
<host>Template Module Windows physical disks by Zabbix agent active</host>
<key>perf_counter_en["\PhysicalDisk({#DEVNAME})\% Disk Time",60]</key>
</item>
</graph_item>
</graph_items>
</graph_prototype>
</graph_prototypes>
<preprocessing>
<step>
<type>STR_REPLACE</type>
<params>{#INSTANCE}
{#DEVNAME}</params>
</step>
</preprocessing>
</discovery_rule>
</discovery_rules>
<macros>
<macro>
<macro>{$VFS.DEV.DEVNAME.MATCHES}</macro>
<value>.*</value>
<description>This macro is used in physical disks discovery. Can be overridden on the host or linked template level.</description>
</macro>
<macro>
<macro>{$VFS.DEV.DEVNAME.NOT_MATCHES}</macro>
<value>_Total</value>
<description>This macro is used in physical disks discovery. Can be overridden on the host or linked template level.</description>
</macro>
<macro>
<macro>{$VFS.DEV.UTIL.MAX.WARN}</macro>
<value>95</value>
<description>The warning threshold of disk time utilization in percent.</description>
</macro>
</macros>
</template>
</templates>
</zabbix_export>