-
Notifications
You must be signed in to change notification settings - Fork 312
/
omsagent.conf
112 lines (94 loc) · 2.29 KB
/
omsagent.conf
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
# This file is an example of what the config file pushed by the server should look like
@include omsagent.d/*.conf
# Heartbeat
<source>
type exec
tag heartbeat.output
command echo > /dev/null
format tsv
keys severity,message
run_interval 20m
</source>
#<source>
# type oms_omi
# object_name "Memory"
# instance_regex ".*"
# counter_name_regex "(% Used Memory|% Used Swap Space|Available MBytes Memory)"
# interval 30s
# omi_mapping_path %CONF_DIR_WS%/omsagent.d/omi_mapping.json
#</source>
#<source>
# type tail
# path /var/log/nagios/nagios.log
# format none
# tag oms.nagios
#</source>
#<source>
# type zabbix_alerts
# run_interval 1m
# tag oms.zabbix
# zabbix_url http://localhost/zabbix/api_jsonrpc.php
# zabbix_username Admin
# zabbix_password zabbix
#</source>
#<filter oms.nagios>
# type filter_nagios_log
#</filter>
<match oms.blob.**>
type out_oms_blob
log_level info
num_threads 5
run_in_background false
omsadmin_conf_path %CONF_DIR_WS%/omsadmin.conf
cert_path %CERT_DIR_WS%/oms.crt
key_path %CERT_DIR_WS%/oms.key
buffer_chunk_limit 10m
buffer_type file
buffer_path %STATE_DIR_WS%/out_oms_blob*.buffer
buffer_queue_limit 10
buffer_queue_full_action drop_oldest_chunk
flush_interval 60s
retry_limit 10
retry_wait 30s
max_retry_wait 9m
</match>
<match oms.** docker.**>
type out_oms
log_level info
num_threads 5
run_in_background false
omsadmin_conf_path %CONF_DIR_WS%/omsadmin.conf
cert_path %CERT_DIR_WS%/oms.crt
key_path %CERT_DIR_WS%/oms.key
buffer_chunk_limit 15m
buffer_type file
buffer_path %STATE_DIR_WS%/out_oms_common*.buffer
buffer_queue_limit 10
buffer_queue_full_action drop_oldest_chunk
flush_interval 20s
retry_limit 10
retry_wait 30s
max_retry_wait 9m
</match>
<match diag.oms diag.oms.**>
type out_oms_diag
log_level info
num_threads 5
run_in_background false
omsadmin_conf_path %CONF_DIR_WS%/omsadmin.conf
cert_path %CERT_DIR_WS%/oms.crt
key_path %CERT_DIR_WS%/oms.key
buffer_chunk_limit 1m
buffer_type file
buffer_path %STATE_DIR_WS%/out_oms_diag*.buffer
buffer_queue_limit 50
buffer_queue_full_action drop_oldest_chunk
flush_interval 10s
retry_limit 10
retry_wait 30s
max_retry_wait 9m
</match>
# Catch all unprocessed data and output it
#<match **>
# type stdout
#</match>