Welcome to mirror list, hosted at ThFree Co, Russian Federation.

template_app_exchange_active.yaml « exchange_active « app « templates - github.com/zabbix/zabbix.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 5eb1c00482507f46d6026d89379b71cbdeb86f9f (plain)
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
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
zabbix_export:
  version: '5.4'
  date: '2021-05-09T00:00:00Z'
  groups:
    -
      name: Templates/Applications
  templates:
    -
      template: 'Microsoft Exchange Server 2016 by Zabbix agent active'
      name: 'Microsoft Exchange Server 2016 by Zabbix agent active'
      description: |
        The template to monitor Microsoft Exchange Server 2016 by Zabbix that works without any external scripts.
        The metrics are collected by Zabbix agent active.
        Recommended to use it with "OS Windows by Zabbix agent active" template.
        
        
        You can discuss this template or leave feedback on our forum https://www.zabbix.com/forum/zabbix-suggestions-and-feedback/415007-discussion-thread-for-official-zabbix-template-microsoft-exchange
        
        Template tooling version used: 0.38
      groups:
        -
          name: Templates/Applications
      items:
        -
          name: 'MS Exchange: Databases total mounted'
          type: ZABBIX_ACTIVE
          key: 'perf_counter_en["\MSExchange Active Manager(_total)\Database Mounted"]'
          delay: '{$MS.EXCHANGE.PERF.INTERVAL}'
          history: 7d
          description: 'Shows the number of active database copies on the server.'
          preprocessing:
            -
              type: DISCARD_UNCHANGED_HEARTBEAT
              parameters:
                - 3h
          tags:
            -
              tag: Application
              value: 'MS Exchange'
        -
          name: 'MS Exchange [Client Access Server]: ActiveSync: ping command pending'
          type: ZABBIX_ACTIVE
          key: 'perf_counter_en["\MSExchange ActiveSync\Ping Commands Pending", {$MS.EXCHANGE.PERF.INTERVAL}]'
          delay: '{$MS.EXCHANGE.PERF.INTERVAL}'
          history: 7d
          value_type: FLOAT
          description: 'Shows the number of ping commands currently pending in the queue.'
          tags:
            -
              tag: Application
              value: 'MS Exchange'
        -
          name: 'MS Exchange [Client Access Server]: ActiveSync: requests per second'
          type: ZABBIX_ACTIVE
          key: 'perf_counter_en["\MSExchange ActiveSync\Requests/sec", {$MS.EXCHANGE.PERF.INTERVAL}]'
          delay: '{$MS.EXCHANGE.PERF.INTERVAL}'
          history: 7d
          value_type: FLOAT
          description: 'Shows the number of HTTP requests received from the client via ASP.NET per second. Determines the current Exchange ActiveSync request rate. Used only to determine current user load.'
          tags:
            -
              tag: Application
              value: 'MS Exchange'
        -
          name: 'MS Exchange [Client Access Server]: ActiveSync: sync commands per second'
          type: ZABBIX_ACTIVE
          key: 'perf_counter_en["\MSExchange ActiveSync\Sync Commands/sec", {$MS.EXCHANGE.PERF.INTERVAL}]'
          delay: '{$MS.EXCHANGE.PERF.INTERVAL}'
          history: 7d
          value_type: FLOAT
          description: 'Shows the number of sync commands processed per second. Clients use this command to synchronize items within a folder.'
          tags:
            -
              tag: Application
              value: 'MS Exchange'
        -
          name: 'MS Exchange [Client Access Server]: Autodiscover: requests per second'
          type: ZABBIX_ACTIVE
          key: 'perf_counter_en["\MSExchangeAutodiscover\Requests/sec", {$MS.EXCHANGE.PERF.INTERVAL}]'
          delay: '{$MS.EXCHANGE.PERF.INTERVAL}'
          history: 7d
          value_type: FLOAT
          description: 'Shows the number of Autodiscover service requests processed each second. Determines current user load.'
          tags:
            -
              tag: Application
              value: 'MS Exchange'
        -
          name: 'MS Exchange [Client Access Server]: Availability Service: availability requests per second'
          type: ZABBIX_ACTIVE
          key: 'perf_counter_en["\MSExchange Availability Service\Availability Requests (sec)", {$MS.EXCHANGE.PERF.INTERVAL}]'
          delay: '{$MS.EXCHANGE.PERF.INTERVAL}'
          history: 7d
          value_type: FLOAT
          description: 'Shows the number of requests serviced per second. The request can be only for free/ busy information or include suggestions. One request may contain multiple mailboxes. Determines the rate at which Availability service requests are occurring.'
          tags:
            -
              tag: Application
              value: 'MS Exchange'
        -
          name: 'MS Exchange [Client Access Server]: Outlook Web App: current unique users'
          type: ZABBIX_ACTIVE
          key: 'perf_counter_en["\MSExchange OWA\Current Unique Users", {$MS.EXCHANGE.PERF.INTERVAL}]'
          delay: '{$MS.EXCHANGE.PERF.INTERVAL}'
          history: 7d
          value_type: FLOAT
          description: 'Shows the number of unique users currently logged on to Outlook Web App. This value monitors the number of unique active user sessions, so that users are only removed from this counter after they log off or their session times out. Determines current user load.'
          tags:
            -
              tag: Application
              value: 'MS Exchange'
        -
          name: 'MS Exchange [Client Access Server]: Outlook Web App: requests per second'
          type: ZABBIX_ACTIVE
          key: 'perf_counter_en["\MSExchange OWA\Requests/sec", {$MS.EXCHANGE.PERF.INTERVAL}]'
          delay: '{$MS.EXCHANGE.PERF.INTERVAL}'
          history: 7d
          value_type: FLOAT
          description: 'Shows the number of requests handled by Outlook Web App per second. Determines current user load.'
          tags:
            -
              tag: Application
              value: 'MS Exchange'
        -
          name: 'MS Exchange [Client Access Server]: MSExchangeWS: requests per second'
          type: ZABBIX_ACTIVE
          key: 'perf_counter_en["\MSExchangeWS\Requests/sec", {$MS.EXCHANGE.PERF.INTERVAL}]'
          delay: '{$MS.EXCHANGE.PERF.INTERVAL}'
          history: 7d
          value_type: FLOAT
          description: 'Shows the number of requests processed each second. Determines current user load.'
          tags:
            -
              tag: Application
              value: 'MS Exchange'
      discovery_rules:
        -
          name: 'Databases discovery'
          type: ZABBIX_ACTIVE
          key: 'perf_instance.discovery["MSExchange Active Manager"]'
          delay: 1h
          description: 'Discovery of Exchange databases.'
          item_prototypes:
            -
              name: 'Active Manager [{#INSTANCE}]: Database copy role'
              type: ZABBIX_ACTIVE
              key: 'perf_counter_en["\MSExchange Active Manager({#INSTANCE})\Database Copy Role Active"]'
              delay: '{$MS.EXCHANGE.PERF.INTERVAL}'
              history: 7d
              value_type: FLOAT
              description: 'Database copy active or passive role.'
              valuemap:
                name: 'Exchange database copy role'
              preprocessing:
                -
                  type: DISCARD_UNCHANGED_HEARTBEAT
                  parameters:
                    - 3h
              tags:
                -
                  tag: Application
                  value: 'Database {#INSTANCE}'
            -
              name: 'Information Store [{#INSTANCE}]: Page faults per second'
              type: ZABBIX_ACTIVE
              key: 'perf_counter_en["\MSExchange Database({#INF.STORE})\Database Page Fault Stalls/sec", {$MS.EXCHANGE.PERF.INTERVAL}]'
              delay: '{$MS.EXCHANGE.PERF.INTERVAL}'
              history: 7d
              value_type: FLOAT
              description: 'Indicates the rate of page faults that can''t be serviced because there are no pages available for allocation from the database cache. If this counter is above 0, it''s an indication that the MSExchange Database\I/O Database Writes (Attached) Average Latency is too high.'
              tags:
                -
                  tag: Application
                  value: 'Database {#INSTANCE}'
              trigger_prototypes:
                -
                  expression: 'min(/Microsoft Exchange Server 2016 by Zabbix agent active/perf_counter_en["\MSExchange Database({#INF.STORE})\Database Page Fault Stalls/sec", {$MS.EXCHANGE.PERF.INTERVAL}],{$MS.EXCHANGE.DB.FAULTS.TIME})>{$MS.EXCHANGE.DB.FAULTS.WARN}'
                  name: 'Information Store [{#INSTANCE}]: Page faults is too high (>{$MS.EXCHANGE.DB.FAULTS.WARN} for {$MS.EXCHANGE.DB.FAULTS.TIME})'
                  priority: AVERAGE
                  description: 'Too much page faults stalls for database "{#INSTANCE}". This counter should be 0 on production servers.'
            -
              name: 'Information Store [{#INSTANCE}]: Log records stalled'
              type: ZABBIX_ACTIVE
              key: 'perf_counter_en["\MSExchange Database({#INF.STORE})\Log Record Stalls/sec", {$MS.EXCHANGE.PERF.INTERVAL}]'
              delay: '{$MS.EXCHANGE.PERF.INTERVAL}'
              history: 7d
              value_type: FLOAT
              description: 'Indicates the number of log records that can''t be added to the log buffers per second because the log buffers are full. The average value should be below 10 per second. Spikes (maximum values) shouldn''t be higher than 100 per second.'
              tags:
                -
                  tag: Application
                  value: 'Database {#INSTANCE}'
              trigger_prototypes:
                -
                  expression: 'avg(/Microsoft Exchange Server 2016 by Zabbix agent active/perf_counter_en["\MSExchange Database({#INF.STORE})\Log Record Stalls/sec", {$MS.EXCHANGE.PERF.INTERVAL}],{$MS.EXCHANGE.LOG.STALLS.TIME})>{$MS.EXCHANGE.LOG.STALLS.WARN}'
                  name: 'Information Store [{#INSTANCE}]: Log records stalls is too high (>{$MS.EXCHANGE.LOG.STALLS.WARN} for {$MS.EXCHANGE.LOG.STALLS.TIME})'
                  priority: AVERAGE
                  description: 'Stalled log records too high. The average value should be less than 10 threads waiting.'
            -
              name: 'Information Store [{#INSTANCE}]: Log threads waiting'
              type: ZABBIX_ACTIVE
              key: 'perf_counter_en["\MSExchange Database({#INF.STORE})\Log Threads Waiting", {$MS.EXCHANGE.PERF.INTERVAL}]'
              delay: '{$MS.EXCHANGE.PERF.INTERVAL}'
              history: 7d
              value_type: FLOAT
              description: 'Indicates the number of threads waiting to complete an update of the database by writing their data to the log.'
              tags:
                -
                  tag: Application
                  value: 'Database {#INSTANCE}'
            -
              name: 'Database Counters [{#INSTANCE}]: Active database read operations per second'
              type: ZABBIX_ACTIVE
              key: 'perf_counter_en["\MSExchange Database ==> Instances({#INF.STORE}/_Total)\I/O Database Reads (Attached)/sec", {$MS.EXCHANGE.PERF.INTERVAL}]'
              delay: '{$MS.EXCHANGE.PERF.INTERVAL}'
              history: 7d
              value_type: FLOAT
              description: 'Shows the number of database read operations.'
              tags:
                -
                  tag: Application
                  value: 'Database {#INSTANCE}'
            -
              name: 'Database Counters [{#INSTANCE}]: Active database read operations latency'
              type: ZABBIX_ACTIVE
              key: 'perf_counter_en["\MSExchange Database ==> Instances({#INF.STORE}/_Total)\I/O Database Reads (Attached) Average Latency", {$MS.EXCHANGE.PERF.INTERVAL}]'
              delay: '{$MS.EXCHANGE.PERF.INTERVAL}'
              history: 7d
              value_type: FLOAT
              units: s
              description: 'Shows the average length of time per database read operation. Should be less than 20 ms on average.'
              preprocessing:
                -
                  type: MULTIPLIER
                  parameters:
                    - '0.001'
              tags:
                -
                  tag: Application
                  value: 'Database {#INSTANCE}'
              trigger_prototypes:
                -
                  expression: 'min(/Microsoft Exchange Server 2016 by Zabbix agent active/perf_counter_en["\MSExchange Database ==> Instances({#INF.STORE}/_Total)\I/O Database Reads (Attached) Average Latency", {$MS.EXCHANGE.PERF.INTERVAL}],{$MS.EXCHANGE.DB.ACTIVE.READ.TIME})>{$MS.EXCHANGE.DB.ACTIVE.READ.WARN}'
                  name: 'Database Counters [{#INSTANCE}]: Average read time latency is too high (>{$MS.EXCHANGE.DB.ACTIVE.READ.WARN}s for {$MS.EXCHANGE.DB.ACTIVE.READ.TIME})'
                  priority: WARNING
                  description: 'Should be less than 20ms on average.'
            -
              name: 'Database Counters [{#INSTANCE}]: Passive database read operations latency'
              type: ZABBIX_ACTIVE
              key: 'perf_counter_en["\MSExchange Database ==> Instances({#INF.STORE}/_Total)\I/O Database Reads (Recovery) Average Latency", {$MS.EXCHANGE.PERF.INTERVAL}]'
              delay: '{$MS.EXCHANGE.PERF.INTERVAL}'
              history: 7d
              value_type: FLOAT
              units: s
              description: 'Shows the average length of time per passive database read operation. Should be less than 200ms on average.'
              preprocessing:
                -
                  type: MULTIPLIER
                  parameters:
                    - '0.001'
              tags:
                -
                  tag: Application
                  value: 'Database {#INSTANCE}'
              trigger_prototypes:
                -
                  expression: 'min(/Microsoft Exchange Server 2016 by Zabbix agent active/perf_counter_en["\MSExchange Database ==> Instances({#INF.STORE}/_Total)\I/O Database Reads (Recovery) Average Latency", {$MS.EXCHANGE.PERF.INTERVAL}],{$MS.EXCHANGE.DB.PASSIVE.READ.TIME})>{$MS.EXCHANGE.DB.PASSIVE.READ.WARN}'
                  name: 'Database Counters [{#INSTANCE}]: Average read time latency is too high (>{$MS.EXCHANGE.DB.PASSIVE.READ.WARN}s for {$MS.EXCHANGE.DB.PASSIVE.READ.TIME})'
                  priority: WARNING
                  description: 'Should be less than 200ms on average.'
            -
              name: 'Database Counters [{#INSTANCE}]: Active database write operations per second'
              type: ZABBIX_ACTIVE
              key: 'perf_counter_en["\MSExchange Database ==> Instances({#INF.STORE}/_Total)\I/O Database Writes (Attached)/sec", {$MS.EXCHANGE.PERF.INTERVAL}]'
              delay: '{$MS.EXCHANGE.PERF.INTERVAL}'
              history: 7d
              value_type: FLOAT
              description: 'Shows the number of database write operations per second for each attached database instance.'
              tags:
                -
                  tag: Application
                  value: 'Database {#INSTANCE}'
            -
              name: 'Database Counters [{#INSTANCE}]: Active database write operations latency'
              type: ZABBIX_ACTIVE
              key: 'perf_counter_en["\MSExchange Database ==> Instances({#INF.STORE}/_Total)\I/O Database Writes (Attached) Average Latency", {$MS.EXCHANGE.PERF.INTERVAL}]'
              delay: '{$MS.EXCHANGE.PERF.INTERVAL}'
              history: 7d
              value_type: FLOAT
              units: s
              description: 'Shows the average length of time per database write operation. Should be less than 50ms on average.'
              preprocessing:
                -
                  type: MULTIPLIER
                  parameters:
                    - '0.001'
              tags:
                -
                  tag: Application
                  value: 'Database {#INSTANCE}'
              trigger_prototypes:
                -
                  expression: 'min(/Microsoft Exchange Server 2016 by Zabbix agent active/perf_counter_en["\MSExchange Database ==> Instances({#INF.STORE}/_Total)\I/O Database Writes (Attached) Average Latency", {$MS.EXCHANGE.PERF.INTERVAL}],{$MS.EXCHANGE.DB.ACTIVE.WRITE.TIME})>{$MS.EXCHANGE.DB.ACTIVE.WRITE.WARN}'
                  name: 'Database Counters [{#INSTANCE}]: Average write time latency is too high for {$MS.EXCHANGE.DB.ACTIVE.WRITE.TIME}'
                  priority: WARNING
                  description: 'Should be less than 50ms on average.'
            -
              name: 'Database Counters [{#INSTANCE}]: Passive database write operations latency'
              type: ZABBIX_ACTIVE
              key: 'perf_counter_en["\MSExchange Database ==> Instances({#INF.STORE}/_Total)\I/O Database Writes (Recovery) Average Latency", {$MS.EXCHANGE.PERF.INTERVAL}]'
              delay: '{$MS.EXCHANGE.PERF.INTERVAL}'
              history: 7d
              value_type: FLOAT
              units: s
              description: 'Shows the average length of time, in ms, per passive database write operation. Should be less than the read latency for the same instance, as measured by the MSExchange Database ==> Instances({#INF.STORE}/_Total)\I/O Database Reads (Recovery) Average Latency counter.'
              preprocessing:
                -
                  type: MULTIPLIER
                  parameters:
                    - '0.001'
              tags:
                -
                  tag: Application
                  value: 'Database {#INSTANCE}'
            -
              name: 'Information Store [{#INSTANCE}]: Active mailboxes count'
              type: ZABBIX_ACTIVE
              key: 'perf_counter_en["\MSExchangeIS Store({#INSTANCE})\Active mailboxes"]'
              delay: '{$MS.EXCHANGE.PERF.INTERVAL}'
              history: 7d
              value_type: FLOAT
              description: 'Number of active mailboxes in this database.'
              tags:
                -
                  tag: Application
                  value: 'Database {#INSTANCE}'
            -
              name: 'Information Store [{#INSTANCE}]: Database state'
              type: ZABBIX_ACTIVE
              key: 'perf_counter_en["\MSExchangeIS Store({#INSTANCE})\Database State"]'
              delay: '{$MS.EXCHANGE.PERF.INTERVAL}'
              history: 7d
              value_type: FLOAT
              description: |
                Database state. Possible values:
                0: Database without any copy and dismounted.
                1: Database is a primary database and mounted.
                2: Database is a passive copy and the state is healthy.
              valuemap:
                name: 'Exchange database state'
              preprocessing:
                -
                  type: DISCARD_UNCHANGED_HEARTBEAT
                  parameters:
                    - 3m
              tags:
                -
                  tag: Application
                  value: 'Database {#INSTANCE}'
            -
              name: 'Information Store [{#INSTANCE}]: RPC requests latency'
              type: ZABBIX_ACTIVE
              key: 'perf_counter_en["\MSExchangeIS Store({#INSTANCE})\RPC Average Latency", {$MS.EXCHANGE.PERF.INTERVAL}]'
              delay: '{$MS.EXCHANGE.PERF.INTERVAL}'
              history: 7d
              value_type: FLOAT
              units: s
              description: 'RPC Latency average is the average latency of RPC requests per database. Average is calculated over all RPCs since exrpc32 was loaded. Should be less than 50ms at all times, with spikes less than 100ms.'
              preprocessing:
                -
                  type: MULTIPLIER
                  parameters:
                    - '0.001'
              tags:
                -
                  tag: Application
                  value: 'Database {#INSTANCE}'
              trigger_prototypes:
                -
                  expression: 'min(/Microsoft Exchange Server 2016 by Zabbix agent active/perf_counter_en["\MSExchangeIS Store({#INSTANCE})\RPC Average Latency", {$MS.EXCHANGE.PERF.INTERVAL}],{$MS.EXCHANGE.RPC.TIME})>{$MS.EXCHANGE.RPC.WARN}'
                  name: 'Information Store [{#INSTANCE}]: RPC Requests latency is too high (>{$MS.EXCHANGE.RPC.WARN}s for {$MS.EXCHANGE.RPC.TIME})'
                  priority: WARNING
                  description: 'Should be less than 50ms at all times, with spikes less than 100ms.'
            -
              name: 'Information Store [{#INSTANCE}]: RPC requests per second'
              type: ZABBIX_ACTIVE
              key: 'perf_counter_en["\MSExchangeIS Store({#INSTANCE})\RPC Operations/sec", {$MS.EXCHANGE.PERF.INTERVAL}]'
              delay: '{$MS.EXCHANGE.PERF.INTERVAL}'
              history: 7d
              value_type: FLOAT
              description: 'Shows the number of RPC operations per second for each database instance.'
              tags:
                -
                  tag: Application
                  value: 'Database {#INSTANCE}'
            -
              name: 'Information Store [{#INSTANCE}]: RPC requests total'
              type: ZABBIX_ACTIVE
              key: 'perf_counter_en["\MSExchangeIS Store({#INSTANCE})\RPC requests", {$MS.EXCHANGE.PERF.INTERVAL}]'
              delay: '{$MS.EXCHANGE.PERF.INTERVAL}'
              history: 7d
              value_type: FLOAT
              description: 'Indicates the overall RPC requests currently executing within the information store process. Should be below 70 at all times.'
              tags:
                -
                  tag: Application
                  value: 'Database {#INSTANCE}'
              trigger_prototypes:
                -
                  expression: 'min(/Microsoft Exchange Server 2016 by Zabbix agent active/perf_counter_en["\MSExchangeIS Store({#INSTANCE})\RPC requests", {$MS.EXCHANGE.PERF.INTERVAL}],{$MS.EXCHANGE.RPC.COUNT.TIME})>{$MS.EXCHANGE.RPC.COUNT.WARN}'
                  name: 'Information Store [{#INSTANCE}]: RPC Requests total count is too high (>{$MS.EXCHANGE.RPC.COUNT.WARN} for {$MS.EXCHANGE.RPC.COUNT.TIME})'
                  priority: WARNING
                  description: 'Should be below 70 at all times.'
          trigger_prototypes:
            -
              expression: 'avg(/Microsoft Exchange Server 2016 by Zabbix agent active/perf_counter_en["\MSExchange Database ==> Instances({#INF.STORE}/_Total)\I/O Database Writes (Recovery) Average Latency", {$MS.EXCHANGE.PERF.INTERVAL}],{$MS.EXCHANGE.DB.PASSIVE.WRITE.TIME})>avg(/Microsoft Exchange Server 2016 by Zabbix agent active/perf_counter_en["\MSExchange Database ==> Instances({#INF.STORE}/_Total)\I/O Database Reads (Recovery) Average Latency", {$MS.EXCHANGE.PERF.INTERVAL}],{$MS.EXCHANGE.DB.PASSIVE.WRITE.TIME})'
              name: 'Database Counters [{#INSTANCE}]: Average write time latency is higher than read time latency for {$MS.EXCHANGE.DB.PASSIVE.WRITE.TIME}'
              priority: WARNING
              description: 'Should be less than the read latency for the same instance, as measured by the MSExchange Database ==> Instances({#INF.STORE}/_Total)\I/O Database Reads (Recovery) Average Latency counter.'
          graph_prototypes:
            -
              name: 'Database Counters [{#INSTANCE}]: Read and write stats'
              graph_items:
                -
                  color: 1A7C11
                  yaxisside: RIGHT
                  item:
                    host: 'Microsoft Exchange Server 2016 by Zabbix agent active'
                    key: 'perf_counter_en["\MSExchange Database ==> Instances({#INF.STORE}/_Total)\I/O Database Reads (Attached)/sec", {$MS.EXCHANGE.PERF.INTERVAL}]'
                -
                  sortorder: '1'
                  color: 2774A4
                  yaxisside: RIGHT
                  item:
                    host: 'Microsoft Exchange Server 2016 by Zabbix agent active'
                    key: 'perf_counter_en["\MSExchange Database ==> Instances({#INF.STORE}/_Total)\I/O Database Writes (Attached)/sec", {$MS.EXCHANGE.PERF.INTERVAL}]'
                -
                  sortorder: '2'
                  color: F63100
                  item:
                    host: 'Microsoft Exchange Server 2016 by Zabbix agent active'
                    key: 'perf_counter_en["\MSExchange Database ==> Instances({#INF.STORE}/_Total)\I/O Database Reads (Attached) Average Latency", {$MS.EXCHANGE.PERF.INTERVAL}]'
                -
                  sortorder: '3'
                  color: A54F10
                  item:
                    host: 'Microsoft Exchange Server 2016 by Zabbix agent active'
                    key: 'perf_counter_en["\MSExchange Database ==> Instances({#INF.STORE}/_Total)\I/O Database Reads (Recovery) Average Latency", {$MS.EXCHANGE.PERF.INTERVAL}]'
                -
                  sortorder: '4'
                  color: FC6EA3
                  item:
                    host: 'Microsoft Exchange Server 2016 by Zabbix agent active'
                    key: 'perf_counter_en["\MSExchange Database ==> Instances({#INF.STORE}/_Total)\I/O Database Writes (Attached) Average Latency", {$MS.EXCHANGE.PERF.INTERVAL}]'
                -
                  sortorder: '5'
                  color: 6C59DC
                  item:
                    host: 'Microsoft Exchange Server 2016 by Zabbix agent active'
                    key: 'perf_counter_en["\MSExchange Database ==> Instances({#INF.STORE}/_Total)\I/O Database Writes (Recovery) Average Latency", {$MS.EXCHANGE.PERF.INTERVAL}]'
          preprocessing:
            -
              type: JAVASCRIPT
              parameters:
                - |
                  var data = JSON.parse(value);
                  
                  data.forEach(function(instance) {
                      if (instance["{#INSTANCE}"] === '_total') {
                          instance["{#INF.STORE}"] = 'Information Store';
                      }
                      else {
                          instance["{#INF.STORE}"] = 'Information Store - ' + instance["{#INSTANCE}"];
                      }
                  })
                  
                  return JSON.stringify(data);
        -
          name: 'LDAP discovery'
          type: ZABBIX_ACTIVE
          key: 'perf_instance_en.discovery["MSExchange ADAccess Domain Controllers"]'
          delay: 1h
          description: 'Discovery of domain controller.'
          item_prototypes:
            -
              name: 'Domain Controller [{#INSTANCE}]: Read time'
              type: ZABBIX_ACTIVE
              key: 'perf_counter_en["\MSExchange ADAccess Domain Controllers({#INSTANCE})\LDAP Read Time", {$MS.EXCHANGE.PERF.INTERVAL}]'
              delay: '{$MS.EXCHANGE.PERF.INTERVAL}'
              history: 7d
              value_type: FLOAT
              units: s
              description: 'Time that it takes to send an LDAP read request to the domain controller in question and get a response. Should ideally be below 50 ms; spikes below 100 ms are acceptable.'
              preprocessing:
                -
                  type: MULTIPLIER
                  parameters:
                    - '0.001'
              tags:
                -
                  tag: Application
                  value: 'MS Exchange'
              trigger_prototypes:
                -
                  expression: 'min(/Microsoft Exchange Server 2016 by Zabbix agent active/perf_counter_en["\MSExchange ADAccess Domain Controllers({#INSTANCE})\LDAP Read Time", {$MS.EXCHANGE.PERF.INTERVAL}],{$MS.EXCHANGE.LDAP.TIME})>{$MS.EXCHANGE.LDAP.WARN}'
                  name: 'Domain Controller [{#INSTANCE}]: LDAP read time is too high (>{$MS.EXCHANGE.LDAP.WARN}s for {$MS.EXCHANGE.LDAP.TIME})'
                  priority: AVERAGE
                  description: 'Should be less than 50ms at all times, with spikes less than 100ms.'
            -
              name: 'Domain Controller [{#INSTANCE}]: Search time'
              type: ZABBIX_ACTIVE
              key: 'perf_counter_en["\MSExchange ADAccess Domain Controllers({#INSTANCE})\LDAP Search Time", {$MS.EXCHANGE.PERF.INTERVAL}]'
              delay: '{$MS.EXCHANGE.PERF.INTERVAL}'
              history: 7d
              value_type: FLOAT
              units: s
              description: 'Time that it takes to send an LDAP search request and get a response. Should ideally be below 50 ms; spikes below 100 ms are acceptable.'
              preprocessing:
                -
                  type: MULTIPLIER
                  parameters:
                    - '0.001'
              tags:
                -
                  tag: Application
                  value: 'MS Exchange'
              trigger_prototypes:
                -
                  expression: 'min(/Microsoft Exchange Server 2016 by Zabbix agent active/perf_counter_en["\MSExchange ADAccess Domain Controllers({#INSTANCE})\LDAP Search Time", {$MS.EXCHANGE.PERF.INTERVAL}],{$MS.EXCHANGE.LDAP.TIME})>{$MS.EXCHANGE.LDAP.WARN}'
                  name: 'Domain Controller [{#INSTANCE}]: LDAP search time is too high (>{$MS.EXCHANGE.LDAP.WARN}s for {$MS.EXCHANGE.LDAP.TIME})'
                  priority: AVERAGE
                  description: 'Should be less than 50ms at all times, with spikes less than 100ms.'
          graph_prototypes:
            -
              name: 'Domain Controller [{#INSTANCE}]: Timings'
              graph_items:
                -
                  color: 1A7C11
                  item:
                    host: 'Microsoft Exchange Server 2016 by Zabbix agent active'
                    key: 'perf_counter_en["\MSExchange ADAccess Domain Controllers({#INSTANCE})\LDAP Read Time", {$MS.EXCHANGE.PERF.INTERVAL}]'
                -
                  sortorder: '1'
                  color: 2774A4
                  item:
                    host: 'Microsoft Exchange Server 2016 by Zabbix agent active'
                    key: 'perf_counter_en["\MSExchange ADAccess Domain Controllers({#INSTANCE})\LDAP Search Time", {$MS.EXCHANGE.PERF.INTERVAL}]'
        -
          name: 'Web services discovery'
          type: ZABBIX_ACTIVE
          key: 'perf_instance_en.discovery["Web Service"]'
          delay: 1h
          description: 'Discovery of Exchange web services.'
          item_prototypes:
            -
              name: 'Web Service [{#INSTANCE}]: Current connections'
              type: ZABBIX_ACTIVE
              key: 'perf_counter_en["\Web Service({#INSTANCE})\Current Connections", {$MS.EXCHANGE.PERF.INTERVAL}]'
              delay: '{$MS.EXCHANGE.PERF.INTERVAL}'
              history: 7d
              value_type: FLOAT
              description: 'Shows the current number of connections established to the each Web Service.'
              tags:
                -
                  tag: Application
                  value: 'MS Exchange'
      macros:
        -
          macro: '{$MS.EXCHANGE.DB.ACTIVE.READ.TIME}'
          value: 5m
          description: 'The time during which the active database read operations latency may exceed the threshold.'
        -
          macro: '{$MS.EXCHANGE.DB.ACTIVE.READ.WARN}'
          value: '0.02'
          description: 'Threshold for active database read operations latency trigger.'
        -
          macro: '{$MS.EXCHANGE.DB.ACTIVE.WRITE.TIME}'
          value: 10m
          description: 'The time during which the active database write operations latency may exceed the threshold.'
        -
          macro: '{$MS.EXCHANGE.DB.ACTIVE.WRITE.WARN}'
          value: '0.05'
          description: 'Threshold for active database write operations latency trigger.'
        -
          macro: '{$MS.EXCHANGE.DB.FAULTS.TIME}'
          value: 5m
          description: 'The time during which the database page faults may exceed the threshold.'
        -
          macro: '{$MS.EXCHANGE.DB.FAULTS.WARN}'
          value: '0'
          description: 'Threshold for database page faults trigger.'
        -
          macro: '{$MS.EXCHANGE.DB.PASSIVE.READ.TIME}'
          value: 5m
          description: 'The time during which the passive database read operations latency may exceed the threshold.'
        -
          macro: '{$MS.EXCHANGE.DB.PASSIVE.READ.WARN}'
          value: '0.2'
          description: 'Threshold for passive database read operations latency trigger.'
        -
          macro: '{$MS.EXCHANGE.DB.PASSIVE.WRITE.TIME}'
          value: 10m
          description: 'The time during which the passive database write operations latency may exceed the threshold.'
        -
          macro: '{$MS.EXCHANGE.LDAP.TIME}'
          value: 5m
          description: 'The time during which the LDAP metrics may exceed the threshold.'
        -
          macro: '{$MS.EXCHANGE.LDAP.WARN}'
          value: '0.05'
          description: 'Threshold for LDAP triggers.'
        -
          macro: '{$MS.EXCHANGE.LOG.STALLS.TIME}'
          value: 10m
          description: 'The time during which the log records stalled may exceed the threshold.'
        -
          macro: '{$MS.EXCHANGE.LOG.STALLS.WARN}'
          value: '100'
          description: 'Threshold for log records stalled trigger.'
        -
          macro: '{$MS.EXCHANGE.PERF.INTERVAL}'
          value: '60'
          description: 'Update interval for perf_counter_en items.'
        -
          macro: '{$MS.EXCHANGE.RPC.COUNT.TIME}'
          value: 5m
          description: 'The time during which the RPC total requests may exceed the threshold.'
        -
          macro: '{$MS.EXCHANGE.RPC.COUNT.WARN}'
          value: '70'
          description: 'Threshold for LDAP triggers.'
        -
          macro: '{$MS.EXCHANGE.RPC.TIME}'
          value: 10m
          description: 'The time during which the RPC requests latency may exceed the threshold.'
        -
          macro: '{$MS.EXCHANGE.RPC.WARN}'
          value: '0.05'
          description: 'Threshold for RPC requests latency trigger.'
      valuemaps:
        -
          name: 'Exchange database copy role'
          mappings:
            -
              value: '0'
              newvalue: Passive
            -
              value: '1'
              newvalue: Active
        -
          name: 'Exchange database state'
          mappings:
            -
              value: '0'
              newvalue: Dismounted
            -
              value: '1'
              newvalue: Mounted
            -
              value: '2'
              newvalue: Healthy
  graphs:
    -
      name: 'MS Exchange [Client Access Server]: Request rate'
      graph_items:
        -
          color: 1A7C11
          item:
            host: 'Microsoft Exchange Server 2016 by Zabbix agent active'
            key: 'perf_counter_en["\MSExchange ActiveSync\Requests/sec", {$MS.EXCHANGE.PERF.INTERVAL}]'
        -
          sortorder: '1'
          color: 2774A4
          item:
            host: 'Microsoft Exchange Server 2016 by Zabbix agent active'
            key: 'perf_counter_en["\MSExchange Availability Service\Availability Requests (sec)", {$MS.EXCHANGE.PERF.INTERVAL}]'
        -
          sortorder: '2'
          color: F63100
          item:
            host: 'Microsoft Exchange Server 2016 by Zabbix agent active'
            key: 'perf_counter_en["\MSExchange OWA\Requests/sec", {$MS.EXCHANGE.PERF.INTERVAL}]'
        -
          sortorder: '3'
          color: A54F10
          item:
            host: 'Microsoft Exchange Server 2016 by Zabbix agent active'
            key: 'perf_counter_en["\MSExchangeWS\Requests/sec", {$MS.EXCHANGE.PERF.INTERVAL}]'