-
Notifications
You must be signed in to change notification settings - Fork 4
/
Template_App_Windows_Broker.yaml
654 lines (654 loc) · 21.7 KB
/
Template_App_Windows_Broker.yaml
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
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
zabbix_export:
version: '5.4'
date: '2022-03-02T14:56:20Z'
groups:
-
uuid: a571c0d144b14fd4a87a9d9b2aa9fcd6
name: Templates/Applications
templates:
-
uuid: ae5e1a767a0842f8ada1b6c275578839
template: 'Template App Windows Broker'
name: 'Template App Windows Broker'
groups:
-
name: Templates/Applications
items:
-
uuid: a1f0a861a4da4b9d89b3b7f9024557c8
name: 'Broker Results'
type: TRAP
key: ResultsBroker
delay: '0'
history: 1d
trends: '0'
value_type: TEXT
preprocessing:
-
type: TRIM
parameters:
- '"'
tags:
-
tag: Application
value: 'Master Item Broker'
triggers:
-
uuid: e98b2a0c6d434bee80a0bc06db5a51ab
expression: 'nodata(/Template App Windows Broker/ResultsBroker,7200)=1'
name: 'No Data in Broker Results'
priority: AVERAGE
-
uuid: c64944344d8d415cbc2fb3ba6ea29a8d
name: 'Base de données interne Windows'
key: 'service.info[MSSQL$MICROSOFT##WID]'
history: 20d
request_method: POST
tags:
-
tag: Application
value: Broker
triggers:
-
uuid: e5965ec2223746a1ab649910b73fcd42
expression: 'last(/Template App Windows Broker/service.info[MSSQL$MICROSOFT##WID])=6'
name: 'Service BDD Interne (WID) Arrêté'
priority: HIGH
-
uuid: a2c35467d5a5490ba0795365fbab58c6
name: 'Administration connexions RemoteApp et services Bureau à distance'
key: 'service.info[TScPubRPC]'
history: 20d
valuemap:
name: 'Windows service state'
request_method: POST
tags:
-
tag: Application
value: Broker
triggers:
-
uuid: 02d2beb63add4f3b8c004322e0582f8c
expression: 'last(/Template App Windows Broker/service.info[TScPubRPC])=6'
name: 'Service Administration connexions RemoteApp et services Bureau à distance Arrêté'
priority: HIGH
-
uuid: ff9443c1138840c6a619d7b25a6e4862
name: 'Service Broker pour les connexions Bureau à distance'
key: 'service.info[Tssdis]'
history: 20d
valuemap:
name: 'Windows service state'
request_method: POST
tags:
-
tag: Application
value: Broker
triggers:
-
uuid: 522d0fbcf45441aaa53a5898eb3daa9b
expression: 'last(/Template App Windows Broker/service.info[Tssdis])=6'
name: 'Service Broker Arrêté'
priority: HIGH
-
uuid: 63481603aff34bfbb05f3223ec54316f
name: 'Start Broker Job'
key: 'system.run[powershell -NoProfile -ExecutionPolicy Bypass -File "C:\Program Files\Zabbix Agent 2\scripts\zabbix_broker.ps1",nowait]'
delay: 2m
history: '0'
trends: '0'
tags:
-
tag: Application
value: 'Master Item Broker'
discovery_rules:
-
uuid: 8954154d3565427d8e223103d743636d
name: 'Results Broker'
type: DEPENDENT
key: Discovery.Broker.Results
delay: '0'
lifetime: 2h
item_prototypes:
-
uuid: 4a932d6a50624bbcac359e8d6ae25913
name: 'Utilisation NLA pour la connection : {#COLLECTIONNAME} : {#SESSIONHOST}'
type: DEPENDENT
key: 'broker[AuthenticateUsingNLA,{#COLLECTIONNAME},{#SESSIONHOST}]'
delay: '0'
trends: '0'
value_type: TEXT
preprocessing:
-
type: JSONPATH
parameters:
- '$.[?(@.CollectionName == "{#COLLECTIONNAME}")]'
-
type: JSONPATH
parameters:
- '$.[?(@.SessionHost == "{#SESSIONHOST}")].AuthenticateUsingNLA'
-
type: STR_REPLACE
parameters:
- '['
- ''
-
type: STR_REPLACE
parameters:
- ']'
- ''
master_item:
key: ResultsBroker
tags:
-
tag: Application
value: 'Config Broker'
-
uuid: 8ed3255a4566412da33565f05c9330c5
name: 'Reconnexion automatique : {#COLLECTIONNAME} : {#SESSIONHOST}'
type: DEPENDENT
key: 'broker[AutomaticReconnectionEnabled,{#COLLECTIONNAME},{#SESSIONHOST}]'
delay: '0'
trends: '0'
value_type: TEXT
preprocessing:
-
type: JSONPATH
parameters:
- '$.[?(@.CollectionName == "{#COLLECTIONNAME}")]'
-
type: JSONPATH
parameters:
- '$.[?(@.SessionHost == "{#SESSIONHOST}")].AutomaticReconnectionEnabled'
-
type: STR_REPLACE
parameters:
- '['
- ''
-
type: STR_REPLACE
parameters:
- ']'
- ''
master_item:
key: ResultsBroker
tags:
-
tag: Application
value: 'Config Broker'
-
uuid: e358f417080f4fb591a0ccc440f9650a
name: 'Redirection pour les entités suivantes : {#COLLECTIONNAME} : {#SESSIONHOST}'
type: DEPENDENT
key: 'broker[ClientDeviceRedirectionOptions,{#COLLECTIONNAME},{#SESSIONHOST}]'
delay: '0'
trends: '0'
value_type: TEXT
preprocessing:
-
type: JSONPATH
parameters:
- '$.[?(@.CollectionName == "{#COLLECTIONNAME}")]'
-
type: JSONPATH
parameters:
- '$.[?(@.SessionHost == "{#SESSIONHOST}")].ClientDeviceRedirectionOptions'
-
type: STR_REPLACE
parameters:
- '['
- ''
-
type: STR_REPLACE
parameters:
- ']'
- ''
master_item:
key: ResultsBroker
tags:
-
tag: Application
value: 'Config Broker'
-
uuid: b10a17ed3e6f49b7b468ad32bbefc216
name: 'Utiliser le périphérique d''impression par défaut du client : {#COLLECTIONNAME} : {#SESSIONHOST}'
type: DEPENDENT
key: 'broker[ClientPrinterAsDefault,{#COLLECTIONNAME},{#SESSIONHOST}]'
delay: '0'
trends: '0'
value_type: TEXT
preprocessing:
-
type: JSONPATH
parameters:
- '$.[?(@.CollectionName == "{#COLLECTIONNAME}")]'
-
type: JSONPATH
parameters:
- '$.[?(@.SessionHost == "{#SESSIONHOST}")].ClientPrinterAsDefault'
-
type: STR_REPLACE
parameters:
- '['
- ''
-
type: STR_REPLACE
parameters:
- ']'
- ''
master_item:
key: ResultsBroker
tags:
-
tag: Application
value: 'Config Broker'
-
uuid: 7d8faff395074621af928f8297395a6e
name: 'Autoriser la redirection d''imprimante : {#COLLECTIONNAME} : {#SESSIONHOST}'
type: DEPENDENT
key: 'broker[ClientPrinterRedirected,{#COLLECTIONNAME},{#SESSIONHOST}]'
delay: '0'
trends: '0'
value_type: TEXT
preprocessing:
-
type: JSONPATH
parameters:
- '$.[?(@.CollectionName == "{#COLLECTIONNAME}")]'
-
type: JSONPATH
parameters:
- '$.[?(@.SessionHost == "{#SESSIONHOST}")].ClientPrinterRedirected'
-
type: STR_REPLACE
parameters:
- '['
- ''
-
type: STR_REPLACE
parameters:
- ']'
- ''
master_item:
key: ResultsBroker
tags:
-
tag: Application
value: 'Config Broker'
-
uuid: 348b22000f6c429684b20a421acc12b5
name: 'Niveau de chiffrement : {#COLLECTIONNAME} : {#SESSIONHOST}'
type: DEPENDENT
key: 'broker[EncryptionLevel,{#COLLECTIONNAME},{#SESSIONHOST}]'
delay: '0'
trends: '0'
value_type: TEXT
preprocessing:
-
type: JSONPATH
parameters:
- '$.[?(@.CollectionName == "{#COLLECTIONNAME}")]'
-
type: JSONPATH
parameters:
- '$.[?(@.SessionHost == "{#SESSIONHOST}")].EncryptionLevel'
-
type: STR_REPLACE
parameters:
- '['
- ''
-
type: STR_REPLACE
parameters:
- ']'
- ''
master_item:
key: ResultsBroker
tags:
-
tag: Application
value: 'Config Broker'
-
uuid: 9b967a5c9b7d41c5b1c0c520864251e5
name: 'Nouvelle connexion autorisée : {#COLLECTIONNAME} : {#SESSIONHOST}'
type: DEPENDENT
key: 'broker[NewConnectionAllowed,{#COLLECTIONNAME},{#SESSIONHOST}]'
delay: '0'
trends: '0'
value_type: TEXT
preprocessing:
-
type: JSONPATH
parameters:
- '$.[?(@.CollectionName == "{#COLLECTIONNAME}")]'
-
type: JSONPATH
parameters:
- '$.[?(@.SessionHost == "{#SESSIONHOST}")].NewConnectionAllowed'
-
type: STR_REPLACE
parameters:
- '['
- ''
-
type: STR_REPLACE
parameters:
- ']'
- ''
master_item:
key: ResultsBroker
tags:
-
tag: Application
value: 'Config Broker'
trigger_prototypes:
-
uuid: a74fe66c7cd84d0695f310f3e514697b
expression: 'last(/Template App Windows Broker/broker[NewConnectionAllowed,{#COLLECTIONNAME},{#SESSIONHOST}])<1'
recovery_mode: RECOVERY_EXPRESSION
recovery_expression: 'last(/Template App Windows Broker/broker[NewConnectionAllowed,{#COLLECTIONNAME},{#SESSIONHOST}])=1'
name: 'Serveur {#SESSIONHOST} en drainage'
priority: AVERAGE
-
uuid: e3d2c984e48641e390411b367f97bc62
name: 'Poid relatif : {#COLLECTIONNAME} : {#SESSIONHOST}'
type: DEPENDENT
key: 'broker[RelativeWeight,{#COLLECTIONNAME},{#SESSIONHOST}]'
delay: '0'
trends: '0'
value_type: TEXT
preprocessing:
-
type: JSONPATH
parameters:
- '$.[?(@.CollectionName == "{#COLLECTIONNAME}")]'
-
type: JSONPATH
parameters:
- '$.[?(@.SessionHost == "{#SESSIONHOST}")].LoadBalancing'
-
type: STR_REPLACE
parameters:
- '['
- ''
-
type: STR_REPLACE
parameters:
- ']'
- ''
master_item:
key: ResultsBroker
tags:
-
tag: Application
value: 'Config Broker'
trigger_prototypes:
-
uuid: 2e77788ad0d142b39a3d711c5db7b216
expression: 'last(/Template App Windows Broker/broker[RelativeWeight,{#COLLECTIONNAME},{#SESSIONHOST}])<100'
recovery_mode: RECOVERY_EXPRESSION
recovery_expression: 'last(/Template App Windows Broker/broker[RelativeWeight,{#COLLECTIONNAME},{#SESSIONHOST}])=100'
name: 'Serveur {#SESSIONHOST} poids relatif inférieur à 100'
priority: AVERAGE
-
uuid: 0de8858e52dd4139adecc6dc400451da
name: 'Couche de sécurité : {#COLLECTIONNAME} : {#SESSIONHOST}'
type: DEPENDENT
key: 'broker[SecurityLayer,{#COLLECTIONNAME},{#SESSIONHOST}]'
delay: '0'
trends: '0'
value_type: TEXT
preprocessing:
-
type: JSONPATH
parameters:
- '$.[?(@.CollectionName == "{#COLLECTIONNAME}")]'
-
type: JSONPATH
parameters:
- '$.[?(@.SessionHost == "{#SESSIONHOST}")].SecurityLayer'
-
type: STR_REPLACE
parameters:
- '['
- ''
-
type: STR_REPLACE
parameters:
- ']'
- ''
master_item:
key: ResultsBroker
tags:
-
tag: Application
value: 'Config Broker'
-
uuid: a89a3ae6a8b34cc0ab03c2b149e2cd07
name: 'Supprimer les dossiers temporaires en quittant : {#COLLECTIONNAME} : {#SESSIONHOST}'
type: DEPENDENT
key: 'broker[TemporaryFoldersDeletedOnExit,{#COLLECTIONNAME},{#SESSIONHOST}]'
delay: '0'
trends: '0'
value_type: TEXT
preprocessing:
-
type: JSONPATH
parameters:
- '$.[?(@.CollectionName == "{#COLLECTIONNAME}")]'
-
type: JSONPATH
parameters:
- '$.[?(@.SessionHost == "{#SESSIONHOST}")].TemporaryFoldersDeletedOnExit'
-
type: STR_REPLACE
parameters:
- '['
- ''
-
type: STR_REPLACE
parameters:
- ']'
- ''
master_item:
key: ResultsBroker
tags:
-
tag: Application
value: 'Config Broker'
-
uuid: 017917042bf14fce8558917e423f9e48
name: 'Groupe AD connexion RDS : {#COLLECTIONNAME} : {#SESSIONHOST}'
type: DEPENDENT
key: 'broker[UserGroup,{#COLLECTIONNAME},{#SESSIONHOST}]'
delay: '0'
trends: '0'
status: DISABLED
discover: NO_DISCOVER
value_type: TEXT
preprocessing:
-
type: JSONPATH
parameters:
- '$.[?(@.CollectionName == "{#COLLECTIONNAME}")]'
-
type: JSONPATH
parameters:
- '$.[?(@.SessionHost == "{#SESSIONHOST}")].UserGroup'
-
type: STR_REPLACE
parameters:
- '['
- ''
-
type: STR_REPLACE
parameters:
- ']'
- ''
master_item:
key: ResultsBroker
tags:
-
tag: Application
value: 'Config Broker'
-
uuid: 03917e467b08462aa67fae0ea2f036c1
name: 'Status UPD : {#COLLECTIONNAME} : {#SESSIONHOST}'
type: DEPENDENT
key: 'broker[UserProfileDisk,{#COLLECTIONNAME},{#SESSIONHOST}]'
delay: '0'
trends: '0'
value_type: TEXT
preprocessing:
-
type: JSONPATH
parameters:
- '$.[?(@.CollectionName == "{#COLLECTIONNAME}")]'
-
type: JSONPATH
parameters:
- '$.[?(@.SessionHost == "{#SESSIONHOST}")].UserProfileDisk'
-
type: STR_REPLACE
parameters:
- '['
- ''
-
type: STR_REPLACE
parameters:
- ']'
- ''
master_item:
key: ResultsBroker
tags:
-
tag: Application
value: 'Config Broker'
master_item:
key: ResultsBroker
preprocessing:
-
type: STR_REPLACE
parameters:
- CollectionName
- '{#COLLECTIONNAME}'
-
type: STR_REPLACE
parameters:
- SessionHost
- '{#SESSIONHOST}'
-
type: STR_REPLACE
parameters:
- NewConnectionAllowed
- '{#NEWCONNECTIONALLOWED}'
-
type: STR_REPLACE
parameters:
- UserProfileDisk
- '{#USERPROFILEDISK}'
-
type: STR_REPLACE
parameters:
- UserGroup
- '{#USERGROUP}'
-
type: STR_REPLACE
parameters:
- DisconnectedSessionLimitMin
- '{#DISCONNECTEDSESSIONLIMITMIN}'
-
type: STR_REPLACE
parameters:
- IdleSessionLimitMin
- '{#IDLESESSIONLIMITMIN}'
-
type: STR_REPLACE
parameters:
- ActiveSessionLimitMin
- '{#ACTIVESESSIONLIMITMIN}'
-
type: STR_REPLACE
parameters:
- BrokenConnectionAction
- '{#BROKENCONNECTIONACTION}'
-
type: STR_REPLACE
parameters:
- AutomaticReconnectionEnabled
- '{#AUTOMATICRECONNECTIONENABLED}'
-
type: STR_REPLACE
parameters:
- TemporaryFoldersDeletedOnExit
- '{#TEMPORARYFOLDERSDELETEDONEXIT}'
-
type: STR_REPLACE
parameters:
- AuthenticateUsingNLA
- '{#AUTHENTICATEUSINGNLA}'
-
type: STR_REPLACE
parameters:
- EncryptionLevel
- '{#ENCRYPTIONLEVEL}'
-
type: STR_REPLACE
parameters:
- SecurityLayer
- '{#SECURITYLAYER}'
-
type: STR_REPLACE
parameters:
- LoadBalancing
- '{#LOADBALANCING}'
-
type: STR_REPLACE
parameters:
- ClientPrinterRedirected
- '{#CLIENTPRINTERREDIRECTED}'
-
type: STR_REPLACE
parameters:
- ClientPrinterAsDefault
- '{#CLIENTPRINTERASDEFAULT}'
-
type: STR_REPLACE
parameters:
- ClientDeviceRedirectionOptions
- '{#CLIENTDEVICEREDIRECTIONOPTIONS}'
macros:
-
macro: '{$GROUPBROKER}'
valuemaps:
-
uuid: 31849bbd990b444b8986cc20ae6c4bf6
name: 'Windows service state'
mappings:
-
value: '0'
newvalue: Running
-
value: '1'
newvalue: Paused
-
value: '3'
newvalue: 'Pause pending'
-
value: '4'
newvalue: 'Continue pending'
-
value: '5'
newvalue: 'Stop pending'
-
value: '6'
newvalue: Stopped
-
value: '7'
newvalue: Unknown
-
value: '255'
newvalue: 'No such service'
-
value: '2'
newvalue: 'Start pending'