blob: 04679ba623f330c077ff1b9b59abd56055aa5fc0 (
plain)
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
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
|
zabbix_export:
version: '6.4'
date: '2022-10-28T08:41:56Z'
template_groups:
-
uuid: 57b7ae836ca64446ba2c296389c009b7
name: Templates/Modules
templates:
-
uuid: 0f6889282f6048e2b1370e569e578985
template: 'OS processes by Zabbix agent'
name: 'OS processes by Zabbix agent'
description: |
Get processes metrics using item proc.get by Zabbix agent.
You can discuss this template or leave feedback on our forum https://www.zabbix.com/forum/zabbix-suggestions-and-feedback
Template tooling version used: 0.42
groups:
-
name: Templates/Modules
items:
-
uuid: 803390429cf949d3b8439dd5dd71c706
name: 'OS: Get process summary'
key: 'proc.get[,,,summary]'
history: '0'
trends: '0'
value_type: TEXT
description: 'The summary of data metrics for all processes.'
tags:
-
tag: component
value: raw
discovery_rules:
-
uuid: 7c0e8b719d0e464f92ee42a3da75b682
name: 'Processes discovery'
type: DEPENDENT
key: custom.proc.discovery
delay: '0'
filter:
evaltype: AND
conditions:
-
macro: '{#VMEM}'
value: '-1'
operator: NOT_MATCHES_REGEX
formulaid: C
-
macro: '{#NAME}'
value: '{$PROC.NAME.MATCHES}'
formulaid: A
-
macro: '{#NAME}'
value: '{$PROC.NAME.NOT_MATCHES}'
operator: NOT_MATCHES_REGEX
formulaid: B
description: 'Discovery of OS summary processes.'
item_prototypes:
-
uuid: 2e9b31e2b47741f4b35c5d15f33378ea
name: 'Process [{#NAME}]: Get data'
type: DEPENDENT
key: 'custom.proc.get[{#NAME}]'
delay: '0'
history: 0d
trends: '0'
value_type: TEXT
description: 'Summary metrics collected during the process {#NAME}.'
preprocessing:
-
type: JSONPATH
parameters:
- '$.[?(@["name"]=="{#NAME}")].first()'
error_handler: CUSTOM_VALUE
error_handler_params: 'Failed to retrieve process {#NAME} data'
master_item:
key: 'proc.get[,,,summary]'
tags:
-
tag: component
value: raw
-
tag: process
value: '{#NAME}'
-
uuid: 822ffda22eb042b89fc50b212aab133f
name: 'Process [{#NAME}]: Size of locked memory'
type: DEPENDENT
key: 'custom.proc.mem.locked[{#NAME}]'
delay: '0'
history: 7d
value_type: FLOAT
units: B
description: 'The size of locked memory {#NAME}.'
preprocessing:
-
type: JSONPATH
parameters:
- $.lck
error_handler: DISCARD_VALUE
master_item:
key: 'custom.proc.get[{#NAME}]'
tags:
-
tag: component
value: memory
-
tag: process
value: '{#NAME}'
-
uuid: 0bb7d924b8814c42a494d8a3baf48a59
name: 'Process [{#NAME}]: Number of running processes'
type: DEPENDENT
key: 'custom.proc.num[{#NAME}]'
delay: '0'
history: 7d
description: 'The number of running processes {#NAME}.'
preprocessing:
-
type: JSONPATH
parameters:
- $.processes
error_handler: CUSTOM_VALUE
error_handler_params: '0'
-
type: DISCARD_UNCHANGED_HEARTBEAT
parameters:
- 1h
master_item:
key: 'custom.proc.get[{#NAME}]'
tags:
-
tag: component
value: system
-
tag: process
value: '{#NAME}'
trigger_prototypes:
-
uuid: 66294f983a134a1e81165878f30d3ebc
expression: 'last(/OS processes by Zabbix agent/custom.proc.num[{#NAME}])=0'
name: 'Process [{#NAME}]: is not running'
priority: HIGH
manual_close: 'YES'
tags:
-
tag: scope
value: availability
-
uuid: abccdac17c7e4b549fcfe70ceeedeb9b
name: 'Process [{#NAME}]: Number of page faults'
type: DEPENDENT
key: 'custom.proc.page[{#NAME}]'
delay: '0'
history: 7d
description: 'The number of page faults {#NAME}.'
preprocessing:
-
type: JSONPATH
parameters:
- $.page_faults
error_handler: DISCARD_VALUE
master_item:
key: 'custom.proc.get[{#NAME}]'
tags:
-
tag: component
value: system
-
tag: process
value: '{#NAME}'
-
uuid: 4ffd202fb6044b819f6f28dc866ca8f1
name: 'Process [{#NAME}]: Memory usage, %'
type: DEPENDENT
key: 'custom.proc.pmem[{#NAME}]'
delay: '0'
history: 7d
value_type: FLOAT
units: '%'
description: 'The percentage of real memory used by the process {#NAME}.'
preprocessing:
-
type: JSONPATH
parameters:
- $.pmem
error_handler: DISCARD_VALUE
master_item:
key: 'custom.proc.get[{#NAME}]'
tags:
-
tag: component
value: memory
-
tag: process
value: '{#NAME}'
-
uuid: 7e573e38bce04167bc37712c0a3e2194
name: 'Process [{#NAME}]: Memory usage (rss)'
type: DEPENDENT
key: 'custom.proc.rss[{#NAME}]'
delay: '0'
history: 7d
value_type: FLOAT
units: B
description: 'The summary of Resident Set Size (RSS) memory used by the process {#NAME} in bytes.'
preprocessing:
-
type: JSONPATH
parameters:
- $.rss
error_handler: DISCARD_VALUE
master_item:
key: 'custom.proc.get[{#NAME}]'
tags:
-
tag: component
value: memory
-
tag: process
value: '{#NAME}'
-
uuid: 12370d3b25024d2189cddba8d3b23938
name: 'Process [{#NAME}]: Swap space used'
type: DEPENDENT
key: 'custom.proc.swap[{#NAME}]'
delay: '0'
history: 7d
value_type: FLOAT
units: B
description: 'The swap space used by {#NAME}.'
preprocessing:
-
type: JSONPATH
parameters:
- $.swap
error_handler: DISCARD_VALUE
master_item:
key: 'custom.proc.get[{#NAME}]'
tags:
-
tag: component
value: memory
-
tag: process
value: '{#NAME}'
-
uuid: a7265ca1b1d2463294e26d80fe075639
name: 'Process [{#NAME}]: Number of threads'
type: DEPENDENT
key: 'custom.proc.thread[{#NAME}]'
delay: '0'
history: 7d
description: 'The number of threads {#NAME}.'
preprocessing:
-
type: JSONPATH
parameters:
- $.threads
error_handler: DISCARD_VALUE
master_item:
key: 'custom.proc.get[{#NAME}]'
tags:
-
tag: component
value: system
-
tag: process
value: '{#NAME}'
-
uuid: c1b9b1d8f28947589e46041690899100
name: 'Process [{#NAME}]: Memory usage (vsize)'
type: DEPENDENT
key: 'custom.proc.vmem[{#NAME}]'
delay: '0'
history: 7d
value_type: FLOAT
units: B
description: 'The summary of virtual memory used by process {#NAME} in bytes.'
preprocessing:
-
type: JSONPATH
parameters:
- $.vsize
error_handler: DISCARD_VALUE
master_item:
key: 'custom.proc.get[{#NAME}]'
tags:
-
tag: component
value: memory
-
tag: process
value: '{#NAME}'
graph_prototypes:
-
uuid: b8f5b539152445fdbadbfba92adad1bf
name: 'Process [{#NAME}]: Memory usage[{#NAME}]'
graph_items:
-
drawtype: BOLD_LINE
color: 1A7C11
item:
host: 'OS processes by Zabbix agent'
key: 'custom.proc.vmem[{#NAME}]'
-
sortorder: '1'
drawtype: BOLD_LINE
color: 2774A4
item:
host: 'OS processes by Zabbix agent'
key: 'custom.proc.rss[{#NAME}]'
master_item:
key: 'proc.get[,,,summary]'
lld_macro_paths:
-
lld_macro: '{#NAME}'
path: $.name
-
lld_macro: '{#VMEM}'
path: $.vsize
macros:
-
macro: '{$PROC.NAME.MATCHES}'
value: '<CHANGE VALUE>'
description: 'This macro is used in the discovery of processes. It can be overridden on a host-level or on a linked template-level.'
-
macro: '{$PROC.NAME.NOT_MATCHES}'
value: '<CHANGE VALUE>'
description: 'This macro is used in the discovery of processes. It can be overridden on a host-level or on a linked template-level.'
|