-
Notifications
You must be signed in to change notification settings - Fork 1.6k
/
Zabbix.yml
465 lines (465 loc) · 20 KB
/
Zabbix.yml
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
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
commonfields:
id: Zabbix
version: -1
name: Zabbix
display: Zabbix
category: Utilities
description: Allow integration with Zabbix api.
configuration:
- display: Url
name: url
defaultvalue: http://example.net
type: 0
required: true
- display: Credentials
name: credentials
defaultvalue: ""
type: 9
required: true
script:
commands:
- name: zabbix-execute-command
arguments:
- name: method
required: true
default: true
auto: PREDEFINED
predefined:
- host.get
description: Method to call on Zabbix API.
- name: params
description: JSON with params to send with call.
outputs:
- contextPath: Zabbix.Execute
description: result.
type: Unknown
description: Execute command on Zabbix API.
- name: test-module
arguments: []
description: Test if module is working.
- name: zabbix-hostgroup-get
arguments:
- name: params_graphids
description: Return only host groups that contain hosts or templates with the given graphs.
- name: params_groupids
description: Return only host groups with the given host group IDs.
- name: params_hostids
description: Return only host groups that contain the given hosts.
- name: params_maintenanceids
description: Return only host groups that are affected by the given maintenances.
- name: params_monitored_hosts
description: Return only host groups that contain monitored hosts.
- name: params_real_hosts
description: Return only host groups that contain hosts.
- name: params_templated_hosts
description: Return only host groups that contain templates.
- name: params_templateids
description: Return only host groups that contain the given templates.
- name: params_triggerids
description: Return only host groups that contain hosts or templates with the given triggers.
- name: params_with_applications
description: Return only host groups that contain hosts with applications.
- name: params_with_graphs
description: Return only host groups that contain hosts with graphs.
- name: params_with_hosts_and_templates
description: Return only host groups that contain hosts or templates.
- name: params_with_httptests
description: Return only host groups that contain hosts with web checks.
- name: params_with_items
description: Return only host groups that contain hosts or templates with items.
- name: params_with_monitored_httptests
description: Return only host groups that contain hosts with enabled web checks.
- name: params_with_monitored_items
description: Return only host groups that contain hosts or templates with enabled items.
- name: params_with_monitored_triggers
description: Return only host groups that contain hosts with enabled triggers. All of the items used in the trigger must also be enabled.
- name: params_with_simple_graph_items
description: Return only host groups that contain hosts with numeric items.
- name: params_with_triggers
description: Return only host groups that contain hosts with triggers.
outputs:
- contextPath: Zabbix.Hostgroup.groupid
description: ID of the host group.
type: string
- contextPath: Zabbix.Hostgroup.name
description: Name of the host group.
type: string
- contextPath: Zabbix.Hostgroup.flags
description: Origin of the host group.
type: number
- contextPath: Zabbix.Hostgroup.internal
description: Whether the group is used internally by the system.
type: number
description: Get host groups.
- name: zabbix-host-get
arguments:
- name: params_groupids
description: Return only hosts that belong to the given groups.
- name: params_applicationids
description: Return only hosts that have the given applications.
- name: params_dserviceids
description: Return only hosts that are related to the given discovered services.
- name: params_graphids
description: Return only hosts that have the given graphs.
- name: params_hostids
description: Return only hosts with the given host IDs.
- name: params_httptestids
description: Return only hosts that have the given web checks.
- name: params_interfaceids
description: Return only hosts that use the given interfaces.
- name: params_itemids
description: Return only hosts that have the given items.
- name: params_maintenanceids
description: Return only hosts that are affected by the given maintenances.
- name: params_monitored_hosts
description: Return only monitored hosts.
- name: params_proxy_hosts
description: Return only proxies.
- name: params_proxyids
description: Return only hosts that are monitored by the given proxies.
- name: params_templated_hosts
description: Return both hosts and templates.
- name: params_templateids
description: Return only hosts that are linked to the given templates.
- name: params_triggerids
description: Return only hosts that have the given triggers.
- name: params_with_items
description: Return only hosts that have items.
- name: params_with_applications
description: Return only hosts that have applications.
- name: params_with_graphs
description: Return only hosts that have graphs.
- name: params_with_httptests
description: Return only hosts that have web checks.
- name: params_with_monitored_httptests
description: Return only hosts that have enabled web checks.
- name: params_with_monitored_items
description: Return only hosts that have enabled items.
- name: params_with_monitored_triggers
description: Return only hosts that have enabled triggers. All of the items used in the trigger must also be enabled.
- name: params_with_simple_graph_items
description: Return only hosts that have items with numeric type of information.
- name: params_with_triggers
description: Return only hosts that have triggers.
- name: params_withInventory
description: Return only hosts that have inventory data.
outputs:
- contextPath: Zabbix.Host.hostid
description: ID of the host.
type: string
- contextPath: Zabbix.Host.host
description: Technical name of the host.
type: string
- contextPath: Zabbix.Host.available
description: Availability of Zabbix agent.
type: number
- contextPath: Zabbix.Host.description
description: Description of the host.
type: string
- contextPath: Zabbix.Host.disable_until
description: The next polling time of an unavailable Zabbix agent.
type: date
- contextPath: Zabbix.Host.error
description: Error text if Zabbix agent is unavailable.
type: string
- contextPath: Zabbix.Host.errors_from
description: Time when Zabbix agent became unavailable.
type: date
- contextPath: Zabbix.Host.flags
description: Origin of the host.
type: number
- contextPath: Zabbix.Host.inventory_mode
description: (writeonly) Host inventory population mode.
type: number
- contextPath: Zabbix.Host.ipmi_authtype
description: IPMI authentication algorithm.
type: number
- contextPath: Zabbix.Host.ipmi_available
description: Availability of IPMI agent.
type: number
- contextPath: Zabbix.Host.ipmi_disable_until
description: The next polling time of an unavailable IPMI agent.
type: date
- contextPath: Zabbix.Host.ipmi_error
description: Error text if IPMI agent is unavailable.
type: string
- contextPath: Zabbix.Host.ipmi_errors_from
description: Time when IPMI agent became unavailable.
type: date
- contextPath: Zabbix.Host.ipmi_password
description: IPMI password.
type: string
- contextPath: Zabbix.Host.ipmi_privilege
description: IPMI privilege level.
type: number
- contextPath: Zabbix.Host.ipmi_username
description: IPMI username.
type: string
- contextPath: Zabbix.Host.jmx_available
description: Availability of JMX agent.
type: number
- contextPath: Zabbix.Host.jmx_disable_until
description: The next polling time of an unavailable JMX agent.
type: date
- contextPath: Zabbix.Host.jmx_error
description: Error text if JMX agent is unavailable.
type: string
- contextPath: Zabbix.Host.jmx_errors_from
description: Time when JMX agent became unavailable.
type: date
- contextPath: Zabbix.Host.maintenance_from
description: Starting time of the effective maintenance.
type: date
- contextPath: Zabbix.Host.maintenance_status
description: Effective maintenance status.
type: number
- contextPath: Zabbix.Host.maintenance_type
description: Effective maintenance type.
type: number
- contextPath: Zabbix.Host.maintenanceid
description: ID of the maintenance that is currently in effect on the host.
type: string
- contextPath: Zabbix.Host.name
description: Visible name of the host.
type: string
- contextPath: Zabbix.Host.proxy_hostid
description: ID of the proxy that is used to monitor the host.
type: string
- contextPath: Zabbix.Host.snmp_available
description: Availability of SNMP agent.
type: number
- contextPath: Zabbix.Host.snmp_disable_until
description: The next polling time of an unavailable SNMP agent.
type: date
- contextPath: Zabbix.Host.snmp_error
description: Error text if SNMP agent is unavailable.
type: string
- contextPath: Zabbix.Host.snmp_errors_from
description: Time when SNMP agent became unavailable.
type: date
- contextPath: Zabbix.Host.status
description: Status and function of the host.
type: number
- contextPath: Zabbix.Host.tls_connect
description: Connections to host.
type: number
- contextPath: Zabbix.Host.tls_accept
description: Connections from host.
type: number
- contextPath: Zabbix.Host.tls_issuer
description: Certificate issuer.
type: string
- contextPath: Zabbix.Host.tls_subject
description: Certificate subject.
type: string
- contextPath: Zabbix.Host.tls_psk_identity
description: PSK identity. Required if either tls_connect or tls_accept has PSK enabled.
type: string
- contextPath: Zabbix.Host.tls_psk
description: The preshared key, at least 32 hex digits. Required if either tls_connect or tls_accept has PSK enabled.
type: string
description: Get hosts.
- name: zabbix-trigger-get
arguments:
- name: params_triggerids
description: Return only triggers with the given IDs.
- name: params_groupids
description: Return only triggers that belong to hosts from the given host groups.
- name: params_templateids
description: Return only triggers that belong to the given templates.
- name: params_hostids
description: Return only triggers that belong to the given hosts.
- name: params_itemids
description: Return only triggers that contain the given items.
- name: params_applicationids
description: Return only triggers that contain items from the given applications.
- name: params_functions
description: Return only triggers that use the given functions.
- name: params_group
description: Return only triggers that belong to hosts from the host group with the given name.
- name: params_host
description: Return only triggers that belong to host with the given name.
- name: params_inherited
description: If set to true return only triggers inherited from a template.
- name: params_templated
description: If set to true return only triggers that belong to templates.
- name: params_monitored
description: Return only enabled triggers that belong to monitored hosts and contain only enabled items.
- name: params_active
description: Return only enabled triggers that belong to monitored hosts.
- name: params_maintenance
description: If set to true return only enabled triggers that belong to hosts in maintenance.
- name: params_withUnacknowledgedEvents
description: Return only triggers that have unacknowledged events.
- name: params_withAcknowledgedEvents
description: Return only triggers with all events acknowledged.
- name: params_withLastEventUnacknowledged
description: Return only triggers with the last event unacknowledged.
- name: params_skipDependent
description: Skip triggers in a problem state that are dependent on other triggers. Note that the other triggers are ignored if disabled, have disabled items or disabled item hosts.
- name: params_lastChangeSince
description: Return only triggers that have changed their state after the given time (use timestamp format).
- name: params_lastChangeTill
description: Return only triggers that have changed their state before the given time (use timestamp format).
- name: params_only_true
description: Return only triggers that have recently been in a problem state.
- name: params_min_severity
description: Return only triggers with severity greater or equal than the given severity.
- name: params_evaltype
description: Rules for tag searching.
- name: params_tags
description: Return only triggers with given tags. Exact match by tag and case-sensitive or case-insensitive search by tag value depending on operator value.
outputs:
- contextPath: Zabbix.Trigger.triggerid
description: ID of the trigger.
type: string
- contextPath: Zabbix.Trigger.description
description: Name of the trigger.
type: string
- contextPath: Zabbix.Trigger.expression
description: Reduced trigger expression.
type: string
- contextPath: Zabbix.Trigger.comments
description: Additional description of the trigger.
type: string
- contextPath: Zabbix.Trigger.error
description: Error text if there have been any problems when updating the state of the trigger.
type: string
- contextPath: Zabbix.Trigger.flags
description: Origin of the trigger.
type: number
- contextPath: Zabbix.Trigger.lastchange
description: Time when the trigger last changed its state.
type: date
- contextPath: Zabbix.Trigger.priority
description: Severity of the trigger.
type: number
- contextPath: Zabbix.Trigger.state
description: State of the trigger.
type: number
- contextPath: Zabbix.Trigger.status
description: Whether the trigger is enabled or disabled.
type: number
- contextPath: Zabbix.Trigger.templateid
description: ID of the parent template trigger.
type: string
- contextPath: Zabbix.Trigger.type
description: Whether the trigger can generate multiple problem events.
type: number
- contextPath: Zabbix.Trigger.url
description: URL associated with the trigger.
type: string
- contextPath: Zabbix.Trigger.value
description: Whether the trigger is in OK or problem state.
type: number
- contextPath: Zabbix.Trigger.recovery_mode
description: OK event generation mode.
type: number
- contextPath: Zabbix.Trigger.recovery_expression
description: Reduced trigger recovery expression.
type: string
- contextPath: Zabbix.Trigger.correlation_mode
description: OK event closes.
type: number
- contextPath: Zabbix.Trigger.correlation_tag
description: Tag for matching.
type: string
- contextPath: Zabbix.Trigger.manual_close
description: Allow manual close.
type: number
description: Get triggers.
- name: zabbix-event-get
arguments:
- name: params_eventids
description: Return only events with the given IDs.
- name: params_groupids
description: Return only events created by objects that belong to the given host groups.
- name: params_hostids
description: Return only events created by objects that belong to the given hosts.
- name: params_objectids
description: Return only events created by the given objects.
- name: params_applicationids
description: Return only events created by objects that belong to the given applications. Applies only if object is trigger or item.
- name: params_source
description: Return only events with the given type.
- name: params_object
description: Return only events created by objects of the given type.
- name: params_acknowledged
description: If set to true return only acknowledged events.
- name: params_suppressed
description: true - return only suppressed events;.
- name: params_severities
description: Return only events with given event severities. Applies only if object is trigger.
- name: params_evaltype
description: Rules for tag searching.
- name: params_tags
description: Return only events with given tags. Exact match by tag and case-insensitive search by value and operator.
- name: params_eventid_from
description: Return only events with IDs greater or equal to the given ID.
- name: params_eventid_till
description: Return only events with IDs less or equal to the given ID.
- name: params_time_from
description: Return only events that have been created after or at the given time (use timestamp format).
- name: params_time_till
description: Return only events that have been created before or at the given time (use timestamp format).
- name: params_problem_time_from
description: Returns only events that were in the problem state starting with problem_time_from. Applies only if the source is trigger event and object is trigger. Mandatory if problem_time_till is specified (use timestamp format).
- name: params_problem_time_till
description: Returns only events that were in the problem state until problem_time_till. Applies only if the source is trigger event and object is trigger. Mandatory if problem_time_from is specified (use timestamp format).
- name: params_value
description: Return only events with the given values.
outputs:
- contextPath: Zabbix.Event.eventid
description: ID of the event.
type: string
- contextPath: Zabbix.Event.source
description: Type of the event.
type: number
- contextPath: Zabbix.Event.object
description: Type of object that is related to the event.
type: number
- contextPath: Zabbix.Event.objectid
description: ID of the related object.
type: string
- contextPath: Zabbix.Event.acknowledged
description: Whether the event has been acknowledged.
type: number
- contextPath: Zabbix.Event.clock
description: Time when the event was created.
type: date
- contextPath: Zabbix.Event.ns
description: Nanoseconds when the event was created.
type: number
- contextPath: Zabbix.Event.name
description: Resolved event name.
type: string
- contextPath: Zabbix.Event.value
description: State of the related object.
type: number
- contextPath: Zabbix.Event.severity
description: Event current severity.
type: number
- contextPath: Zabbix.Event.r_eventid
description: Recovery event ID.
type: string
- contextPath: Zabbix.Event.c_eventid
description: ID of the event that was used to override (close) current event under global correlation rule. See correlationid to identify exact correlation rule.
type: string
- contextPath: Zabbix.Event.correlationid
description: ID of the correlation rule that generated closing of the problem.
type: string
- contextPath: Zabbix.Event.userid
description: User ID if the event was manually closed.
type: string
- contextPath: Zabbix.Event.suppressed
description: Whether the event is suppressed.
type: number
description: Get events.
dockerimage: demisto/py3-tools:1.0.0.79870
runonce: false
script: '-'
type: python
subtype: python3
fromversion: 5.0.0
tests:
- No tests (auto formatted)