java-rsyslog_check.yml
7.14 KB
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
# check rsyslog server to make sure the rsyslog agents transfered log files to rsyslog server successfully.
- hosts: java-rsyslog
remote_user: root
tasks:
- name: Check the log server IP consistency for activity
rsyslog_check:
module_name: activity
service_ip: " {{ item }} "
system_name: yohobuy
with_items:
- "{{ groups['java-activity'] }}"
ignore_errors: yes
# - name: Check the log server IP consistency for yoho-bigdata
# rsyslog_check:
# module_name: yoho-bigdata
# service_ip: " {{ item }} "
# system_name: yohobuy
# with_items:
# - "{{ groups['java-bigdata'] }}"
# ignore_errors: yes
- name: Check the log server IP consistency for brower
rsyslog_check:
module_name: brower
service_ip: " {{ item }} "
system_name: yohobuy
with_items:
- "{{ groups['java-brower'] }}"
ignore_errors: yes
- name: Check the log server IP consistency for crm
rsyslog_check:
module_name: crm
service_ip: " {{ item }} "
system_name: yohobuy
with_items:
- "{{ groups['java-crm'] }}"
ignore_errors: yes
- name: Check the log server IP consistency for erp-gateway
rsyslog_check:
module_name: erp-gateway
service_ip: " {{ item }} "
system_name: yohobuy
with_items:
- "{{ groups['java-erpgateway'] }}"
ignore_errors: yes
# - name: Check the log server IP consistency for extendstore
# rsyslog_check:
# module_name: extendstore
# service_ip: " {{ item }} "
# system_name: yohobuy
# with_items:
# - "{{ groups['java-extendstore'] }}"
# ignore_errors: yes
- name: Check the log server IP consistency for gateway
rsyslog_check:
module_name: gateway
service_ip: " {{ item }} "
system_name: yohobuy
with_items:
- "{{ groups['java-gateway'] }}"
ignore_errors: yes
- name: Check the log server IP consistency for message
rsyslog_check:
module_name: message
service_ip: " {{ item }} "
system_name: yohobuy
with_items:
- "{{ groups['java-message'] }}"
ignore_errors: yes
- name: Check the log server IP consistency for yoho-message-controller
rsyslog_check:
module_name: message-center/yoho-message-controller
service_ip: " {{ item }} "
system_name: yohobuy
with_items:
- "{{ groups['java-messagecontroller'] }}"
ignore_errors: yes
- name: Check the log server IP consistency for nginx
rsyslog_check:
module_name: nginx-java
service_ip: " {{ item }} "
system_name: yohobuy
with_items:
- "{{ groups['java-nginx'] }}"
ignore_errors: yes
- name: Check the log server IP consistency for order
rsyslog_check:
module_name: order
service_ip: " {{ item }} "
system_name: yohobuy
with_items:
- "{{ groups['java-order'] }}"
ignore_errors: yes
- name: Check the log server IP consistency for platform-cms
rsyslog_check:
module_name: platform-cms
service_ip: " {{ item }} "
system_name: yohobuy
with_items:
- "{{ groups['java-platform-cms'] }}"
ignore_errors: yes
- name: Check the log server IP consistency for portal-gateway
rsyslog_check:
module_name: portal-gateway
service_ip: " {{ item }} "
system_name: yohobuy
with_items:
- "{{ groups['java-portal-gateway'] }}"
ignore_errors: yes
- name: Check the log server IP consistency for product
rsyslog_check:
module_name: product
service_ip: " {{ item }} "
system_name: yohobuy
with_items:
- "{{ groups['java-product'] }}"
ignore_errors: yes
- name: Check the log server IP consistency for promotion
rsyslog_check:
module_name: promotion
service_ip: " {{ item }} "
system_name: yohobuy
with_items:
- "{{ groups['java-promotion'] }}"
ignore_errors: yes
- name: Check the log server IP consistency for resources
rsyslog_check:
module_name: resources
service_ip: " {{ item }} "
system_name: yohobuy
with_items:
- "{{ groups['java-resources'] }}"
ignore_errors: yes
- name: Check the log server IP consistency for reviewed
rsyslog_check:
module_name: reviewed
service_ip: " {{ item }} "
system_name: yohobuy
with_items:
- "{{ groups['java-review'] }}"
ignore_errors: yes
# - name: Check the log server IP consistency for risk
# rsyslog_check:
# module_name: risk
# service_ip: " {{ item }} "
# system_name: yohobuy
# with_items:
# - "{{ groups['java-risk'] }}"
# ignore_errors: yes
- name: Check the log server IP consistency for shops
rsyslog_check:
module_name: shops
service_ip: " {{ item }} "
system_name: yohobuy
with_items:
- "{{ groups['java-shops'] }}"
ignore_errors: yes
- name: Check the log server IP consistency for sns
rsyslog_check:
module_name: sns
service_ip: " {{ item }} "
system_name: yohobuy
with_items:
- "{{ groups['java-sns'] }}"
ignore_errors: yes
# - name: Check the log server IP consistency for social
# rsyslog_check:
# module_name: social
# service_ip: " {{ item }} "
# system_name: yohobuy
# with_items:
# - "{{ groups['java-social'] }}"
# ignore_errors: yes
- name: Check the log server IP consistency for ufo-gateway
rsyslog_check:
module_name: ufo-gateway
service_ip: " {{ item }} "
system_name: yohobuy
with_items:
- "{{ groups['java-ufo-fore'] }}"
ignore_errors: yes
- name: Check the log server IP consistency for ufo-platform
rsyslog_check:
module_name: ufo-platform
service_ip: " {{ item }} "
system_name: yohobuy
with_items:
- "{{ groups['java-ufo-platform'] }}"
ignore_errors: yes
- name: Check the log server IP consistency for uic
rsyslog_check:
module_name: uic
service_ip: " {{ item }} "
system_name: yohobuy
with_items:
- "{{ groups['java-uic'] }}"
ignore_errors: yes
- name: Check the log server IP consistency for union
rsyslog_check:
module_name: union
service_ip: " {{ item }} "
system_name: yohobuy
with_items:
- "{{ groups['java-union'] }}"
ignore_errors: yes
- name: Check the log server IP consistency for users
rsyslog_check:
module_name: users
service_ip: " {{ item }} "
system_name: yohobuy
with_items:
- "{{ groups['java-users'] }}"
ignore_errors: yes
- name: Check the log server IP consistency for wechat
rsyslog_check:
module_name: wechat
service_ip: " {{ item }} "
system_name: yohobuy
with_items:
- "{{ groups['java-wechat'] }}"
ignore_errors: yes