-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathTemplate Lsi RAID Controller.xml
223 lines (223 loc) · 12.6 KB
/
Template Lsi RAID Controller.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
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
<?xml version="1.0" encoding="UTF-8"?>
<zabbix_export>
<version>4.4</version>
<date>2020-04-14T06:45:58Z</date>
<groups>
<group>
<name>Templates Users</name>
</group>
</groups>
<templates>
<template>
<template>Template Lsi RAID Controller</template>
<name>Template Lsi RAID Controller</name>
<groups>
<group>
<name>Templates Users</name>
</group>
</groups>
<discovery_rules>
<discovery_rule>
<name>Lsi Controllers Discovery</name>
<key>lsi.raid[lld,ad]</key>
<delay>1d</delay>
<item_prototypes>
<item_prototype>
<name>Lsi Controller No.{#CTRL.ID}:{#CTRL.SN} state</name>
<type>ZABBIX_ACTIVE</type>
<key>lsi.raid[health,ad,{#CTRL.ID},main]</key>
<delay>6h</delay>
<history>365d</history>
<trends>0</trends>
<status>DISABLED</status>
<value_type>TEXT</value_type>
<application_prototypes>
<application_prototype>
<name>Lsi Controllers</name>
</application_prototype>
</application_prototypes>
<trigger_prototypes>
<trigger_prototype>
<expression>{regexp(Optimal)}=0</expression>
<recovery_mode>RECOVERY_EXPRESSION</recovery_mode>
<recovery_expression>{regexp(Optimal)}=1</recovery_expression>
<name>Lsi Controller No.{#CTRL.ID}:{#CTRL.SN} Status</name>
<status>DISABLED</status>
<priority>HIGH</priority>
<manual_close>YES</manual_close>
</trigger_prototype>
</trigger_prototypes>
</item_prototype>
<item_prototype>
<name>Lsi Controller No.{#CTRL.ID}:{#CTRL.SN} Temperature</name>
<type>ZABBIX_ACTIVE</type>
<key>lsi.raid[health,ad,{#CTRL.ID},temperature]</key>
<delay>5m</delay>
<application_prototypes>
<application_prototype>
<name>Lsi Controllers</name>
</application_prototype>
</application_prototypes>
<trigger_prototypes>
<trigger_prototype>
<expression>{last()}>{$TEMP_WARN}</expression>
<recovery_mode>RECOVERY_EXPRESSION</recovery_mode>
<recovery_expression>{last()}<{$TEMP_WARN}-5</recovery_expression>
<name>Lsi Controller No.{#CTRL.ID}:{#CTRL.SN} Temperature</name>
<priority>WARNING</priority>
<manual_close>YES</manual_close>
</trigger_prototype>
</trigger_prototypes>
</item_prototype>
</item_prototypes>
<trigger_prototypes>
<trigger_prototype>
<expression>{Template Lsi RAID Controller:lsi.raid[health,ad,{#CTRL.ID},main].nodata({$NODATA_TIME})}=1 or {Template Lsi RAID Controller:lsi.raid[health,ad,{#CTRL.ID},temperature].nodata({$NODATA_TIME})}=1</expression>
<recovery_mode>RECOVERY_EXPRESSION</recovery_mode>
<recovery_expression>{Template Lsi RAID Controller:lsi.raid[health,ad,{#CTRL.ID},main].nodata({$NODATA_TIME})}=0 or {Template Lsi RAID Controller:lsi.raid[health,ad,{#CTRL.ID},temperature].nodata({$NODATA_TIME})}=0</recovery_expression>
<name>Lsi Controller No.{#CTRL.ID}:{#CTRL.SN} No Data</name>
<priority>WARNING</priority>
<manual_close>YES</manual_close>
</trigger_prototype>
</trigger_prototypes>
<graph_prototypes>
<graph_prototype>
<name>Lsi RAID No. {#CTRL.ID}:{#CTRL.SN} Temperature</name>
<graph_items>
<graph_item>
<color>199C0D</color>
<item>
<host>Template Lsi RAID Controller</host>
<key>lsi.raid[health,ad,{#CTRL.ID},temperature]</key>
</item>
</graph_item>
</graph_items>
</graph_prototype>
</graph_prototypes>
</discovery_rule>
<discovery_rule>
<name>Lsi Battery Discovery</name>
<key>lsi.raid[lld,bt]</key>
<delay>1d</delay>
<item_prototypes>
<item_prototype>
<name>Lsi Battery No.{#CTRL.ID} state</name>
<type>ZABBIX_ACTIVE</type>
<key>lsi.raid[health,ad,{#CTRL.ID},battery]</key>
<delay>12h</delay>
<history>365d</history>
<trends>0</trends>
<value_type>TEXT</value_type>
<trigger_prototypes>
<trigger_prototype>
<expression>{nodata({$NODATA_TIME})}=1</expression>
<recovery_mode>RECOVERY_EXPRESSION</recovery_mode>
<recovery_expression>{nodata({$NODATA_TIME})}=0</recovery_expression>
<name>Lsi Battery No.$CTRL.ID} No Data</name>
<priority>WARNING</priority>
<manual_close>YES</manual_close>
</trigger_prototype>
<trigger_prototype>
<expression>{regexp(Optimal)}=0</expression>
<recovery_mode>RECOVERY_EXPRESSION</recovery_mode>
<recovery_expression>{regexp(Optimal)}=1</recovery_expression>
<name>Lsi Battery No.$CTRL.ID} Status</name>
<priority>HIGH</priority>
<manual_close>YES</manual_close>
</trigger_prototype>
</trigger_prototypes>
</item_prototype>
</item_prototypes>
</discovery_rule>
<discovery_rule>
<name>Lsi Logical Drives Discovery</name>
<key>lsi.raid[lld,ld]</key>
<delay>5h;1h/1-7,08:00-21:00</delay>
<item_prototypes>
<item_prototype>
<name>Lsi Logical Drive {#CTRL.ID}:{#LD.NAME} state</name>
<type>ZABBIX_ACTIVE</type>
<key>lsi.raid[health,ld,{#CTRL.ID},{#LD.ID}]</key>
<delay>6h</delay>
<history>365d</history>
<trends>0</trends>
<value_type>TEXT</value_type>
<application_prototypes>
<application_prototype>
<name>Lsi Logical Drives</name>
</application_prototype>
</application_prototypes>
<trigger_prototypes>
<trigger_prototype>
<expression>{nodata({$NODATA_TIME})}=1</expression>
<recovery_mode>RECOVERY_EXPRESSION</recovery_mode>
<recovery_expression>{nodata({$NODATA_TIME})}=0</recovery_expression>
<name>Lsi Logical Drive {#LD.NAME} No Data</name>
<priority>WARNING</priority>
<manual_close>YES</manual_close>
</trigger_prototype>
<trigger_prototype>
<expression>{regexp(Optimal)}=0</expression>
<recovery_mode>RECOVERY_EXPRESSION</recovery_mode>
<recovery_expression>{regexp(Optimal)}=1</recovery_expression>
<name>Lsi Logical Drive {#LD.NAME} status</name>
<priority>HIGH</priority>
<manual_close>YES</manual_close>
</trigger_prototype>
</trigger_prototypes>
</item_prototype>
</item_prototypes>
</discovery_rule>
<discovery_rule>
<name>Lsi Physical Drives Discovery</name>
<key>lsi.raid[lld,pd]</key>
<delay>5h;1h/1-7,08:00-21:00</delay>
<item_prototypes>
<item_prototype>
<name>Lsi Physical Drive {#CTRL.ID}:{#ED.ID}:{#PD.ID}:{#PD.SN} state</name>
<type>ZABBIX_ACTIVE</type>
<key>lsi.raid[health,pd,{#CTRL.ID},{#PD.ID},{#ED.ID}]</key>
<delay>6h</delay>
<history>365d</history>
<trends>0</trends>
<value_type>TEXT</value_type>
<application_prototypes>
<application_prototype>
<name>Lsi Physical Drives</name>
</application_prototype>
</application_prototypes>
<trigger_prototypes>
<trigger_prototype>
<expression>{nodata({$NODATA_TIME})}=1</expression>
<recovery_mode>RECOVERY_EXPRESSION</recovery_mode>
<recovery_expression>{nodata({$NODATA_TIME})}=0</recovery_expression>
<name>Lsi Physical Drive {#CTRL.ID}:{#ED.ID}:{#PD.ID}:{#PD.SN} No Data</name>
<priority>WARNING</priority>
<manual_close>YES</manual_close>
</trigger_prototype>
<trigger_prototype>
<expression>{regexp(Online)}=0</expression>
<recovery_mode>RECOVERY_EXPRESSION</recovery_mode>
<recovery_expression>{regexp(Online)}=1</recovery_expression>
<name>Lsi Physical Drive {#CTRL.ID}:{#ED.ID}:{#PD.ID}:{#PD.SN} Status</name>
<priority>HIGH</priority>
<manual_close>YES</manual_close>
</trigger_prototype>
</trigger_prototypes>
</item_prototype>
</item_prototypes>
</discovery_rule>
</discovery_rules>
<macros>
<macro>
<macro>{$NODATA_TIME}</macro>
<value>84600</value>
</macro>
<macro>
<macro>{$TEMP_WARN}</macro>
<value>85</value>
</macro>
</macros>
</template>
</templates>
</zabbix_export>