-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathmain.yml
518 lines (465 loc) · 16.3 KB
/
main.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
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
---
# (list) List of types of software to be discovered from the global list defined in `software_list` variable.
# Each element of the list must much the `name` field of the `software_list`element to include.
# Use `all` to use the whole list.
software_discovery__include_software: ['all']
# (list) List of types of software to exclude from being discovered from the global list defined in `software_list` variable
# Each element of the list must much the `name` field of the `software_list`element to include.
software_discovery__exclude_software: []
# (list) Definition of tasks to be executed on every discovered software before custom tasks for each software type are executed
software_discovery__pre_tasks: []
# (list) Definition of tasks to be executed on every discovered software after custom tasks for each software type are executed
software_discovery__post_tasks: []
# (list) Definition of the types of software that will be tried to be discovered in the target hosts.
# Add software sorted alphabetically.
software_discovery__software_list:
- name: AWX Task
cmd_regexp: launch_awx_task.sh
process_type: parent
return_children: false
return_packages: true
- name: AWX Web
cmd_regexp: launch_awx.sh
process_type: parent
return_children: false
return_packages: true
- name: Apache ActiveMQ
cmd_regexp: activemq\.ja
pkg_regexp: activemq
process_type: parent
return_children: false
return_packages: true
custom_tasks:
- name: Include Apache ActiveMQ specific plugins
include_tasks:
file: "{{ software_discovery__custom_tasks_definition_files_path }}/apache_activemq.yaml"
- name: Apache Tomcat Servlet Engine
cmd_regexp: '^.*\.apache\.(?:tomcat|catalina)\.startup|^.*-Dcatalina\.(?:base|home)='
pkg_regexp: tomcat
process_type: parent
return_children: true
return_packages: true
custom_tasks:
- name: Include Apache Tomcat Servlet Engine specific plugins
include_tasks:
file: "{{ software_discovery__custom_tasks_definition_files_path }}/tomcat.yaml"
- name: Apache WebServer
cmd_regexp: '^.*/(?:sbin|bin)/(?:httpd|httpd2|apache2)(?!-tomcat)(?:[-_](?:prefork|worker))?'
pkg_regexp: 'apache2|^httpd$'
process_type: parent
return_children: true
return_packages: true
custom_tasks:
- name: Include Apache Webserver specific plugins
include_tasks:
file: "{{ software_discovery__custom_tasks_definition_files_path }}/apache_webserver.yaml"
- name: Chrony ntp service
cmd_regexp: chronyd
pkg_regexp: ^chrony
process_type: parent
return_children: false
return_packages: true
- name: Docker
cmd_regexp: dockerd
pkg_regexp: docker
process_type: parent
return_children: false
return_packages: true
custom_tasks:
- name: Include Docker specific plugins
include_tasks:
file: "{{ software_discovery__custom_tasks_definition_files_path }}/docker.yaml"
- name: Dynatrace Server
cmd_regexp: dtserve
process_type: parent
return_children: false
return_packages: false
- name: ElasticSearch
cmd_regexp: 'org\.elasticsearch\.bootstrap\.Elasticsearch'
pkg_regexp: '^elasticsearch'
process_type: parent
return_children: true
return_packages: true
- name: Filebeat
cmd_regexp: filebeat
pkg_regexp: ^filebeat
process_type: parent
return_children: false
return_packages: true
custom_tasks:
- name: Include Filebeat specific plugins
include_tasks:
file: "{{ software_discovery__custom_tasks_definition_files_path }}/filebeat.yaml"
- name: Grafana
cmd_regexp: 'grafana-server'
pkg_regexp: '^grafana'
process_type: parent
return_children: false
return_packages: true
custom_tasks:
- name: Include Grafana specific plugins
include_tasks:
file: "{{ software_discovery__custom_tasks_definition_files_path }}/grafana.yaml"
- name: HAProxy
cmd_regexp: 'haproxy .*'
pkg_regexp: 'haproxy'
process_type: parent
return_children: true
return_packages: true
vars:
ignore_udp: "{{ haproxy_ignore_udp | default(true) }}"
custom_tasks:
- name: Include HAProxy specific plugins
include_tasks:
file: "{{ software_discovery__custom_tasks_definition_files_path }}/haproxy.yaml"
- name: HPE Data Protector
cmd_regexp: bomni
pkg_regexp: DATA-PROTECTOR|HP Data Protector|OmniBack|OpenView Storage Data Protector|OB2-CORE|OB2-DAP
process_type: parent
return_children: false
return_packages: true
- name: Hobbit
cmd_regexp: hobbitlaunch
pkg_regexp: hobbit
process_type: parent
return_children: false
return_packages: true
- name: IIS
cmd_regexp: 'iissvcs'
process_type: single
return_children: false
return_packages: false
custom_tasks:
- name: Include IIS specific plugins
include_tasks:
file: "{{ software_discovery__custom_tasks_definition_files_path }}/iis.yaml"
- name: IOMetrics SLAtor
cmd_regexp: "/iometrics-slator"
process_type: parent
return_children: true
return_packages: false
- name: IOMetrics Visualizer API
cmd_regexp: "python ./main.py"
process_type: parent
return_children: false
return_packages: false
custom_tasks:
- name: Include IOMetrics Visualizer API specific plugins
include_tasks:
file: "{{ software_discovery__custom_tasks_definition_files_path }}/iometrics_visualizer_api.yaml"
- name: InfluxDB
cmd_regexp: '^influxd'
pkg_regexp: '^influxdb'
process_type: parent
return_children: false
return_packages: true
- name: JBoss Application Server
cmd_regexp: 'org\.jboss\.Main|org\.jboss\.(?:Main|as\.(?:standalone|server))'
pkg_regexp: 'jboss'
process_type: parent
return_children: false
return_packages: true
vars:
credentials:
management_user: "{{ jboss_admin_user | default('admin') }}"
management_password: "{{ jboss_admin_pass | default('admin') }}"
default_management_port: "{{ jboss_management_port | default('9990') }}"
custom_tasks:
- name: Include JBoss specific plugins
include_tasks:
file: "{{ software_discovery__custom_tasks_definition_files_path }}/jboss.yaml"
- name: Jolokia Proxy
cmd_regexp: 'jetty'
process_type: parent
return_children: false
return_packages: false
custom_tasks:
- name: Include Jolokia Proxy specific plugins
include_tasks:
file: "{{ software_discovery__custom_tasks_definition_files_path }}/jolokia_proxy.yaml"
- name: KeepAliveD
cmd_regexp: 'keepalived.*'
pkg_regexp: 'keepalived'
process_type: parent
return_children: false
return_packages: true
custom_tasks:
- name: Include KeepAliveD specific plugins
include_tasks:
file: "{{ software_discovery__custom_tasks_definition_files_path }}/keepalived.yaml"
- name: Logstash
cmd_regexp: 'org\.logstash\.Logstash'
pkg_regexp: 'logstash'
process_type: parent
return_children: false
return_packages: true
- name: MariaDB DatabaseServer
cmd_regexp: '/mariadbd(\s|$)'
pkg_regexp: 'mariadb-serve'
process_type: parent
return_children: false
return_packages: true
vars:
ignore_databases:
- information_schema
- mysql
- test
- performance_schema
connect_with_users: "{{ mariadb_monitor_users_info
| default(mysql_monitor_users_info
| default([{'username': mariadb_monitor_user | default(mysql_monitor_user | default('mysql')),
'password': mariadb_monitor_pass | default(mysql_monitor_pass | default('mysql'))}])) }}"
custom_tasks:
- name: Include MariaDB specific plugins
include_tasks:
file: "{{ software_discovery__custom_tasks_definition_files_path }}/mysql_mariadb.yaml"
vars:
default_server_file: mariadbd
default_client_file: mariadb
- name: Memcached
cmd_regexp: '^memcached'
pkg_regexp: '^memcached'
process_type: parent
return_children: false
return_packages: true
- name: Microsoft SQL Server
cmd_regexp: 'Microsoft.SQL.Server.*sqlservr\.exe'
pkg_regexp: '^SQL.Server.\d{4}.Database.Engine'
process_type: single
return_children: false
return_packages: false
vars:
ignore_databases:
- tempdb
custom_tasks:
- name: Include SQL Server specific plugins
include_tasks:
file: "{{ software_discovery__custom_tasks_definition_files_path }}/sql_server.yaml"
- name: MongoDB
cmd_regexp: mongod
pkg_regexp: mongodb-org-server$
process_type: parent
return_children: false
return_packages: true
custom_tasks:
- name: Include MongoDB specific plugins
include_tasks:
file: "{{ software_discovery__custom_tasks_definition_files_path }}/mongodb.yaml"
- name: MuleSoft AppServer
cmd_regexp: MuleContainerBootstrap
process_type: parent
return_children: false
return_packages: true
custom_tasks:
- name: Include MuleSoft specific plugins
include_tasks:
file: "{{ software_discovery__custom_tasks_definition_files_path }}/mule.yaml"
- name: MySQL DatabaseServer
cmd_regexp: '/mysqld(\s|$)'
pkg_regexp: 'mysql-serve'
process_type: parent
return_children: false
return_packages: true
vars:
ignore_databases:
- information_schema
- mysql
- test
- performance_schema
connect_with_users: "{{ mysql_monitor_users_info
| default([{'username': mysql_monitor_user | default('mysql'),
'password': mysql_monitor_pass | default('mysql')}]) }}"
custom_tasks:
- name: Include MySQL specific plugins
include_tasks:
file: "{{ software_discovery__custom_tasks_definition_files_path }}/mysql_mariadb.yaml"
vars:
default_server_file: mysqld
default_client_file: mysql
- name: Nagios NRPE
cmd_regexp: nagios/nrpe
process_type: parent
pkg_regexp: nagios
return_children: false
return_packages: true
- name: Nginx WebServer
cmd_regexp: 'nginx\:?\s*master.*(nginx)?'
pkg_regexp: 'nginx'
process_type: parent
return_children: true
return_packages: true
custom_tasks:
- name: Include Nginx specific plugins
include_tasks:
file: "{{ software_discovery__custom_tasks_definition_files_path }}/nginx.yaml"
- name: Oracle DatabaseServer
cmd_regexp: _pmon_
process_type: parent
return_children: false
return_packages: false
vars:
connect_with_users: "{{ oracle_monitor_users_info
| default([{'username': oracle_monitor_user | default('oracle'),
'password': oracle_monitor_pass | default('oracle')}]) }}"
monitor_cluster_hostname: "{{ oracle_monitor_cluster_hostname | default('localhost') }}"
read_configuration: "{{ oracle_monitor_read_configuration | default(False) }}"
custom_tasks:
- name: Include Oracle specific plugins
include_tasks:
file: "{{ software_discovery__custom_tasks_definition_files_path }}/oracle.yaml"
- name: Oracle Listener
cmd_regexp: "tnslsnr"
process_type: parent
return_children: false
return_packages: true
vars: { }
custom_tasks:
- name: Include Oracle Listener specific plugins
include_tasks:
file: "{{ software_discovery__custom_tasks_definition_files_path }}/oracle_listener.yaml"
- name: Oracle Management Agent
cmd_regexp: "emwd.pl agent"
process_type: parent
return_children: false
return_packages: true
vars: { }
custom_tasks:
- name: Include Oracle Management Agent specific plugins
include_tasks:
file: "{{ software_discovery__custom_tasks_definition_files_path }}/oracle_management_agent.yaml"
- name: PHP-FPM
cmd_regexp: 'php-fpm\:?\s*master process'
pkg_regexp: 'php[0-9\.]-fpm'
process_type: parent
return_children: true
return_packages: true
custom_tasks:
- name: Include php-fpm specific plugins
include_tasks:
file: "{{ software_discovery__custom_tasks_definition_files_path }}/php-fpm.yaml"
- name: Panda Security Protection
cmd_regexp: ".*PSUAService.exe"
pkg_regexp: "Panda"
process_type: parent
return_children: false
return_packages: false
- name: Patrol Agent
cmd_regexp: PatrolAgent
pkg_regexp: patrol
process_type: parent
return_children: false
return_packages: true
- name: Patroni
cmd_regexp: "/usr/bin/patroni"
pkg_regexp: patroni
process_type: parent
return_children: false
return_packages: true
custom_tasks:
- name: Include patroni specific plugins
include_tasks:
file: "{{ software_discovery__custom_tasks_definition_files_path }}/patroni.yaml"
- name: PostgreSQL Database
cmd_regexp: 'postgres:|postgres\.exe.*?--fork'
pkg_regexp: 'postgresql.*-server|postgresql-\d|PostgreSQL.*'
process_type: child
return_children: true
return_packages: true
vars:
connect_with_users: "{{ postgresql_monitor_users_info
| default([{'username': postgresql_monitor_user | default('postgres'),
'password': postgresql_monitor_pass | default('postgres')}]) }}"
ignore_databases:
- postgres
- template0
- template1
sql_connection_extra_params: "{{ postgresql_sql_connection_extra_params | default('-h 127.0.0.1') }}"
custom_tasks:
- name: Include postgres specific plugins
include_tasks:
file: "{{ software_discovery__custom_tasks_definition_files_path }}/postgresql.yaml"
- name: Redis
cmd_regexp: redis-server
pkg_regexp: ^redis
process_type: parent
return_children: false
return_packages: true
vars:
connection:
auth_user: "{{ redis_auth_user | default('') }}"
auth_password: "{{ redis_auth_password | default('') }}"
unix_socket: "{{ redis_unix_socket_path | default('') }}"
tls: "{{ redis_tls | default('') }}"
tls_verify: "{{ redis_tls_verify | default('false') }}"
custom_tasks:
- name: Include redis specific plugins
include_tasks:
file: "{{ software_discovery__custom_tasks_definition_files_path }}/redis.yaml"
- name: SAP CCMS
cmd_regexp: gwrd
process_type: parent
return_children: false
custom_tasks:
- name: Include SAP CCMS specific plugins
include_tasks:
file: "{{ software_discovery__custom_tasks_definition_files_path }}/sap_ccms.yaml"
- name: SAP HANA DatabaseServer
cmd_regexp: hdbindexserver
process_type: parent
return_children: false
return_packages: true
custom_tasks:
- name: Include SAP HANA specific plugins
include_tasks:
file: "{{ software_discovery__custom_tasks_definition_files_path }}/sap_hana.yaml"
- name: SAPcontrol
cmd_regexp: sapstartsrv
process_type: parent
return_children: false
return_packages: false
custom_tasks:
- name: Include SAP Control specific plugins
include_tasks:
file: "{{ software_discovery__custom_tasks_definition_files_path }}/sap_control.yaml"
- name: Skydive Analyzer
cmd_regexp: skydive analyzer
process_type: parent
return_children: false
return_packages: true
custom_tasks:
- name: Include Skydive specific plugins
include_tasks:
file: "{{ software_discovery__custom_tasks_definition_files_path }}/skydive.yaml"
- name: Sybase ASE
cmd_regexp: "dataserver"
process_type: parent
return_children: false
return_packages: false
- name: Sybase IQ
cmd_regexp: "iqsrv"
process_type: parent
return_children: false
return_packages: false
- name: Sybase Replication Server
cmd_regexp: "repserver"
process_type: parent
return_children: false
return_packages: false
- name: Telegraf
cmd_regexp: '/usr/bin/telegraf'
pkg_regexp: 'telegraf|iometrics-agent'
process_type: parent
return_children: false
return_packages: true
- name: Xymon
cmd_regexp: xymonlaunch
pkg_regexp: xymon
process_type: parent
return_children: false
return_packages: false
- name: Zabbix Server
cmd_regexp: "/usr/sbin/zabbix_server\ -c"
pkg_regexp: "zabbix-server.*"
process_type: parent
return_children: true
return_packages: true