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

template_app_nginx_plus_http.yaml « nginx_plus_http « app « templates - github.com/zabbix/zabbix.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: d1b05d8b3307736e77364ac5e49ed67b894b15d4 (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
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
1568
1569
1570
1571
1572
1573
1574
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584
1585
1586
1587
1588
1589
1590
1591
1592
1593
1594
1595
1596
1597
1598
1599
1600
1601
1602
1603
1604
1605
1606
1607
1608
1609
1610
1611
1612
1613
1614
1615
1616
1617
1618
1619
1620
1621
1622
1623
1624
1625
1626
1627
1628
1629
1630
1631
1632
1633
1634
1635
1636
1637
1638
1639
1640
1641
1642
1643
1644
1645
1646
1647
1648
1649
1650
1651
1652
1653
1654
1655
1656
1657
1658
1659
1660
1661
1662
1663
1664
1665
1666
1667
1668
1669
1670
1671
1672
1673
1674
1675
1676
1677
1678
1679
1680
1681
1682
1683
1684
1685
1686
1687
1688
1689
1690
1691
1692
1693
1694
1695
1696
1697
1698
1699
1700
1701
1702
1703
1704
1705
1706
1707
1708
1709
1710
1711
1712
1713
1714
1715
1716
1717
1718
1719
1720
1721
1722
1723
1724
1725
1726
1727
1728
1729
1730
1731
1732
1733
1734
1735
1736
1737
1738
1739
1740
1741
1742
1743
1744
1745
1746
1747
1748
1749
1750
1751
1752
1753
1754
1755
1756
1757
1758
1759
1760
1761
1762
1763
1764
1765
1766
1767
1768
1769
1770
1771
1772
1773
1774
1775
1776
1777
1778
1779
1780
1781
1782
1783
1784
1785
1786
1787
1788
1789
1790
1791
1792
1793
1794
1795
1796
1797
1798
1799
1800
1801
1802
1803
1804
1805
1806
1807
1808
1809
1810
1811
1812
1813
1814
1815
1816
1817
1818
1819
1820
1821
1822
1823
1824
1825
1826
1827
1828
1829
1830
1831
1832
1833
1834
1835
1836
1837
1838
1839
1840
1841
1842
1843
1844
1845
1846
1847
1848
1849
1850
1851
1852
1853
1854
1855
1856
1857
1858
1859
1860
1861
1862
1863
1864
1865
1866
1867
1868
1869
1870
1871
1872
1873
1874
1875
1876
1877
1878
1879
1880
1881
1882
1883
1884
1885
1886
1887
1888
1889
1890
1891
1892
1893
1894
1895
1896
1897
1898
1899
1900
1901
1902
1903
1904
1905
1906
1907
1908
1909
1910
1911
1912
1913
1914
1915
1916
1917
1918
1919
1920
1921
1922
1923
1924
1925
1926
1927
1928
1929
1930
1931
1932
1933
1934
1935
1936
1937
1938
1939
1940
1941
1942
1943
1944
1945
1946
1947
1948
1949
1950
1951
1952
1953
1954
1955
1956
1957
1958
1959
1960
1961
1962
1963
1964
1965
1966
1967
1968
1969
1970
1971
1972
1973
1974
1975
1976
1977
1978
1979
1980
1981
1982
1983
1984
1985
1986
1987
1988
1989
1990
1991
1992
1993
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
2027
2028
2029
2030
2031
2032
2033
2034
2035
2036
2037
2038
2039
2040
2041
2042
2043
2044
2045
2046
2047
2048
2049
2050
2051
2052
2053
2054
2055
2056
2057
2058
2059
2060
2061
2062
2063
2064
2065
2066
2067
2068
2069
2070
2071
2072
2073
2074
2075
2076
2077
2078
2079
2080
2081
2082
2083
2084
2085
2086
2087
2088
2089
2090
2091
2092
2093
2094
2095
2096
2097
2098
2099
2100
2101
2102
2103
2104
2105
2106
2107
2108
2109
2110
2111
2112
2113
2114
2115
2116
2117
2118
2119
2120
2121
2122
2123
2124
2125
2126
2127
2128
2129
2130
2131
2132
2133
2134
2135
2136
2137
2138
2139
2140
2141
2142
2143
2144
2145
2146
2147
2148
2149
2150
2151
2152
2153
2154
2155
2156
2157
2158
2159
2160
2161
2162
2163
2164
2165
2166
2167
2168
2169
2170
2171
2172
2173
2174
2175
2176
2177
2178
2179
2180
2181
2182
2183
2184
2185
2186
2187
2188
2189
2190
2191
2192
2193
2194
2195
2196
2197
2198
2199
2200
2201
2202
2203
2204
2205
2206
2207
2208
2209
2210
2211
2212
2213
2214
2215
2216
2217
2218
2219
2220
2221
2222
2223
2224
2225
2226
2227
2228
2229
2230
2231
2232
2233
2234
2235
2236
2237
2238
2239
2240
2241
2242
2243
2244
2245
2246
2247
2248
2249
2250
2251
2252
2253
2254
2255
2256
2257
2258
2259
2260
2261
2262
2263
2264
2265
2266
2267
2268
2269
2270
2271
2272
2273
2274
2275
2276
2277
2278
2279
2280
2281
2282
2283
2284
2285
2286
2287
2288
2289
2290
2291
2292
2293
2294
2295
2296
2297
2298
2299
2300
2301
2302
2303
2304
2305
2306
2307
2308
2309
2310
2311
2312
2313
2314
2315
2316
2317
2318
2319
2320
2321
2322
2323
2324
2325
2326
2327
2328
2329
2330
2331
2332
2333
2334
2335
2336
2337
2338
2339
2340
2341
2342
2343
2344
2345
2346
2347
2348
2349
2350
2351
2352
2353
2354
2355
2356
2357
2358
2359
2360
2361
2362
2363
2364
2365
2366
2367
2368
2369
2370
2371
2372
2373
2374
2375
2376
2377
2378
2379
2380
2381
2382
2383
2384
2385
2386
2387
2388
2389
2390
2391
2392
2393
2394
2395
2396
2397
2398
2399
2400
2401
2402
2403
2404
2405
2406
2407
2408
2409
2410
2411
2412
2413
2414
2415
2416
2417
2418
2419
2420
2421
2422
2423
2424
2425
2426
2427
2428
2429
2430
2431
2432
2433
2434
2435
2436
2437
2438
2439
2440
2441
2442
2443
2444
2445
2446
2447
2448
2449
2450
2451
2452
2453
2454
2455
2456
2457
2458
2459
2460
2461
2462
2463
2464
2465
2466
2467
2468
2469
2470
2471
2472
2473
2474
2475
2476
2477
2478
2479
2480
2481
2482
2483
2484
2485
2486
2487
2488
2489
2490
2491
2492
2493
2494
2495
2496
2497
2498
2499
2500
2501
2502
2503
2504
2505
2506
2507
2508
2509
2510
2511
2512
2513
2514
2515
2516
2517
2518
2519
2520
2521
2522
2523
2524
2525
2526
2527
2528
2529
2530
2531
2532
2533
2534
2535
2536
2537
2538
2539
2540
2541
2542
2543
2544
2545
2546
2547
2548
2549
2550
2551
2552
2553
2554
2555
2556
2557
2558
2559
2560
2561
2562
2563
2564
2565
2566
2567
2568
2569
2570
2571
2572
2573
2574
2575
2576
2577
2578
2579
2580
2581
2582
2583
2584
2585
2586
2587
2588
2589
2590
2591
2592
2593
2594
2595
2596
2597
2598
2599
2600
2601
2602
2603
2604
2605
2606
2607
2608
2609
2610
2611
2612
2613
2614
2615
2616
2617
2618
2619
2620
2621
2622
2623
2624
2625
2626
2627
2628
2629
2630
2631
2632
2633
2634
2635
2636
2637
2638
2639
2640
2641
2642
2643
2644
2645
2646
2647
2648
2649
2650
2651
2652
2653
2654
2655
2656
2657
2658
2659
2660
2661
2662
2663
2664
2665
2666
2667
2668
2669
2670
2671
2672
2673
2674
2675
2676
2677
2678
2679
2680
2681
2682
2683
2684
2685
2686
2687
2688
2689
2690
2691
2692
2693
2694
2695
2696
2697
2698
2699
2700
2701
2702
2703
2704
2705
2706
2707
2708
2709
2710
2711
2712
2713
2714
2715
2716
2717
2718
2719
2720
2721
2722
2723
2724
2725
2726
2727
2728
2729
2730
2731
2732
2733
2734
2735
2736
2737
2738
2739
2740
2741
2742
2743
2744
2745
2746
2747
2748
2749
2750
2751
2752
2753
2754
2755
2756
2757
2758
2759
2760
2761
2762
2763
2764
2765
2766
2767
2768
2769
2770
2771
2772
2773
2774
2775
2776
2777
2778
2779
2780
2781
2782
2783
2784
2785
2786
2787
2788
2789
2790
2791
2792
2793
2794
2795
2796
2797
2798
2799
2800
2801
2802
2803
2804
2805
2806
2807
2808
2809
2810
2811
2812
2813
2814
2815
2816
2817
2818
2819
2820
2821
2822
2823
2824
2825
2826
2827
2828
2829
2830
2831
2832
2833
2834
2835
2836
2837
2838
2839
2840
2841
2842
2843
2844
2845
2846
2847
2848
2849
2850
2851
2852
2853
2854
2855
2856
2857
2858
2859
2860
2861
2862
2863
2864
2865
2866
2867
2868
2869
2870
2871
2872
2873
2874
2875
2876
2877
2878
2879
2880
2881
2882
2883
2884
2885
2886
2887
2888
2889
2890
2891
2892
2893
2894
2895
2896
2897
2898
2899
2900
2901
2902
2903
2904
2905
2906
2907
2908
2909
2910
2911
2912
2913
2914
2915
2916
2917
2918
2919
2920
2921
2922
2923
2924
2925
2926
2927
2928
2929
2930
2931
2932
2933
2934
2935
2936
2937
2938
2939
2940
2941
2942
2943
2944
2945
2946
2947
2948
2949
2950
2951
2952
2953
2954
2955
2956
2957
2958
2959
2960
2961
2962
2963
2964
2965
2966
2967
2968
2969
2970
2971
2972
2973
2974
2975
2976
2977
2978
2979
2980
2981
2982
2983
2984
2985
2986
2987
2988
2989
2990
2991
2992
2993
2994
2995
2996
2997
2998
2999
3000
3001
3002
3003
3004
3005
3006
3007
3008
3009
3010
3011
3012
3013
3014
3015
3016
3017
3018
3019
3020
3021
3022
3023
3024
3025
3026
3027
3028
3029
3030
3031
3032
3033
3034
3035
3036
3037
3038
3039
3040
3041
3042
3043
3044
3045
3046
3047
3048
3049
3050
3051
3052
3053
3054
3055
3056
3057
3058
3059
3060
3061
3062
3063
3064
3065
3066
3067
3068
3069
3070
3071
3072
3073
3074
3075
3076
3077
3078
3079
3080
3081
3082
3083
3084
3085
3086
3087
3088
3089
3090
3091
3092
3093
3094
3095
3096
3097
3098
3099
3100
3101
3102
3103
3104
3105
3106
3107
3108
3109
3110
3111
3112
3113
3114
3115
3116
3117
3118
3119
3120
3121
3122
3123
3124
3125
3126
3127
3128
3129
3130
3131
3132
3133
3134
3135
3136
3137
3138
3139
3140
3141
3142
3143
3144
3145
3146
3147
3148
3149
3150
3151
3152
3153
3154
3155
3156
3157
3158
3159
3160
3161
3162
3163
3164
3165
3166
3167
3168
3169
3170
3171
3172
3173
3174
3175
3176
3177
3178
3179
3180
3181
3182
3183
3184
3185
3186
3187
3188
3189
3190
3191
3192
3193
3194
3195
3196
3197
3198
3199
3200
3201
3202
3203
3204
3205
3206
3207
3208
3209
3210
3211
3212
3213
3214
3215
3216
3217
3218
3219
3220
3221
3222
3223
3224
3225
3226
3227
3228
3229
3230
3231
3232
3233
3234
3235
3236
3237
3238
3239
3240
3241
3242
3243
3244
3245
3246
3247
3248
3249
3250
3251
3252
3253
3254
3255
3256
3257
3258
3259
3260
3261
3262
3263
3264
3265
3266
3267
3268
3269
3270
3271
3272
3273
3274
3275
3276
3277
3278
3279
3280
3281
3282
3283
3284
3285
3286
3287
3288
3289
3290
3291
3292
3293
3294
3295
3296
3297
3298
3299
3300
3301
3302
3303
3304
3305
3306
3307
3308
3309
3310
3311
3312
3313
3314
3315
3316
3317
3318
3319
3320
3321
3322
3323
3324
3325
3326
3327
3328
3329
3330
3331
3332
3333
3334
3335
3336
3337
3338
3339
3340
3341
3342
3343
3344
3345
3346
3347
3348
3349
3350
3351
3352
3353
3354
3355
3356
3357
3358
3359
3360
3361
3362
3363
3364
3365
3366
3367
3368
3369
3370
3371
3372
3373
3374
3375
3376
3377
3378
3379
3380
3381
3382
3383
3384
3385
3386
3387
3388
3389
3390
3391
3392
3393
3394
3395
3396
3397
zabbix_export:
  version: '6.2'
  date: '2022-06-07T19:36:33Z'
  template_groups:
    -
      uuid: a571c0d144b14fd4a87a9d9b2aa9fcd6
      name: Templates/Applications
  templates:
    -
      uuid: 8cad0f2564694416b60bd8a414948641
      template: 'Nginx Plus by HTTP'
      name: 'Nginx Plus by HTTP'
      description: |
        Get Nginx Plus metrics by HTTP agent.
        Metrics are collected by requests to Nginx Plus API.
        Don't forget to change macros {$NGINX.API.ENDPOINT}.
        
        You can discuss this template or leave feedback on our forum https://www.zabbix.com/forum/zabbix-suggestions-and-feedback
        
        Template tooling version used: 0.41
      groups:
        -
          name: Templates/Applications
      items:
        -
          uuid: 26c121f9c50a4e90b4502e2bd7f42992
          name: 'Nginx: Get connections'
          type: HTTP_AGENT
          key: nginx.connections
          history: '0'
          trends: '0'
          value_type: TEXT
          description: 'Returns statistics of client connections.'
          url: '{$NGINX.API.ENDPOINT}/6/connections/'
          status_codes: '200,404'
          tags:
            -
              tag: component
              value: connections
            -
              tag: component
              value: raw
        -
          uuid: 1734b26ca856405e8c08f222944cadc3
          name: 'Nginx: Connections accepted, rate'
          type: DEPENDENT
          key: nginx.connections.accepted.rate
          delay: '0'
          history: 7d
          description: 'The total number of accepted client connections per second.'
          preprocessing:
            -
              type: JSONPATH
              parameters:
                - $.accepted
            -
              type: CHANGE_PER_SECOND
              parameters:
                - ''
          master_item:
            key: nginx.connections
          tags:
            -
              tag: component
              value: connections
        -
          uuid: a0fd403c29e4452a9be0aecb650ab063
          name: 'Nginx: Connections active'
          type: DEPENDENT
          key: nginx.connections.active
          delay: '0'
          history: 7d
          description: 'The current number of active client connections.'
          preprocessing:
            -
              type: JSONPATH
              parameters:
                - $.active
          master_item:
            key: nginx.connections
          tags:
            -
              tag: component
              value: connections
        -
          uuid: 06395827019542b7bd381d42beb76b10
          name: 'Nginx: Connections dropped'
          type: DEPENDENT
          key: nginx.connections.dropped
          delay: '0'
          history: 7d
          description: 'The total number of dropped client connections.'
          preprocessing:
            -
              type: JSONPATH
              parameters:
                - $.dropped
          master_item:
            key: nginx.connections
          tags:
            -
              tag: component
              value: connections
          triggers:
            -
              uuid: 91c9dab8147a4d0086019119e4e55b5e
              expression: 'min(/Nginx Plus by HTTP/nginx.connections.dropped,5m) > {$NGINX.DROP_RATE.MAX.WARN}'
              name: 'Nginx: High connections drop rate'
              event_name: 'Nginx: High connections drop rate (more than {$NGINX.DROP_RATE.MAX.WARN} for 5m)'
              priority: WARNING
              description: 'The dropping rate connections is greater than {$NGINX.DROP_RATE.MAX.WARN} for the last 5 minutes.'
              tags:
                -
                  tag: scope
                  value: performance
        -
          uuid: 0c0e5a2ba5f643e09d07e34d724aff9a
          name: 'Nginx: Connections idle'
          type: DEPENDENT
          key: nginx.connections.idle
          delay: '0'
          history: 7d
          description: 'The current number of idle client connections.'
          preprocessing:
            -
              type: JSONPATH
              parameters:
                - $.idle
          master_item:
            key: nginx.connections
          tags:
            -
              tag: component
              value: connections
        -
          uuid: 51c50d69acdb451395736902733673fe
          name: 'Nginx: Get HTTP location zones'
          type: HTTP_AGENT
          key: nginx.http.location_zones
          history: '0'
          trends: '0'
          value_type: TEXT
          description: 'Returns status information for each HTTP location zone.'
          url: '{$NGINX.API.ENDPOINT}/6/http/location_zones/'
          status_codes: '200,404'
          tags:
            -
              tag: component
              value: location_zones
            -
              tag: component
              value: raw
        -
          uuid: 5b337c675bc14d9ab3ac6d2cf5b82dce
          name: 'Nginx: Get HTTP zones'
          type: HTTP_AGENT
          key: nginx.http.server_zones
          history: '0'
          trends: '0'
          value_type: TEXT
          description: 'Returns status information for each HTTP server zone.'
          url: '{$NGINX.API.ENDPOINT}/6/http/server_zones/'
          status_codes: '200,404'
          tags:
            -
              tag: component
              value: raw
            -
              tag: component
              value: server_zones
        -
          uuid: 4ec5e9b1d17141f49db5d9bf29134a49
          name: 'Nginx: Get HTTP upstreams'
          type: HTTP_AGENT
          key: nginx.http.upstreams
          history: '0'
          trends: '0'
          value_type: TEXT
          description: 'Returns status of each HTTP upstream server group and its servers.'
          url: '{$NGINX.API.ENDPOINT}/6/http/upstreams/'
          status_codes: '200,404'
          tags:
            -
              tag: component
              value: raw
            -
              tag: component
              value: upstreams
        -
          uuid: d6c37400f8e64d89a698896afa6589de
          name: 'Nginx: Get info'
          type: HTTP_AGENT
          key: nginx.info
          history: '0'
          trends: '0'
          value_type: TEXT
          description: 'Return status of nginx running instance.'
          url: '{$NGINX.API.ENDPOINT}/6/nginx/'
          status_codes: '200,404'
          tags:
            -
              tag: component
              value: info
            -
              tag: component
              value: raw
        -
          uuid: 178f9f0c2ae74a6bbf1ae6965021ccde
          name: 'Nginx: Address'
          type: DEPENDENT
          key: nginx.info.address
          delay: '0'
          history: 7d
          trends: '0'
          value_type: CHAR
          description: 'The address of the server that accepted status request.'
          preprocessing:
            -
              type: JSONPATH
              parameters:
                - $.address
            -
              type: DISCARD_UNCHANGED_HEARTBEAT
              parameters:
                - 3h
          master_item:
            key: nginx.info
          tags:
            -
              tag: component
              value: info
        -
          uuid: 14c417b374ef4674bb374979135f8617
          name: 'Nginx: Get info error'
          type: DEPENDENT
          key: nginx.info.error
          delay: '0'
          history: 7d
          trends: '0'
          value_type: CHAR
          description: 'Nginx error description.'
          preprocessing:
            -
              type: JSONPATH
              parameters:
                - $.error.text
              error_handler: CUSTOM_VALUE
            -
              type: DISCARD_UNCHANGED_HEARTBEAT
              parameters:
                - 1h
          master_item:
            key: nginx.info
          tags:
            -
              tag: component
              value: health
            -
              tag: component
              value: info
          triggers:
            -
              uuid: e444c708371748bd831bba6c8d9a92e0
              expression: 'length(last(/Nginx Plus by HTTP/nginx.info.error))>0'
              name: 'Nginx: Server response error'
              event_name: 'Nginx: Server response error (text: {ITEM.VALUE})'
              priority: HIGH
              tags:
                -
                  tag: scope
                  value: availability
        -
          uuid: 9baff3e318d84cd78c6a8ec6ae294de5
          name: 'Nginx: Generation'
          type: DEPENDENT
          key: nginx.info.generation
          delay: '0'
          history: 7d
          description: 'The total number of configuration reloads.'
          preprocessing:
            -
              type: JSONPATH
              parameters:
                - $.generation
            -
              type: DISCARD_UNCHANGED_HEARTBEAT
              parameters:
                - 30m
          master_item:
            key: nginx.info
          tags:
            -
              tag: component
              value: info
        -
          uuid: 1baceaa7af4d45e487a448670e213c94
          name: 'Nginx: Uptime'
          type: DEPENDENT
          key: nginx.info.uptime
          delay: '0'
          history: 7d
          units: uptime
          description: 'Server uptime.'
          preprocessing:
            -
              type: JSONPATH
              parameters:
                - $.load_timestamp
              error_handler: DISCARD_VALUE
            -
              type: JAVASCRIPT
              parameters:
                - 'return Math.floor((Date.now() - new Date(value)) / 1000);'
          master_item:
            key: nginx.info
          tags:
            -
              tag: component
              value: info
          triggers:
            -
              uuid: 396fb4be618e45578566971d5399d611
              expression: 'nodata(/Nginx Plus by HTTP/nginx.info.uptime,30m)=1'
              name: 'Nginx: Failed to fetch info data'
              event_name: 'Nginx: Failed to fetch info data (or no data for 30m)'
              priority: WARNING
              description: 'Zabbix has not received data for metrics for the last 30 minutes'
              manual_close: 'YES'
              tags:
                -
                  tag: scope
                  value: availability
            -
              uuid: 95622a29bd58444b9f0bd985db99f922
              expression: 'last(/Nginx Plus by HTTP/nginx.info.uptime)<10m'
              name: 'Nginx: has been restarted'
              event_name: 'Nginx: has been restarted (uptime < 10m)'
              priority: INFO
              description: 'Uptime is less than 10 minutes.'
              manual_close: 'YES'
              tags:
                -
                  tag: scope
                  value: notice
        -
          uuid: 89059effd28641e08e2002c807784bcb
          name: 'Nginx: Version'
          type: DEPENDENT
          key: nginx.info.version
          delay: '0'
          history: 7d
          trends: '0'
          value_type: CHAR
          description: 'Version of nginx.'
          preprocessing:
            -
              type: JSONPATH
              parameters:
                - $.version
            -
              type: DISCARD_UNCHANGED_HEARTBEAT
              parameters:
                - 3h
          master_item:
            key: nginx.info
          tags:
            -
              tag: component
              value: info
          triggers:
            -
              uuid: a91ff018fe4f4a1495b08adeb2b0005f
              expression: 'last(/Nginx Plus by HTTP/nginx.info.version,#1)<>last(/Nginx Plus by HTTP/nginx.info.version,#2) and length(last(/Nginx Plus by HTTP/nginx.info.version))>0'
              name: 'Nginx: Version has changed'
              event_name: 'Nginx: Version has changed (new version: {ITEM.VALUE})'
              priority: INFO
              description: 'Nginx version has changed. Ack to close.'
              manual_close: 'YES'
              tags:
                -
                  tag: scope
                  value: notice
        -
          uuid: 65377fc7308340348199c4c63720a7e1
          name: 'Nginx: Get requests'
          type: HTTP_AGENT
          key: nginx.requests
          history: '0'
          trends: '0'
          value_type: TEXT
          description: 'Returns status of client HTTP requests.'
          url: '{$NGINX.API.ENDPOINT}/6/http/requests/'
          status_codes: '200,404'
          tags:
            -
              tag: component
              value: raw
            -
              tag: component
              value: requests
        -
          uuid: 630c4f81f9f44397a156e2d4e5d21af8
          name: 'Nginx: Requests current'
          type: DEPENDENT
          key: nginx.requests.current
          delay: '0'
          history: 7d
          description: 'The current number of client requests.'
          preprocessing:
            -
              type: JSONPATH
              parameters:
                - $.current
          master_item:
            key: nginx.requests
          tags:
            -
              tag: component
              value: requests
        -
          uuid: 8130bfb659a94641b97a1abcdb9a4f66
          name: 'Nginx: Requests total, rate'
          type: DEPENDENT
          key: nginx.requests.total.rate
          delay: '0'
          history: 7d
          description: 'The total number of client requests per second.'
          preprocessing:
            -
              type: JSONPATH
              parameters:
                - $.total
            -
              type: CHANGE_PER_SECOND
              parameters:
                - ''
          master_item:
            key: nginx.requests
          tags:
            -
              tag: component
              value: requests
        -
          uuid: 9ea35f4f2ca24187896b7f44fb410d24
          name: 'Nginx: Get resolvers'
          type: HTTP_AGENT
          key: nginx.resolvers
          history: '0'
          trends: '0'
          value_type: TEXT
          description: 'Returns status information for each resolver zone.'
          url: '{$NGINX.API.ENDPOINT}/6/resolvers/'
          status_codes: '200,404'
          tags:
            -
              tag: component
              value: raw
            -
              tag: component
              value: resolvers
        -
          uuid: e0798bb2d16c418781e19880fd78832c
          name: 'Nginx: Get SSL'
          type: HTTP_AGENT
          key: nginx.ssl
          history: '0'
          trends: '0'
          value_type: TEXT
          description: 'Returns SSL statistics.'
          url: '{$NGINX.API.ENDPOINT}/6/ssl/'
          status_codes: '200,404'
          tags:
            -
              tag: component
              value: raw
            -
              tag: component
              value: ssl
        -
          uuid: 09c7ab8555d046a69a96889185650dfe
          name: 'Nginx: SSL handshakes, rate'
          type: DEPENDENT
          key: nginx.ssl.handshakes.rate
          delay: '0'
          history: 7d
          description: 'The total number of successful SSL handshakes per second.'
          preprocessing:
            -
              type: JSONPATH
              parameters:
                - $.handshakes
            -
              type: CHANGE_PER_SECOND
              parameters:
                - ''
          master_item:
            key: nginx.ssl
          tags:
            -
              tag: component
              value: ssl
        -
          uuid: 77fcc55ced2045e099b37580f7ef6d5b
          name: 'Nginx: SSL handshakes failed, rate'
          type: DEPENDENT
          key: nginx.ssl.handshakes_failed.rate
          delay: '0'
          history: 7d
          description: 'The total number of failed SSL handshakes per second.'
          preprocessing:
            -
              type: JSONPATH
              parameters:
                - $.handshakes_failed
            -
              type: CHANGE_PER_SECOND
              parameters:
                - ''
          master_item:
            key: nginx.ssl
          tags:
            -
              tag: component
              value: ssl
        -
          uuid: 98ec8bec834a42caba8d260d939beb0e
          name: 'Nginx: SSL session reuses, rate'
          type: DEPENDENT
          key: nginx.ssl.session_reuses.rate
          delay: '0'
          history: 7d
          description: 'The total number of session reuses during SSL handshake per second.'
          preprocessing:
            -
              type: JSONPATH
              parameters:
                - $.session_reuses
            -
              type: CHANGE_PER_SECOND
              parameters:
                - ''
          master_item:
            key: nginx.ssl
          tags:
            -
              tag: component
              value: ssl
        -
          uuid: 148a8612964b445ba37e340c9341f49d
          name: 'Nginx: Get Stream server zones'
          type: HTTP_AGENT
          key: nginx.stream.server_zones
          history: '0'
          trends: '0'
          value_type: TEXT
          description: 'Returns status information for each stream server zone.'
          url: '{$NGINX.API.ENDPOINT}/6/stream/server_zones/'
          status_codes: '200,404'
          tags:
            -
              tag: component
              value: raw
            -
              tag: component
              value: server_zones
        -
          uuid: c48ca144a8414b2db1c35d518ca5a24f
          name: 'Nginx: Get Stream upstreams'
          type: HTTP_AGENT
          key: nginx.stream.upstreams
          history: '0'
          trends: '0'
          value_type: TEXT
          description: 'Returns status of each stream upstream server group and its servers.'
          url: '{$NGINX.API.ENDPOINT}/6/stream/upstreams/'
          status_codes: '200,404'
          tags:
            -
              tag: component
              value: raw
            -
              tag: component
              value: upstreams
      discovery_rules:
        -
          uuid: 33fdb45a55544c628c0106ed193ebc0b
          name: 'HTTP location zones discovery'
          type: DEPENDENT
          key: nginx.http.location_zones.discovery
          delay: '0'
          filter:
            evaltype: AND
            conditions:
              -
                macro: '{#NAME}'
                value: '{$NGINX.LLD.FILTER.HTTP.LOCATION.ZONE.MATCHES}'
                formulaid: A
              -
                macro: '{#NAME}'
                value: '{$NGINX.LLD.FILTER.HTTP.LOCATION.ZONE.NOT_MATCHES}'
                operator: NOT_MATCHES_REGEX
                formulaid: B
          item_prototypes:
            -
              uuid: e75bc85680534ec18df16b9e69bc248c
              name: 'Nginx: HTTP location zone [{#NAME}]: Discarded, rate'
              type: DEPENDENT
              key: 'nginx.http.location_zones.discarded.rate[{#NAME}]'
              delay: '0'
              history: 7d
              description: 'The total number of requests completed without sending a response per second.'
              preprocessing:
                -
                  type: JSONPATH
                  parameters:
                    - '$[''{#NAME}''].discarded'
                -
                  type: CHANGE_PER_SECOND
                  parameters:
                    - ''
              master_item:
                key: nginx.http.location_zones
              tags:
                -
                  tag: component
                  value: location_zones
                -
                  tag: zone
                  value: '{#NAME}'
            -
              uuid: 17e01c9171bd493f98b37811dcf49802
              name: 'Nginx: HTTP location zone [{#NAME}]: Received, rate'
              type: DEPENDENT
              key: 'nginx.http.location_zones.received.rate[{#NAME}]'
              delay: '0'
              history: 7d
              description: 'The total number of bytes received from clients per second.'
              preprocessing:
                -
                  type: JSONPATH
                  parameters:
                    - '$[''{#NAME}''].received'
                -
                  type: CHANGE_PER_SECOND
                  parameters:
                    - ''
              master_item:
                key: nginx.http.location_zones
              tags:
                -
                  tag: component
                  value: location_zones
                -
                  tag: zone
                  value: '{#NAME}'
            -
              uuid: c646c18580ef4b8695cbc03ce0d5122d
              name: 'Nginx: HTTP location zone [{#NAME}]: Requests, rate'
              type: DEPENDENT
              key: 'nginx.http.location_zones.requests.rate[{#NAME}]'
              delay: '0'
              history: 7d
              description: 'The total number of client requests received from clients per second.'
              preprocessing:
                -
                  type: JSONPATH
                  parameters:
                    - '$[''{#NAME}''].requests'
                -
                  type: CHANGE_PER_SECOND
                  parameters:
                    - ''
              master_item:
                key: nginx.http.location_zones
              tags:
                -
                  tag: component
                  value: location_zones
                -
                  tag: zone
                  value: '{#NAME}'
            -
              uuid: 82c9f68d10ec47f1a701eee692e3b9ae
              name: 'Nginx: HTTP location zone [{#NAME}]: Responses 1xx, rate'
              type: DEPENDENT
              key: 'nginx.http.location_zones.responses.1xx.rate[{#NAME}]'
              delay: '0'
              history: 7d
              description: 'The number of responses with “1xx” status codes per second.'
              preprocessing:
                -
                  type: JSONPATH
                  parameters:
                    - '$[''{#NAME}''].responses.1xx'
                -
                  type: CHANGE_PER_SECOND
                  parameters:
                    - ''
              master_item:
                key: nginx.http.location_zones
              tags:
                -
                  tag: component
                  value: location_zones
                -
                  tag: zone
                  value: '{#NAME}'
            -
              uuid: 0cedd14450ba44f0b4c026afabb522a9
              name: 'Nginx: HTTP location zone [{#NAME}]: Responses 2xx, rate'
              type: DEPENDENT
              key: 'nginx.http.location_zones.responses.2xx.rate[{#NAME}]'
              delay: '0'
              history: 7d
              description: 'The number of responses with “2xx” status codes per second.'
              preprocessing:
                -
                  type: JSONPATH
                  parameters:
                    - '$[''{#NAME}''].responses.2xx'
                -
                  type: CHANGE_PER_SECOND
                  parameters:
                    - ''
              master_item:
                key: nginx.http.location_zones
              tags:
                -
                  tag: component
                  value: location_zones
                -
                  tag: zone
                  value: '{#NAME}'
            -
              uuid: 046a2a3b9a644dc1b4a0078b6722c867
              name: 'Nginx: HTTP location zone [{#NAME}]: Responses 3xx, rate'
              type: DEPENDENT
              key: 'nginx.http.location_zones.responses.3xx.rate[{#NAME}]'
              delay: '0'
              history: 7d
              description: 'The number of responses with “3xx” status codes per second.'
              preprocessing:
                -
                  type: JSONPATH
                  parameters:
                    - '$[''{#NAME}''].responses.3xx'
                -
                  type: CHANGE_PER_SECOND
                  parameters:
                    - ''
              master_item:
                key: nginx.http.location_zones
              tags:
                -
                  tag: component
                  value: location_zones
                -
                  tag: zone
                  value: '{#NAME}'
            -
              uuid: 32eb7cb8f04044d6a00ead678ff44a00
              name: 'Nginx: HTTP location zone [{#NAME}]: Responses 4xx, rate'
              type: DEPENDENT
              key: 'nginx.http.location_zones.responses.4xx.rate[{#NAME}]'
              delay: '0'
              history: 7d
              description: 'The number of responses with “4xx” status codes per second.'
              preprocessing:
                -
                  type: JSONPATH
                  parameters:
                    - '$[''{#NAME}''].responses.4xx'
                -
                  type: CHANGE_PER_SECOND
                  parameters:
                    - ''
              master_item:
                key: nginx.http.location_zones
              tags:
                -
                  tag: component
                  value: location_zones
                -
                  tag: zone
                  value: '{#NAME}'
            -
              uuid: dd5a27eb32da42d7998f89a96e29304f
              name: 'Nginx: HTTP location zone [{#NAME}]: Responses 5xx, rate'
              type: DEPENDENT
              key: 'nginx.http.location_zones.responses.5xx.rate[{#NAME}]'
              delay: '0'
              history: 7d
              description: 'The number of responses with “5xx” status codes per second.'
              preprocessing:
                -
                  type: JSONPATH
                  parameters:
                    - '$[''{#NAME}''].responses.5xx'
                -
                  type: CHANGE_PER_SECOND
                  parameters:
                    - ''
              master_item:
                key: nginx.http.location_zones
              tags:
                -
                  tag: component
                  value: location_zones
                -
                  tag: zone
                  value: '{#NAME}'
            -
              uuid: b6e3c7f074b54531aa57dce55169aedd
              name: 'Nginx: HTTP location zone [{#NAME}]: Responses total, rate'
              type: DEPENDENT
              key: 'nginx.http.location_zones.responses.total.rate[{#NAME}]'
              delay: '0'
              history: 7d
              description: 'The total number of responses sent to clients per second.'
              preprocessing:
                -
                  type: JSONPATH
                  parameters:
                    - '$[''{#NAME}''].responses.total'
                -
                  type: CHANGE_PER_SECOND
                  parameters:
                    - ''
              master_item:
                key: nginx.http.location_zones
              tags:
                -
                  tag: component
                  value: location_zones
                -
                  tag: zone
                  value: '{#NAME}'
            -
              uuid: 0af45d37b3a24d5491054aa3cf319315
              name: 'Nginx: HTTP location zone [{#NAME}]: Sent, rate'
              type: DEPENDENT
              key: 'nginx.http.location_zones.sent.rate[{#NAME}]'
              delay: '0'
              history: 7d
              description: 'The total number of bytes sent to clients per second.'
              preprocessing:
                -
                  type: JSONPATH
                  parameters:
                    - '$[''{#NAME}''].sent'
                -
                  type: CHANGE_PER_SECOND
                  parameters:
                    - ''
              master_item:
                key: nginx.http.location_zones
              tags:
                -
                  tag: component
                  value: location_zones
                -
                  tag: zone
                  value: '{#NAME}'
          graph_prototypes:
            -
              uuid: 85880c097a1c47bfafa35de05304abbc
              name: 'Nginx: HTTP location zone [{#NAME}]: Requests'
              graph_items:
                -
                  drawtype: GRADIENT_LINE
                  color: 1A7C11
                  item:
                    host: 'Nginx Plus by HTTP'
                    key: 'nginx.http.location_zones.requests.rate[{#NAME}]'
            -
              uuid: 6b05907e4c544986b977a1b496ca92e2
              name: 'Nginx: HTTP location zone [{#NAME}]: Responses'
              graph_items:
                -
                  drawtype: GRADIENT_LINE
                  color: 1A7C11
                  item:
                    host: 'Nginx Plus by HTTP'
                    key: 'nginx.http.location_zones.responses.2xx.rate[{#NAME}]'
                -
                  sortorder: '1'
                  drawtype: GRADIENT_LINE
                  color: 2774A4
                  item:
                    host: 'Nginx Plus by HTTP'
                    key: 'nginx.http.location_zones.responses.1xx.rate[{#NAME}]'
                -
                  sortorder: '2'
                  drawtype: GRADIENT_LINE
                  color: F63100
                  item:
                    host: 'Nginx Plus by HTTP'
                    key: 'nginx.http.location_zones.responses.3xx.rate[{#NAME}]'
                -
                  sortorder: '3'
                  drawtype: GRADIENT_LINE
                  color: A54F10
                  item:
                    host: 'Nginx Plus by HTTP'
                    key: 'nginx.http.location_zones.responses.4xx.rate[{#NAME}]'
                -
                  sortorder: '4'
                  drawtype: GRADIENT_LINE
                  color: FC6EA3
                  item:
                    host: 'Nginx Plus by HTTP'
                    key: 'nginx.http.location_zones.responses.5xx.rate[{#NAME}]'
          master_item:
            key: nginx.http.location_zones
          preprocessing:
            -
              type: JAVASCRIPT
              parameters:
                - |
                  var output = [];
                  
                  Object.keys(JSON.parse(value)).forEach(function (v) {
                      output.push({ '{#NAME}': v })
                  });
                  
                  return JSON.stringify(output);
            -
              type: DISCARD_UNCHANGED_HEARTBEAT
              parameters:
                - 30m
        -
          uuid: 85ad3fc40daa45b7a2fe00d570c5626c
          name: 'HTTP server zones discovery'
          type: DEPENDENT
          key: nginx.http.server_zones.discovery
          delay: '0'
          filter:
            evaltype: AND
            conditions:
              -
                macro: '{#NAME}'
                value: '{$NGINX.LLD.FILTER.HTTP.ZONE.MATCHES}'
                formulaid: A
              -
                macro: '{#NAME}'
                value: '{$NGINX.LLD.FILTER.HTTP.ZONE.NOT_MATCHES}'
                operator: NOT_MATCHES_REGEX
                formulaid: B
          item_prototypes:
            -
              uuid: 46d056a7870545e49db03b0ec2bd1e9b
              name: 'Nginx: HTTP server zone [{#NAME}]: Discarded, rate'
              type: DEPENDENT
              key: 'nginx.http.server_zones.discarded.rate[{#NAME}]'
              delay: '0'
              history: 7d
              description: 'The total number of requests completed without sending a response per second.'
              preprocessing:
                -
                  type: JSONPATH
                  parameters:
                    - '$[''{#NAME}''].discarded'
                -
                  type: CHANGE_PER_SECOND
                  parameters:
                    - ''
              master_item:
                key: nginx.http.server_zones
              tags:
                -
                  tag: component
                  value: server_zones
                -
                  tag: zone
                  value: '{#NAME}'
            -
              uuid: e8dd5302fced4d23ba93656f383222d9
              name: 'Nginx: HTTP server zone [{#NAME}]: Processing'
              type: DEPENDENT
              key: 'nginx.http.server_zones.processing[{#NAME}]'
              delay: '0'
              history: 7d
              description: 'The number of client requests that are currently being processed.'
              preprocessing:
                -
                  type: JSONPATH
                  parameters:
                    - '$[''{#NAME}''].processing'
              master_item:
                key: nginx.http.server_zones
              tags:
                -
                  tag: component
                  value: server_zones
                -
                  tag: zone
                  value: '{#NAME}'
            -
              uuid: edc834403218460b8c7b8b3ca0709a76
              name: 'Nginx: HTTP server zone [{#NAME}]: Received, rate'
              type: DEPENDENT
              key: 'nginx.http.server_zones.received.rate[{#NAME}]'
              delay: '0'
              history: 7d
              description: 'The total number of bytes received from clients per second.'
              preprocessing:
                -
                  type: JSONPATH
                  parameters:
                    - '$[''{#NAME}''].received'
                -
                  type: CHANGE_PER_SECOND
                  parameters:
                    - ''
              master_item:
                key: nginx.http.server_zones
              tags:
                -
                  tag: component
                  value: server_zones
                -
                  tag: zone
                  value: '{#NAME}'
            -
              uuid: e33079d5cc684a5687bd7cd10eaec541
              name: 'Nginx: HTTP server zone [{#NAME}]: Requests, rate'
              type: DEPENDENT
              key: 'nginx.http.server_zones.requests.rate[{#NAME}]'
              delay: '0'
              history: 7d
              description: 'The total number of client requests received from clients per second.'
              preprocessing:
                -
                  type: JSONPATH
                  parameters:
                    - '$[''{#NAME}''].requests'
                -
                  type: CHANGE_PER_SECOND
                  parameters:
                    - ''
              master_item:
                key: nginx.http.server_zones
              tags:
                -
                  tag: component
                  value: server_zones
                -
                  tag: zone
                  value: '{#NAME}'
            -
              uuid: 2b37ee1a3c1243c38534f70acf7a32d9
              name: 'Nginx: HTTP server zone [{#NAME}]: Responses 1xx, rate'
              type: DEPENDENT
              key: 'nginx.http.server_zones.responses.1xx.rate[{#NAME}]'
              delay: '0'
              history: 7d
              description: 'The number of responses with “1xx” status codes per second.'
              preprocessing:
                -
                  type: JSONPATH
                  parameters:
                    - '$[''{#NAME}''].responses.1xx'
                -
                  type: CHANGE_PER_SECOND
                  parameters:
                    - ''
              master_item:
                key: nginx.http.server_zones
              tags:
                -
                  tag: component
                  value: server_zones
                -
                  tag: zone
                  value: '{#NAME}'
            -
              uuid: 4e127d8bfac940f1b3703053ada05fbd
              name: 'Nginx: HTTP server zone [{#NAME}]: Responses 2xx, rate'
              type: DEPENDENT
              key: 'nginx.http.server_zones.responses.2xx.rate[{#NAME}]'
              delay: '0'
              history: 7d
              description: 'The number of responses with “2xx” status codes per second.'
              preprocessing:
                -
                  type: JSONPATH
                  parameters:
                    - '$[''{#NAME}''].responses.2xx'
                -
                  type: CHANGE_PER_SECOND
                  parameters:
                    - ''
              master_item:
                key: nginx.http.server_zones
              tags:
                -
                  tag: component
                  value: server_zones
                -
                  tag: zone
                  value: '{#NAME}'
            -
              uuid: 6add98c2b5334160a0e4cc363f53cb7e
              name: 'Nginx: HTTP server zone [{#NAME}]: Responses 3xx, rate'
              type: DEPENDENT
              key: 'nginx.http.server_zones.responses.3xx.rate[{#NAME}]'
              delay: '0'
              history: 7d
              description: 'The number of responses with “3xx” status codes per second.'
              preprocessing:
                -
                  type: JSONPATH
                  parameters:
                    - '$[''{#NAME}''].responses.3xx'
                -
                  type: CHANGE_PER_SECOND
                  parameters:
                    - ''
              master_item:
                key: nginx.http.server_zones
              tags:
                -
                  tag: component
                  value: server_zones
                -
                  tag: zone
                  value: '{#NAME}'
            -
              uuid: 1f2cd6dcddf948a9bf17f05c68502f46
              name: 'Nginx: HTTP server zone [{#NAME}]: Responses 4xx, rate'
              type: DEPENDENT
              key: 'nginx.http.server_zones.responses.4xx.rate[{#NAME}]'
              delay: '0'
              history: 7d
              description: 'The number of responses with “4xx” status codes per second.'
              preprocessing:
                -
                  type: JSONPATH
                  parameters:
                    - '$[''{#NAME}''].responses.4xx'
                -
                  type: CHANGE_PER_SECOND
                  parameters:
                    - ''
              master_item:
                key: nginx.http.server_zones
              tags:
                -
                  tag: component
                  value: server_zones
                -
                  tag: zone
                  value: '{#NAME}'
            -
              uuid: fc6654f2627e47cbbe1a7628c073520a
              name: 'Nginx: HTTP server zone [{#NAME}]: Responses 5xx, rate'
              type: DEPENDENT
              key: 'nginx.http.server_zones.responses.5xx.rate[{#NAME}]'
              delay: '0'
              history: 7d
              description: 'The number of responses with “5xx” status codes per second.'
              preprocessing:
                -
                  type: JSONPATH
                  parameters:
                    - '$[''{#NAME}''].responses.5xx'
                -
                  type: CHANGE_PER_SECOND
                  parameters:
                    - ''
              master_item:
                key: nginx.http.server_zones
              tags:
                -
                  tag: component
                  value: server_zones
                -
                  tag: zone
                  value: '{#NAME}'
            -
              uuid: fd81275f0c994a62a9412d595d7d2e8b
              name: 'Nginx: HTTP server zone [{#NAME}]: Responses total, rate'
              type: DEPENDENT
              key: 'nginx.http.server_zones.responses.total.rate[{#NAME}]'
              delay: '0'
              history: 7d
              description: 'The total number of responses sent to clients per second.'
              preprocessing:
                -
                  type: JSONPATH
                  parameters:
                    - '$[''{#NAME}''].responses.total'
                -
                  type: CHANGE_PER_SECOND
                  parameters:
                    - ''
              master_item:
                key: nginx.http.server_zones
              tags:
                -
                  tag: component
                  value: server_zones
                -
                  tag: zone
                  value: '{#NAME}'
            -
              uuid: 91acfc8de0e64d52820d509ced251e5b
              name: 'Nginx: HTTP server zone [{#NAME}]: Sent, rate'
              type: DEPENDENT
              key: 'nginx.http.server_zones.sent.rate[{#NAME}]'
              delay: '0'
              history: 7d
              description: 'The total number of bytes sent to clients per second.'
              preprocessing:
                -
                  type: JSONPATH
                  parameters:
                    - '$[''{#NAME}''].sent'
                -
                  type: CHANGE_PER_SECOND
                  parameters:
                    - ''
              master_item:
                key: nginx.http.server_zones
              tags:
                -
                  tag: component
                  value: server_zones
                -
                  tag: zone
                  value: '{#NAME}'
          graph_prototypes:
            -
              uuid: ba4bc0201f0741078e1512fd79bddf59
              name: 'Nginx: HTTP server zone [{#NAME}]: Requests'
              graph_items:
                -
                  drawtype: GRADIENT_LINE
                  color: 1A7C11
                  item:
                    host: 'Nginx Plus by HTTP'
                    key: 'nginx.http.server_zones.requests.rate[{#NAME}]'
            -
              uuid: 5870e9a861f046b3946c2464c6c5007d
              name: 'Nginx: HTTP server zone [{#NAME}]: Responses'
              graph_items:
                -
                  drawtype: GRADIENT_LINE
                  color: 1A7C11
                  item:
                    host: 'Nginx Plus by HTTP'
                    key: 'nginx.http.server_zones.responses.2xx.rate[{#NAME}]'
                -
                  sortorder: '1'
                  drawtype: GRADIENT_LINE
                  color: 2774A4
                  item:
                    host: 'Nginx Plus by HTTP'
                    key: 'nginx.http.server_zones.responses.1xx.rate[{#NAME}]'
                -
                  sortorder: '2'
                  drawtype: GRADIENT_LINE
                  color: F63100
                  item:
                    host: 'Nginx Plus by HTTP'
                    key: 'nginx.http.server_zones.responses.3xx.rate[{#NAME}]'
                -
                  sortorder: '3'
                  drawtype: GRADIENT_LINE
                  color: A54F10
                  item:
                    host: 'Nginx Plus by HTTP'
                    key: 'nginx.http.server_zones.responses.4xx.rate[{#NAME}]'
                -
                  sortorder: '4'
                  drawtype: GRADIENT_LINE
                  color: FC6EA3
                  item:
                    host: 'Nginx Plus by HTTP'
                    key: 'nginx.http.server_zones.responses.5xx.rate[{#NAME}]'
          master_item:
            key: nginx.http.server_zones
          preprocessing:
            -
              type: JAVASCRIPT
              parameters:
                - |
                  var output = [];
                  
                  Object.keys(JSON.parse(value)).forEach(function (v) {
                      output.push({ '{#NAME}': v })
                  });
                  
                  return JSON.stringify(output);
            -
              type: DISCARD_UNCHANGED_HEARTBEAT
              parameters:
                - 30m
        -
          uuid: 007e9b12e7164f629d90a6f377333dc8
          name: 'HTTP upstream peers discovery'
          type: DEPENDENT
          key: nginx.http.upstream.peers.discovery
          delay: '0'
          filter:
            evaltype: AND
            conditions:
              -
                macro: '{#UPSTREAM}'
                value: '{$NGINX.LLD.FILTER.HTTP.UPSTREAM.MATCHES}'
                formulaid: A
              -
                macro: '{#UPSTREAM}'
                value: '{$NGINX.LLD.FILTER.HTTP.UPSTREAM.NOT_MATCHES}'
                operator: NOT_MATCHES_REGEX
                formulaid: B
          item_prototypes:
            -
              uuid: ad270fab134c44ae83c154670db4d317
              name: 'Nginx: HTTP upstream [{#UPSTREAM}] peer [{#PEER}]: Active'
              type: DEPENDENT
              key: 'nginx.http.upstream.peer.active[{#UPSTREAM},{#PEER}]'
              delay: '0'
              history: 7d
              description: 'The current number of active connections.'
              preprocessing:
                -
                  type: JSONPATH
                  parameters:
                    - '$[''{#UPSTREAM}''].peers[?(@.server == ''{#PEER}'')].active.first()'
              master_item:
                key: nginx.http.upstreams
              tags:
                -
                  tag: component
                  value: upstream
                -
                  tag: peer
                  value: '{#PEER}'
                -
                  tag: upstream
                  value: '{#NAME}'
            -
              uuid: cd7455016ac549598df2551a716545ef
              name: 'Nginx: HTTP upstream [{#UPSTREAM}] peer [{#PEER}]: Fails, rate'
              type: DEPENDENT
              key: 'nginx.http.upstream.peer.fails.rate[{#UPSTREAM},{#PEER}]'
              delay: '0'
              history: 7d
              description: 'The total number of unsuccessful attempts to communicate with the server per second.'
              preprocessing:
                -
                  type: JSONPATH
                  parameters:
                    - '$[''{#UPSTREAM}''].peers[?(@.server == ''{#PEER}'')].fails.first()'
                -
                  type: CHANGE_PER_SECOND
                  parameters:
                    - ''
              master_item:
                key: nginx.http.upstreams
              tags:
                -
                  tag: component
                  value: upstream
                -
                  tag: peer
                  value: '{#PEER}'
                -
                  tag: upstream
                  value: '{#NAME}'
            -
              uuid: b0607f003d7a4713a28f0d75b7933087
              name: 'Nginx: HTTP upstream [{#UPSTREAM}] peer [{#PEER}]: Header time'
              type: DEPENDENT
              key: 'nginx.http.upstream.peer.header_time.rate[{#UPSTREAM},{#PEER}]'
              delay: '0'
              history: 7d
              units: '!ms'
              description: 'The average time to get the response header from the server.'
              preprocessing:
                -
                  type: JSONPATH
                  parameters:
                    - '$[''{#UPSTREAM}''].peers[?(@.server == ''{#PEER}'')].header_time.first()'
                  error_handler: DISCARD_VALUE
              master_item:
                key: nginx.http.upstreams
              tags:
                -
                  tag: component
                  value: upstream
                -
                  tag: peer
                  value: '{#PEER}'
                -
                  tag: upstream
                  value: '{#NAME}'
            -
              uuid: 89f89850409a4aff8447b9f7c2839f01
              name: 'Nginx: HTTP upstream [{#UPSTREAM}] peer [{#PEER}]: Health checks, check'
              type: DEPENDENT
              key: 'nginx.http.upstream.peer.health_checks.checks[{#UPSTREAM},{#PEER}]'
              delay: '0'
              history: 7d
              description: 'The total number of health check requests made.'
              preprocessing:
                -
                  type: JSONPATH
                  parameters:
                    - '$[''{#UPSTREAM}''].peers[?(@.server == ''{#PEER}'')].health_checks.checks.first()'
              master_item:
                key: nginx.http.upstreams
              tags:
                -
                  tag: component
                  value: upstream
                -
                  tag: peer
                  value: '{#PEER}'
                -
                  tag: upstream
                  value: '{#NAME}'
            -
              uuid: 31292e9dbc8c45dd936ed1e77d44940b
              name: 'Nginx: HTTP upstream [{#UPSTREAM}] peer [{#PEER}]: Health checks, fails'
              type: DEPENDENT
              key: 'nginx.http.upstream.peer.health_checks.fails[{#UPSTREAM},{#PEER}]'
              delay: '0'
              history: 7d
              description: 'The number of failed health checks.'
              preprocessing:
                -
                  type: JSONPATH
                  parameters:
                    - '$[''{#UPSTREAM}''].peers[?(@.server == ''{#PEER}'')].health_checks.fails.first()'
              master_item:
                key: nginx.http.upstreams
              tags:
                -
                  tag: component
                  value: upstream
                -
                  tag: peer
                  value: '{#PEER}'
                -
                  tag: upstream
                  value: '{#NAME}'
            -
              uuid: 89c57fb94cab4635b14532961560a8bf
              name: 'Nginx: HTTP upstream [{#UPSTREAM}] peer [{#PEER}]: Health checks, unhealthy'
              type: DEPENDENT
              key: 'nginx.http.upstream.peer.health_checks.unhealthy[{#UPSTREAM},{#PEER}]'
              delay: '0'
              history: 7d
              description: 'How many times the server became unhealthy (state “unhealthy”).'
              preprocessing:
                -
                  type: JSONPATH
                  parameters:
                    - '$[''{#UPSTREAM}''].peers[?(@.server == ''{#PEER}'')].health_checks.unhealthy.first()'
              master_item:
                key: nginx.http.upstreams
              tags:
                -
                  tag: component
                  value: upstream
                -
                  tag: peer
                  value: '{#PEER}'
                -
                  tag: upstream
                  value: '{#NAME}'
            -
              uuid: 8731deb89d1c4fc2bab90aca5802c721
              name: 'Nginx: HTTP upstream [{#UPSTREAM}] peer [{#PEER}]: Received, rate'
              type: DEPENDENT
              key: 'nginx.http.upstream.peer.received.rate[{#UPSTREAM},{#PEER}]'
              delay: '0'
              history: 7d
              description: 'The total number of bytes received from this server per second.'
              preprocessing:
                -
                  type: JSONPATH
                  parameters:
                    - '$[''{#UPSTREAM}''].peers[?(@.server == ''{#PEER}'')].received.first()'
                -
                  type: CHANGE_PER_SECOND
                  parameters:
                    - ''
              master_item:
                key: nginx.http.upstreams
              tags:
                -
                  tag: component
                  value: upstream
                -
                  tag: peer
                  value: '{#PEER}'
                -
                  tag: upstream
                  value: '{#NAME}'
            -
              uuid: 3ff18cfb4028421e9af0460aeaa2d6a4
              name: 'Nginx: HTTP upstream [{#UPSTREAM}] peer [{#PEER}]: Requests, rate'
              type: DEPENDENT
              key: 'nginx.http.upstream.peer.requests.rate[{#UPSTREAM},{#PEER}]'
              delay: '0'
              history: 7d
              description: 'The total number of client requests forwarded to this server per second.'
              preprocessing:
                -
                  type: JSONPATH
                  parameters:
                    - '$[''{#UPSTREAM}''].peers[?(@.server == ''{#PEER}'')].requests.first()'
                -
                  type: CHANGE_PER_SECOND
                  parameters:
                    - ''
              master_item:
                key: nginx.http.upstreams
              tags:
                -
                  tag: component
                  value: upstream
                -
                  tag: peer
                  value: '{#PEER}'
                -
                  tag: upstream
                  value: '{#NAME}'
            -
              uuid: 6ca38995050e44488df4fde7dc543541
              name: 'Nginx: HTTP upstream [{#UPSTREAM}] peer [{#PEER}]: Responses 1xx, rate'
              type: DEPENDENT
              key: 'nginx.http.upstream.peer.responses.1xx.rate[{#UPSTREAM},{#PEER}]'
              delay: '0'
              history: 7d
              description: 'The number of responses with “1xx” status codes per second.'
              preprocessing:
                -
                  type: JSONPATH
                  parameters:
                    - '$[''{#UPSTREAM}''].peers[?(@.server == ''{#PEER}'')].responses.1xx.first()'
                -
                  type: CHANGE_PER_SECOND
                  parameters:
                    - ''
              master_item:
                key: nginx.http.upstreams
              tags:
                -
                  tag: component
                  value: upstream
                -
                  tag: peer
                  value: '{#PEER}'
                -
                  tag: upstream
                  value: '{#NAME}'
            -
              uuid: e526b61c48eb45568ef92434eee3a2cb
              name: 'Nginx: HTTP upstream [{#UPSTREAM}] peer [{#PEER}]: Responses 2xx, rate'
              type: DEPENDENT
              key: 'nginx.http.upstream.peer.responses.2xx.rate[{#UPSTREAM},{#PEER}]'
              delay: '0'
              history: 7d
              description: 'The number of responses with “2xx” status codes per second.'
              preprocessing:
                -
                  type: JSONPATH
                  parameters:
                    - '$[''{#UPSTREAM}''].peers[?(@.server == ''{#PEER}'')].responses.2xx.first()'
                -
                  type: CHANGE_PER_SECOND
                  parameters:
                    - ''
              master_item:
                key: nginx.http.upstreams
              tags:
                -
                  tag: component
                  value: upstream
                -
                  tag: peer
                  value: '{#PEER}'
                -
                  tag: upstream
                  value: '{#NAME}'
            -
              uuid: 7b2851137d77418a8548e92332c66c86
              name: 'Nginx: HTTP upstream [{#UPSTREAM}] peer [{#PEER}]: Responses 3xx, rate'
              type: DEPENDENT
              key: 'nginx.http.upstream.peer.responses.3xx.rate[{#UPSTREAM},{#PEER}]'
              delay: '0'
              history: 7d
              description: 'The number of responses with “3xx” status codes per second.'
              preprocessing:
                -
                  type: JSONPATH
                  parameters:
                    - '$[''{#UPSTREAM}''].peers[?(@.server == ''{#PEER}'')].responses.3xx.first()'
                -
                  type: CHANGE_PER_SECOND
                  parameters:
                    - ''
              master_item:
                key: nginx.http.upstreams
              tags:
                -
                  tag: component
                  value: upstream
                -
                  tag: peer
                  value: '{#PEER}'
                -
                  tag: upstream
                  value: '{#NAME}'
            -
              uuid: cb81f113d289409ca26af48aeb68f8cc
              name: 'Nginx: HTTP upstream [{#UPSTREAM}] peer [{#PEER}]: Responses 4xx, rate'
              type: DEPENDENT
              key: 'nginx.http.upstream.peer.responses.4xx.rate[{#UPSTREAM},{#PEER}]'
              delay: '0'
              history: 7d
              description: 'The number of responses with “4xx” status codes per second.'
              preprocessing:
                -
                  type: JSONPATH
                  parameters:
                    - '$[''{#UPSTREAM}''].peers[?(@.server == ''{#PEER}'')].responses.4xx.first()'
                -
                  type: CHANGE_PER_SECOND
                  parameters:
                    - ''
              master_item:
                key: nginx.http.upstreams
              tags:
                -
                  tag: component
                  value: upstream
                -
                  tag: peer
                  value: '{#PEER}'
                -
                  tag: upstream
                  value: '{#NAME}'
            -
              uuid: 172cb81d02f04fd48c7b82d8ae7dac69
              name: 'Nginx: HTTP upstream [{#UPSTREAM}] peer [{#PEER}]: Responses 5xx, rate'
              type: DEPENDENT
              key: 'nginx.http.upstream.peer.responses.5xx.rate[{#UPSTREAM},{#PEER}]'
              delay: '0'
              history: 7d
              description: 'The number of responses with “5xx” status codes per second.'
              preprocessing:
                -
                  type: JSONPATH
                  parameters:
                    - '$[''{#UPSTREAM}''].peers[?(@.server == ''{#PEER}'')].responses.5xx.first()'
                -
                  type: CHANGE_PER_SECOND
                  parameters:
                    - ''
              master_item:
                key: nginx.http.upstreams
              tags:
                -
                  tag: component
                  value: upstream
                -
                  tag: peer
                  value: '{#PEER}'
                -
                  tag: upstream
                  value: '{#NAME}'
            -
              uuid: d587254989c743b4aa9c8043bf18baa5
              name: 'Nginx: HTTP upstream [{#UPSTREAM}] peer [{#PEER}]: Responses total, rate'
              type: DEPENDENT
              key: 'nginx.http.upstream.peer.responses.total.rate[{#UPSTREAM},{#PEER}]'
              delay: '0'
              history: 7d
              description: 'The total number of responses obtained from this server.'
              preprocessing:
                -
                  type: JSONPATH
                  parameters:
                    - '$[''{#UPSTREAM}''].peers[?(@.server == ''{#PEER}'')].responses.total.first()'
                -
                  type: CHANGE_PER_SECOND
                  parameters:
                    - ''
              master_item:
                key: nginx.http.upstreams
              tags:
                -
                  tag: component
                  value: upstream
                -
                  tag: peer
                  value: '{#PEER}'
                -
                  tag: upstream
                  value: '{#NAME}'
            -
              uuid: 868562df5ab44d3cadeb6fa294b33559
              name: 'Nginx: HTTP upstream [{#UPSTREAM}] peer [{#PEER}]: Response time'
              type: DEPENDENT
              key: 'nginx.http.upstream.peer.response_time.rate[{#UPSTREAM},{#PEER}]'
              delay: '0'
              history: 7d
              units: '!ms'
              description: 'The average time to get the full response from the server.'
              preprocessing:
                -
                  type: JSONPATH
                  parameters:
                    - '$[''{#UPSTREAM}''].peers[?(@.server == ''{#PEER}'')].response_time.first()'
                  error_handler: DISCARD_VALUE
              master_item:
                key: nginx.http.upstreams
              tags:
                -
                  tag: component
                  value: upstream
                -
                  tag: peer
                  value: '{#PEER}'
                -
                  tag: upstream
                  value: '{#NAME}'
            -
              uuid: 2a0a36d22acf453e80d79820990db9b8
              name: 'Nginx: HTTP upstream [{#UPSTREAM}] peer [{#PEER}]: Sent, rate'
              type: DEPENDENT
              key: 'nginx.http.upstream.peer.sent.rate[{#UPSTREAM},{#PEER}]'
              delay: '0'
              history: 7d
              description: 'The total number of bytes sent to this server per second.'
              preprocessing:
                -
                  type: JSONPATH
                  parameters:
                    - '$[''{#UPSTREAM}''].peers[?(@.server == ''{#PEER}'')].sent.first()'
                -
                  type: CHANGE_PER_SECOND
                  parameters:
                    - ''
              master_item:
                key: nginx.http.upstreams
              tags:
                -
                  tag: component
                  value: upstream
                -
                  tag: peer
                  value: '{#PEER}'
                -
                  tag: upstream
                  value: '{#NAME}'
            -
              uuid: 33eacaa48f974c348e37475341a6c8af
              name: 'Nginx: HTTP upstream [{#UPSTREAM}] peer [{#PEER}]: State'
              type: DEPENDENT
              key: 'nginx.http.upstream.peer.state[{#UPSTREAM},{#PEER}]'
              delay: '0'
              history: 7d
              trends: '0'
              value_type: CHAR
              description: 'Current state, which may be one of “up”, “draining”, “down”, “unavail”, “checking”, and “unhealthy”.'
              preprocessing:
                -
                  type: JSONPATH
                  parameters:
                    - '$[''{#UPSTREAM}''].peers[?(@.server == ''{#PEER}'')].state.first()'
                -
                  type: DISCARD_UNCHANGED_HEARTBEAT
                  parameters:
                    - 3h
              master_item:
                key: nginx.http.upstreams
              tags:
                -
                  tag: component
                  value: upstream
                -
                  tag: peer
                  value: '{#PEER}'
                -
                  tag: upstream
                  value: '{#NAME}'
              trigger_prototypes:
                -
                  uuid: fc6586fe2eef457bac1d71ce0313f95d
                  expression: 'find(/Nginx Plus by HTTP/nginx.http.upstream.peer.state[{#UPSTREAM},{#PEER}],,"like","up")=0 and find(/Nginx Plus by HTTP/nginx.http.upstream.peer.state[{#UPSTREAM},{#PEER}],,"like","down")=0'
                  name: 'Nginx: HTTP upstream server is not in UP or DOWN state.'
                  opdata: 'Current state: {ITEM.LASTVALUE1}'
                  priority: WARNING
                  tags:
                    -
                      tag: scope
                      value: availability
            -
              uuid: e89e6c141217465794febd9131ccafae
              name: 'Nginx: HTTP upstream [{#UPSTREAM}] peer [{#PEER}]: Unavail'
              type: DEPENDENT
              key: 'nginx.http.upstream.peer.unavail.rate[{#UPSTREAM},{#PEER}]'
              delay: '0'
              history: 7d
              description: 'How many times the server became unavailable for client requests (state “unavail”) due to the number of unsuccessful attempts reaching the max_fails threshold.'
              preprocessing:
                -
                  type: JSONPATH
                  parameters:
                    - '$[''{#UPSTREAM}''].peers[?(@.server == ''{#PEER}'')].unavail.first()'
              master_item:
                key: nginx.http.upstreams
              tags:
                -
                  tag: component
                  value: upstream
                -
                  tag: peer
                  value: '{#PEER}'
                -
                  tag: upstream
                  value: '{#NAME}'
          trigger_prototypes:
            -
              uuid: e7b4782a796b4710b50a96f3d24c8208
              expression: 'sum(/Nginx Plus by HTTP/nginx.http.upstream.peer.responses.4xx.rate[{#UPSTREAM},{#PEER}],5m) > (sum(/Nginx Plus by HTTP/nginx.http.upstream.peer.responses.total.rate[{#UPSTREAM},{#PEER}],5m)*({$NGINX.HTTP.UPSTREAM.4XX.MAX.WARN}/100))'
              name: 'Nginx: Too many HTTP requests with code 4xx'
              event_name: 'Nginx: Too many HTTP requests with code 4xx (over {$NGINX.HTTP.UPSTREAM.4XX.MAX.WARN}% for 5m)'
              priority: WARNING
              tags:
                -
                  tag: scope
                  value: performance
            -
              uuid: f542573d149547d3844f635bf2a87120
              expression: 'sum(/Nginx Plus by HTTP/nginx.http.upstream.peer.responses.5xx.rate[{#UPSTREAM},{#PEER}],5m) > (sum(/Nginx Plus by HTTP/nginx.http.upstream.peer.responses.total.rate[{#UPSTREAM},{#PEER}],5m)*({$NGINX.HTTP.UPSTREAM.5XX.MAX.WARN}/100))'
              name: 'Nginx: Too many HTTP requests with code 5xx'
              event_name: 'Nginx: Too many HTTP requests with code 5xx (over {$NGINX.HTTP.UPSTREAM.5XX.MAX.WARN}% for 5m)'
              priority: HIGH
              tags:
                -
                  tag: scope
                  value: performance
          graph_prototypes:
            -
              uuid: 63582bcbe4c741e88cd64a43ff1b7d9d
              name: 'Nginx: HTTP upstream [{#UPSTREAM}] peer [{#PEER}]: Health checks'
              graph_items:
                -
                  drawtype: GRADIENT_LINE
                  color: 1A7C11
                  item:
                    host: 'Nginx Plus by HTTP'
                    key: 'nginx.http.upstream.peer.health_checks.checks[{#UPSTREAM},{#PEER}]'
                -
                  sortorder: '1'
                  drawtype: GRADIENT_LINE
                  color: 2774A4
                  item:
                    host: 'Nginx Plus by HTTP'
                    key: 'nginx.http.upstream.peer.health_checks.fails[{#UPSTREAM},{#PEER}]'
                -
                  sortorder: '2'
                  drawtype: GRADIENT_LINE
                  color: F63100
                  item:
                    host: 'Nginx Plus by HTTP'
                    key: 'nginx.http.upstream.peer.health_checks.unhealthy[{#UPSTREAM},{#PEER}]'
            -
              uuid: 49cd8f25969d486ab4482b4986b1815a
              name: 'Nginx: HTTP upstream [{#UPSTREAM}] peer [{#PEER}]: Responses'
              graph_items:
                -
                  drawtype: GRADIENT_LINE
                  color: 1A7C11
                  item:
                    host: 'Nginx Plus by HTTP'
                    key: 'nginx.http.upstream.peer.responses.2xx.rate[{#UPSTREAM},{#PEER}]'
                -
                  sortorder: '1'
                  drawtype: GRADIENT_LINE
                  color: 2774A4
                  item:
                    host: 'Nginx Plus by HTTP'
                    key: 'nginx.http.upstream.peer.responses.1xx.rate[{#UPSTREAM},{#PEER}]'
                -
                  sortorder: '2'
                  drawtype: GRADIENT_LINE
                  color: F63100
                  item:
                    host: 'Nginx Plus by HTTP'
                    key: 'nginx.http.upstream.peer.responses.3xx.rate[{#UPSTREAM},{#PEER}]'
                -
                  sortorder: '3'
                  drawtype: GRADIENT_LINE
                  color: A54F10
                  item:
                    host: 'Nginx Plus by HTTP'
                    key: 'nginx.http.upstream.peer.responses.4xx.rate[{#UPSTREAM},{#PEER}]'
                -
                  sortorder: '4'
                  drawtype: GRADIENT_LINE
                  color: FC6EA3
                  item:
                    host: 'Nginx Plus by HTTP'
                    key: 'nginx.http.upstream.peer.responses.5xx.rate[{#UPSTREAM},{#PEER}]'
          master_item:
            key: nginx.http.upstreams
          preprocessing:
            -
              type: JAVASCRIPT
              parameters:
                - |
                  var input = JSON.parse(value),
                      output = [];
                  
                  Object.keys(input).forEach(function (upstream) {
                      input[upstream].peers.forEach(function (peer) {
                          output.push({ '{#UPSTREAM}': upstream, '{#PEER}': peer.server })
                      });
                  });
                  
                  return JSON.stringify(output);
            -
              type: DISCARD_UNCHANGED_HEARTBEAT
              parameters:
                - 30m
        -
          uuid: 0cdb09e9004540239fd49eab09e3f324
          name: 'HTTP upstreams discovery'
          type: DEPENDENT
          key: nginx.http.upstreams.discovery
          delay: '0'
          filter:
            evaltype: AND
            conditions:
              -
                macro: '{#NAME}'
                value: '{$NGINX.LLD.FILTER.HTTP.UPSTREAM.MATCHES}'
                formulaid: A
              -
                macro: '{#NAME}'
                value: '{$NGINX.LLD.FILTER.HTTP.UPSTREAM.NOT_MATCHES}'
                operator: NOT_MATCHES_REGEX
                formulaid: B
          item_prototypes:
            -
              uuid: ef9a2a71c3a340c894f82c29503d6b6b
              name: 'Nginx: HTTP upstream [{#NAME}]: Keepalive'
              type: DEPENDENT
              key: 'nginx.http.upstreams.keepalive[{#NAME}]'
              delay: '0'
              history: 7d
              description: 'The current number of idle keepalive connections.'
              preprocessing:
                -
                  type: JSONPATH
                  parameters:
                    - '$[''{#NAME}''].keepalive'
              master_item:
                key: nginx.http.upstreams
              tags:
                -
                  tag: component
                  value: upstreams
                -
                  tag: upstream
                  value: '{#NAME}'
            -
              uuid: 1a426d42dada4eb082aa4e912ae1256c
              name: 'Nginx: HTTP upstream [{#NAME}]: Zombies'
              type: DEPENDENT
              key: 'nginx.http.upstreams.zombies[{#NAME}]'
              delay: '0'
              history: 7d
              description: 'The current number of servers removed from the group but still processing active client requests.'
              preprocessing:
                -
                  type: JSONPATH
                  parameters:
                    - '$[''{#NAME}''].zombies'
              master_item:
                key: nginx.http.upstreams
              tags:
                -
                  tag: component
                  value: upstreams
                -
                  tag: upstream
                  value: '{#NAME}'
            -
              uuid: 8aa415f2a55a4e8fb28ea87a8d307bd4
              name: 'Nginx: HTTP upstream [{#NAME}]: Zone'
              type: DEPENDENT
              key: 'nginx.http.upstreams.zone[{#NAME}]'
              delay: '0'
              history: 7d
              trends: '0'
              value_type: CHAR
              description: 'The name of the shared memory zone that keeps the group''s configuration and run-time state.'
              preprocessing:
                -
                  type: JSONPATH
                  parameters:
                    - '$[''{#NAME}''].zone'
                -
                  type: DISCARD_UNCHANGED_HEARTBEAT
                  parameters:
                    - 3h
              master_item:
                key: nginx.http.upstreams
              tags:
                -
                  tag: component
                  value: upstreams
                -
                  tag: upstream
                  value: '{#NAME}'
          master_item:
            key: nginx.http.upstreams
          preprocessing:
            -
              type: JAVASCRIPT
              parameters:
                - |
                  var output = [];
                  
                  Object.keys(JSON.parse(value)).forEach(function (v) {
                      output.push({ '{#NAME}': v })
                  });
                  
                  return JSON.stringify(output);
            -
              type: DISCARD_UNCHANGED_HEARTBEAT
              parameters:
                - 30m
        -
          uuid: 1f75b67c7c4044dfa8727cc7363e86d0
          name: 'Resolvers discovery'
          type: DEPENDENT
          key: nginx.resolvers.discovery
          delay: '0'
          filter:
            evaltype: AND
            conditions:
              -
                macro: '{#NAME}'
                value: '{$NGINX.LLD.FILTER.RESOLVER.MATCHES}'
                formulaid: A
              -
                macro: '{#NAME}'
                value: '{$NGINX.LLD.FILTER.RESOLVER.NOT_MATCHES}'
                operator: NOT_MATCHES_REGEX
                formulaid: B
          item_prototypes:
            -
              uuid: 8fd2a1c5c148423886dccb939ca61b62
              name: 'Nginx: Resolver [{#NAME}]: Requests addr, rate'
              type: DEPENDENT
              key: 'nginx.resolvers.requests.addr.rate[{#NAME}]'
              delay: '0'
              history: 7d
              description: 'The total number of requests to resolve addresses to names per second.'
              preprocessing:
                -
                  type: JSONPATH
                  parameters:
                    - '$[''{#NAME}''].requests.addr'
                -
                  type: CHANGE_PER_SECOND
                  parameters:
                    - ''
              master_item:
                key: nginx.resolvers
              tags:
                -
                  tag: component
                  value: resolver
                -
                  tag: resolver
                  value: '{#NAME}'
            -
              uuid: fb149324f11a4edc9971e9e2572282a6
              name: 'Nginx: Resolver [{#NAME}]: Requests name, rate'
              type: DEPENDENT
              key: 'nginx.resolvers.requests.name.rate[{#NAME}]'
              delay: '0'
              history: 7d
              description: 'The total number of requests to resolve names to addresses per second.'
              preprocessing:
                -
                  type: JSONPATH
                  parameters:
                    - '$[''{#NAME}''].requests.name'
                -
                  type: CHANGE_PER_SECOND
                  parameters:
                    - ''
              master_item:
                key: nginx.resolvers
              tags:
                -
                  tag: component
                  value: resolver
                -
                  tag: resolver
                  value: '{#NAME}'
            -
              uuid: 9ebd08e8b6a3416c940b16a03158bafe
              name: 'Nginx: Resolver [{#NAME}]: Requests srv, rate'
              type: DEPENDENT
              key: 'nginx.resolvers.requests.srv.rate[{#NAME}]'
              delay: '0'
              history: 7d
              description: 'The total number of requests to resolve SRV records per second.'
              preprocessing:
                -
                  type: JSONPATH
                  parameters:
                    - '$[''{#NAME}''].requests.srv'
                -
                  type: CHANGE_PER_SECOND
                  parameters:
                    - ''
              master_item:
                key: nginx.resolvers
              tags:
                -
                  tag: component
                  value: resolver
                -
                  tag: resolver
                  value: '{#NAME}'
            -
              uuid: 8a7db7d9c24f4f88b9ad9dde32b2b2e0
              name: 'Nginx: Resolver [{#NAME}]: Responses formerr, rate'
              type: DEPENDENT
              key: 'nginx.resolvers.responses.formerr.rate[{#NAME}]'
              delay: '0'
              history: 7d
              description: 'The total number of FORMERR (Format error) responses per second.'
              preprocessing:
                -
                  type: JSONPATH
                  parameters:
                    - '$[''{#NAME}''].responses.formerr'
                -
                  type: CHANGE_PER_SECOND
                  parameters:
                    - ''
              master_item:
                key: nginx.resolvers
              tags:
                -
                  tag: component
                  value: resolver
                -
                  tag: resolver
                  value: '{#NAME}'
            -
              uuid: bf5a55d771724cfeaec90950f653b181
              name: 'Nginx: Resolver [{#NAME}]: Responses noerror, rate'
              type: DEPENDENT
              key: 'nginx.resolvers.responses.noerror.rate[{#NAME}]'
              delay: '0'
              history: 7d
              description: 'The total number of successful responses per second.'
              preprocessing:
                -
                  type: JSONPATH
                  parameters:
                    - '$[''{#NAME}''].responses.noerror'
                -
                  type: CHANGE_PER_SECOND
                  parameters:
                    - ''
              master_item:
                key: nginx.resolvers
              tags:
                -
                  tag: component
                  value: resolver
                -
                  tag: resolver
                  value: '{#NAME}'
            -
              uuid: 46cd31140a3342568c7d7ae0cdae6270
              name: 'Nginx: Resolver [{#NAME}]: Responses notimp, rate'
              type: DEPENDENT
              key: 'nginx.resolvers.responses.notimp.rate[{#NAME}]'
              delay: '0'
              history: 7d
              description: 'The total number of NOTIMP (Unimplemented) responses per second.'
              preprocessing:
                -
                  type: JSONPATH
                  parameters:
                    - '$[''{#NAME}''].responses.notimp'
                -
                  type: CHANGE_PER_SECOND
                  parameters:
                    - ''
              master_item:
                key: nginx.resolvers
              tags:
                -
                  tag: component
                  value: resolver
                -
                  tag: resolver
                  value: '{#NAME}'
            -
              uuid: b4e002955de844a69a755076993b0577
              name: 'Nginx: Resolver [{#NAME}]: Responses nxdomain, rate'
              type: DEPENDENT
              key: 'nginx.resolvers.responses.nxdomain.rate[{#NAME}]'
              delay: '0'
              history: 7d
              description: 'The total number of NXDOMAIN (Host not found) responses per second.'
              preprocessing:
                -
                  type: JSONPATH
                  parameters:
                    - '$[''{#NAME}''].responses.nxdomain'
                -
                  type: CHANGE_PER_SECOND
                  parameters:
                    - ''
              master_item:
                key: nginx.resolvers
              tags:
                -
                  tag: component
                  value: resolver
                -
                  tag: resolver
                  value: '{#NAME}'
            -
              uuid: 114f260fc9754e80927494dce51f9e46
              name: 'Nginx: Resolver [{#NAME}]: Responses refused, rate'
              type: DEPENDENT
              key: 'nginx.resolvers.responses.refused.rate[{#NAME}]'
              delay: '0'
              history: 7d
              description: 'The total number of REFUSED (Operation refused) responses per second.'
              preprocessing:
                -
                  type: JSONPATH
                  parameters:
                    - '$[''{#NAME}''].responses.refused'
                -
                  type: CHANGE_PER_SECOND
                  parameters:
                    - ''
              master_item:
                key: nginx.resolvers
              tags:
                -
                  tag: component
                  value: resolver
                -
                  tag: resolver
                  value: '{#NAME}'
            -
              uuid: 7b4f4f609807407e849525f9f99c0fcc
              name: 'Nginx: Resolver [{#NAME}]: Responses servfail, rate'
              type: DEPENDENT
              key: 'nginx.resolvers.responses.servfail.rate[{#NAME}]'
              delay: '0'
              history: 7d
              description: 'The total number of SERVFAIL (Server failure) responses per second.'
              preprocessing:
                -
                  type: JSONPATH
                  parameters:
                    - '$[''{#NAME}''].responses.servfail'
                -
                  type: CHANGE_PER_SECOND
                  parameters:
                    - ''
              master_item:
                key: nginx.resolvers
              tags:
                -
                  tag: component
                  value: resolver
                -
                  tag: resolver
                  value: '{#NAME}'
            -
              uuid: 28b11b8bfd6143ada94b041390281a2f
              name: 'Nginx: Resolver [{#NAME}]: Responses timedout, rate'
              type: DEPENDENT
              key: 'nginx.resolvers.responses.timedout.rate[{#NAME}]'
              delay: '0'
              history: 7d
              description: 'The total number of timed out requests per second.'
              preprocessing:
                -
                  type: JSONPATH
                  parameters:
                    - '$[''{#NAME}''].responses.timedout'
                -
                  type: CHANGE_PER_SECOND
                  parameters:
                    - ''
              master_item:
                key: nginx.resolvers
              tags:
                -
                  tag: component
                  value: resolver
                -
                  tag: resolver
                  value: '{#NAME}'
            -
              uuid: b68f19ad119941b58da491d2cd827277
              name: 'Nginx: Resolver [{#NAME}]: Responses unknown, rate'
              type: DEPENDENT
              key: 'nginx.resolvers.responses.unknown.rate[{#NAME}]'
              delay: '0'
              history: 7d
              description: 'The total number of requests completed with an unknown error per second.'
              preprocessing:
                -
                  type: JSONPATH
                  parameters:
                    - '$[''{#NAME}''].responses.unknown'
                -
                  type: CHANGE_PER_SECOND
                  parameters:
                    - ''
              master_item:
                key: nginx.resolvers
              tags:
                -
                  tag: component
                  value: resolver
                -
                  tag: resolver
                  value: '{#NAME}'
          graph_prototypes:
            -
              uuid: 7c91ca5b8477468fa19c56b621e0c32a
              name: 'Nginx: Resolver [{#NAME}]: Requests'
              graph_items:
                -
                  drawtype: GRADIENT_LINE
                  color: 1A7C11
                  item:
                    host: 'Nginx Plus by HTTP'
                    key: 'nginx.resolvers.requests.name.rate[{#NAME}]'
                -
                  sortorder: '1'
                  drawtype: GRADIENT_LINE
                  color: 2774A4
                  item:
                    host: 'Nginx Plus by HTTP'
                    key: 'nginx.resolvers.requests.srv.rate[{#NAME}]'
                -
                  sortorder: '2'
                  drawtype: GRADIENT_LINE
                  color: F63100
                  item:
                    host: 'Nginx Plus by HTTP'
                    key: 'nginx.resolvers.requests.addr.rate[{#NAME}]'
            -
              uuid: e3535ce974114e6188752937c1bdb2c7
              name: 'Nginx: Resolver [{#NAME}]: Responses'
              graph_items:
                -
                  drawtype: GRADIENT_LINE
                  color: 1A7C11
                  item:
                    host: 'Nginx Plus by HTTP'
                    key: 'nginx.resolvers.responses.noerror.rate[{#NAME}]'
                -
                  sortorder: '1'
                  drawtype: GRADIENT_LINE
                  color: 2774A4
                  item:
                    host: 'Nginx Plus by HTTP'
                    key: 'nginx.resolvers.responses.formerr.rate[{#NAME}]'
                -
                  sortorder: '2'
                  drawtype: GRADIENT_LINE
                  color: F63100
                  item:
                    host: 'Nginx Plus by HTTP'
                    key: 'nginx.resolvers.responses.servfail.rate[{#NAME}]'
                -
                  sortorder: '3'
                  drawtype: GRADIENT_LINE
                  color: A54F10
                  item:
                    host: 'Nginx Plus by HTTP'
                    key: 'nginx.resolvers.responses.nxdomain.rate[{#NAME}]'
                -
                  sortorder: '4'
                  drawtype: GRADIENT_LINE
                  color: FC6EA3
                  item:
                    host: 'Nginx Plus by HTTP'
                    key: 'nginx.resolvers.responses.notimp.rate[{#NAME}]'
                -
                  sortorder: '5'
                  drawtype: GRADIENT_LINE
                  color: 6C59DC
                  item:
                    host: 'Nginx Plus by HTTP'
                    key: 'nginx.resolvers.responses.refused.rate[{#NAME}]'
                -
                  sortorder: '6'
                  drawtype: GRADIENT_LINE
                  color: AC8C14
                  item:
                    host: 'Nginx Plus by HTTP'
                    key: 'nginx.resolvers.responses.timedout.rate[{#NAME}]'
                -
                  sortorder: '7'
                  drawtype: GRADIENT_LINE
                  color: 611F27
                  item:
                    host: 'Nginx Plus by HTTP'
                    key: 'nginx.resolvers.responses.unknown.rate[{#NAME}]'
          master_item:
            key: nginx.resolvers
          preprocessing:
            -
              type: JAVASCRIPT
              parameters:
                - |
                  var output = [];
                  
                  Object.keys(JSON.parse(value)).forEach(function (v) {
                      output.push({ '{#NAME}': v })
                  });
                  
                  return JSON.stringify(output);
            -
              type: DISCARD_UNCHANGED_HEARTBEAT
              parameters:
                - 30m
        -
          uuid: bdc6582408be488997720ef8a4d1108e
          name: 'Stream server zones discovery'
          type: DEPENDENT
          key: nginx.stream.server_zones.discovery
          delay: '0'
          filter:
            evaltype: AND
            conditions:
              -
                macro: '{#NAME}'
                value: '{$NGINX.LLD.FILTER.STREAM.ZONE.MATCHES}'
                formulaid: A
              -
                macro: '{#NAME}'
                value: '{$NGINX.LLD.FILTER.STREAM.ZONE.NOT_MATCHES}'
                operator: NOT_MATCHES_REGEX
                formulaid: B
          item_prototypes:
            -
              uuid: e321037e23ff484cb4dc89a8e187919c
              name: 'Nginx: Stream server zone [{#NAME}]: Connections, rate'
              type: DEPENDENT
              key: 'nginx.stream.server_zones.connections.rate[{#NAME}]'
              delay: '0'
              history: 7d
              description: 'The total number of connections accepted from clients per second.'
              preprocessing:
                -
                  type: JSONPATH
                  parameters:
                    - '$[''{#NAME}''].connections'
                -
                  type: CHANGE_PER_SECOND
                  parameters:
                    - ''
              master_item:
                key: nginx.stream.server_zones
              tags:
                -
                  tag: component
                  value: server_zones
                -
                  tag: zone
                  value: '{#NAME}'
            -
              uuid: c9e9d883123842d291c922d5bbcca8f3
              name: 'Nginx: Stream server zone [{#NAME}]: Discarded, rate'
              type: DEPENDENT
              key: 'nginx.stream.server_zones.discarded.rate[{#NAME}]'
              delay: '0'
              history: 7d
              description: 'The total number of connections completed without creating a session per second.'
              preprocessing:
                -
                  type: JSONPATH
                  parameters:
                    - '$[''{#NAME}''].discarded'
                -
                  type: CHANGE_PER_SECOND
                  parameters:
                    - ''
              master_item:
                key: nginx.stream.server_zones
              tags:
                -
                  tag: component
                  value: server_zones
                -
                  tag: zone
                  value: '{#NAME}'
            -
              uuid: f8d16f41fe9e4be685c28bb4acd2187f
              name: 'Nginx: Stream server zone [{#NAME}]: Processing'
              type: DEPENDENT
              key: 'nginx.stream.server_zones.processing[{#NAME}]'
              delay: '0'
              history: 7d
              description: 'The number of client connections that are currently being processed.'
              preprocessing:
                -
                  type: JSONPATH
                  parameters:
                    - '$[''{#NAME}''].processing'
              master_item:
                key: nginx.stream.server_zones
              tags:
                -
                  tag: component
                  value: server_zones
                -
                  tag: zone
                  value: '{#NAME}'
            -
              uuid: 47a9959627e3423e9739b55dac23edd2
              name: 'Nginx: Stream server zone [{#NAME}]: Received, rate'
              type: DEPENDENT
              key: 'nginx.stream.server_zones.received.rate[{#NAME}]'
              delay: '0'
              history: 7d
              description: 'The total number of bytes received from clients per second.'
              preprocessing:
                -
                  type: JSONPATH
                  parameters:
                    - '$[''{#NAME}''].received'
                -
                  type: CHANGE_PER_SECOND
                  parameters:
                    - ''
              master_item:
                key: nginx.stream.server_zones
              tags:
                -
                  tag: component
                  value: server_zones
                -
                  tag: zone
                  value: '{#NAME}'
            -
              uuid: 2aafb1ae6ce24f14a3494826d63cfce2
              name: 'Nginx: Stream server zone [{#NAME}]: Sent, rate'
              type: DEPENDENT
              key: 'nginx.stream.server_zones.sent.rate[{#NAME}]'
              delay: '0'
              history: 7d
              description: 'The total number of bytes sent to clients per second.'
              preprocessing:
                -
                  type: JSONPATH
                  parameters:
                    - '$[''{#NAME}''].sent'
                -
                  type: CHANGE_PER_SECOND
                  parameters:
                    - ''
              master_item:
                key: nginx.stream.server_zones
              tags:
                -
                  tag: component
                  value: server_zones
                -
                  tag: zone
                  value: '{#NAME}'
            -
              uuid: 7399335b883040c495b5cbfade3e182e
              name: 'Nginx: Stream server zone [{#NAME}]: Sessions 2xx, rate'
              type: DEPENDENT
              key: 'nginx.stream.server_zones.sessions.2xx.rate[{#NAME}]'
              delay: '0'
              history: 7d
              description: 'The total number of sessions completed with status codes “2xx” per second.'
              preprocessing:
                -
                  type: JSONPATH
                  parameters:
                    - '$[''{#NAME}''].sessions.2xx'
                -
                  type: CHANGE_PER_SECOND
                  parameters:
                    - ''
              master_item:
                key: nginx.stream.server_zones
              tags:
                -
                  tag: component
                  value: server_zones
                -
                  tag: zone
                  value: '{#NAME}'
            -
              uuid: 5e654682849748bea849db9ab73f7075
              name: 'Nginx: Stream server zone [{#NAME}]: Sessions 4xx, rate'
              type: DEPENDENT
              key: 'nginx.stream.server_zones.sessions.4xx.rate[{#NAME}]'
              delay: '0'
              history: 7d
              description: 'The total number of sessions completed with status codes “4xx” per second.'
              preprocessing:
                -
                  type: JSONPATH
                  parameters:
                    - '$[''{#NAME}''].sessions.4xx'
                -
                  type: CHANGE_PER_SECOND
                  parameters:
                    - ''
              master_item:
                key: nginx.stream.server_zones
              tags:
                -
                  tag: component
                  value: server_zones
                -
                  tag: zone
                  value: '{#NAME}'
            -
              uuid: 0cdc4545f6dc4a1e8f247291302824a4
              name: 'Nginx: Stream server zone [{#NAME}]: Sessions 5xx, rate'
              type: DEPENDENT
              key: 'nginx.stream.server_zones.sessions.5xx.rate[{#NAME}]'
              delay: '0'
              history: 7d
              description: 'The total number of sessions completed with status codes “5xx” per second.'
              preprocessing:
                -
                  type: JSONPATH
                  parameters:
                    - '$[''{#NAME}''].sessions.5xx'
                -
                  type: CHANGE_PER_SECOND
                  parameters:
                    - ''
              master_item:
                key: nginx.stream.server_zones
              tags:
                -
                  tag: component
                  value: server_zones
                -
                  tag: zone
                  value: '{#NAME}'
            -
              uuid: 30313c91655042b8948422c13fbdfca3
              name: 'Nginx: Stream server zone [{#NAME}]: Sessions total, rate'
              type: DEPENDENT
              key: 'nginx.stream.server_zones.sessions.total.rate[{#NAME}]'
              delay: '0'
              history: 7d
              description: 'The total number of completed client sessions per second.'
              preprocessing:
                -
                  type: JSONPATH
                  parameters:
                    - '$[''{#NAME}''].sessions.total'
                -
                  type: CHANGE_PER_SECOND
                  parameters:
                    - ''
              master_item:
                key: nginx.stream.server_zones
              tags:
                -
                  tag: component
                  value: server_zones
                -
                  tag: zone
                  value: '{#NAME}'
          graph_prototypes:
            -
              uuid: f833112506e941d791057925c58bd1d9
              name: 'Nginx: Stream server zone [{#NAME}]: Sessions'
              graph_items:
                -
                  drawtype: GRADIENT_LINE
                  color: 1A7C11
                  item:
                    host: 'Nginx Plus by HTTP'
                    key: 'nginx.stream.server_zones.sessions.2xx.rate[{#NAME}]'
                -
                  sortorder: '1'
                  drawtype: GRADIENT_LINE
                  color: 2774A4
                  item:
                    host: 'Nginx Plus by HTTP'
                    key: 'nginx.stream.server_zones.sessions.4xx.rate[{#NAME}]'
                -
                  sortorder: '2'
                  drawtype: GRADIENT_LINE
                  color: F63100
                  item:
                    host: 'Nginx Plus by HTTP'
                    key: 'nginx.stream.server_zones.sessions.5xx.rate[{#NAME}]'
          master_item:
            key: nginx.stream.server_zones
          preprocessing:
            -
              type: JAVASCRIPT
              parameters:
                - |
                  var output = [];
                  
                  Object.keys(JSON.parse(value)).forEach(function (v) {
                      output.push({ '{#NAME}': v })
                  });
                  
                  return JSON.stringify(output);
            -
              type: DISCARD_UNCHANGED_HEARTBEAT
              parameters:
                - 30m
        -
          uuid: 435f8bc40dd244aabb7daee4be7d54e5
          name: 'Stream upstream peers discovery'
          type: DEPENDENT
          key: nginx.stream.upstream.peers.discovery
          delay: '0'
          filter:
            evaltype: AND
            conditions:
              -
                macro: '{#UPSTREAM}'
                value: '{$NGINX.LLD.FILTER.STREAM.UPSTREAM.MATCHES}'
                formulaid: A
              -
                macro: '{#UPSTREAM}'
                value: '{$NGINX.LLD.FILTER.STREAM.UPSTREAM.NOT_MATCHES}'
                operator: NOT_MATCHES_REGEX
                formulaid: B
          item_prototypes:
            -
              uuid: 3337df557e734de8b019216c5c06fcea
              name: 'Nginx: Stream upstream [{#UPSTREAM}] peer [{#PEER}]: Active'
              type: DEPENDENT
              key: 'nginx.stream.upstream.peer.active[{#UPSTREAM},{#PEER}]'
              delay: '0'
              history: 7d
              description: 'The current number of connections.'
              preprocessing:
                -
                  type: JSONPATH
                  parameters:
                    - '$[''{#UPSTREAM}''].peers[?(@.server == ''{#PEER}'')].active.first()'
              master_item:
                key: nginx.stream.upstreams
              tags:
                -
                  tag: component
                  value: upstream
                -
                  tag: peer
                  value: '{#PEER}'
                -
                  tag: upstream
                  value: '{#UPSTREAM}'
            -
              uuid: 2ae319abd31b40b7a765c300e5dfa954
              name: 'Nginx: Stream upstream [{#UPSTREAM}] peer [{#PEER}]: Connections'
              type: DEPENDENT
              key: 'nginx.stream.upstream.peer.connections.rate[{#UPSTREAM},{#PEER}]'
              delay: '0'
              history: 7d
              description: 'The total number of client connections forwarded to this server.'
              preprocessing:
                -
                  type: JSONPATH
                  parameters:
                    - '$[''{#UPSTREAM}''].peers[?(@.server == ''{#PEER}'')].connections.first()'
              master_item:
                key: nginx.stream.upstreams
              tags:
                -
                  tag: component
                  value: upstream
                -
                  tag: peer
                  value: '{#PEER}'
                -
                  tag: upstream
                  value: '{#UPSTREAM}'
            -
              uuid: f98409ef166b47f3a70d46dffe233166
              name: 'Nginx: Stream upstream [{#UPSTREAM}] peer [{#PEER}]: Connect time'
              type: DEPENDENT
              key: 'nginx.stream.upstream.peer.connect_time.rate[{#UPSTREAM},{#PEER}]'
              delay: '0'
              history: 7d
              units: '!ms'
              description: 'The average time to connect to the upstream server.'
              preprocessing:
                -
                  type: JSONPATH
                  parameters:
                    - '$[''{#UPSTREAM}''].peers[?(@.server == ''{#PEER}'')].connect_time.first()'
                  error_handler: DISCARD_VALUE
              master_item:
                key: nginx.stream.upstreams
              tags:
                -
                  tag: component
                  value: upstream
                -
                  tag: peer
                  value: '{#PEER}'
                -
                  tag: upstream
                  value: '{#UPSTREAM}'
            -
              uuid: 0b1000ddc883422cb9fb3382a839c10a
              name: 'Nginx: Stream upstream [{#UPSTREAM}] peer [{#PEER}]: Fails, rate'
              type: DEPENDENT
              key: 'nginx.stream.upstream.peer.fails.rate[{#UPSTREAM},{#PEER}]'
              delay: '0'
              history: 7d
              description: 'The total number of unsuccessful attempts to communicate with the server per second.'
              preprocessing:
                -
                  type: JSONPATH
                  parameters:
                    - '$[''{#UPSTREAM}''].peers[?(@.server == ''{#PEER}'')].fails.first()'
                -
                  type: CHANGE_PER_SECOND
                  parameters:
                    - ''
              master_item:
                key: nginx.stream.upstreams
              tags:
                -
                  tag: component
                  value: upstream
                -
                  tag: peer
                  value: '{#PEER}'
                -
                  tag: upstream
                  value: '{#UPSTREAM}'
            -
              uuid: 23a02d1c0a63483fb1eb4914a7e48ecf
              name: 'Nginx: Stream upstream [{#UPSTREAM}] peer [{#PEER}]: First byte time'
              type: DEPENDENT
              key: 'nginx.stream.upstream.peer.first_byte_time.rate[{#UPSTREAM},{#PEER}]'
              delay: '0'
              history: 7d
              units: '!ms'
              description: 'The average time to receive the first byte of data.'
              preprocessing:
                -
                  type: JSONPATH
                  parameters:
                    - '$[''{#UPSTREAM}''].peers[?(@.server == ''{#PEER}'')].first_byte_time.first()'
                  error_handler: DISCARD_VALUE
              master_item:
                key: nginx.stream.upstreams
              tags:
                -
                  tag: component
                  value: upstream
                -
                  tag: peer
                  value: '{#PEER}'
                -
                  tag: upstream
                  value: '{#UPSTREAM}'
            -
              uuid: dac0196daad74fc385a336c7dbddbcfd
              name: 'Nginx: Stream upstream [{#UPSTREAM}] peer [{#PEER}]: Health checks, check'
              type: DEPENDENT
              key: 'nginx.stream.upstream.peer.health_checks.checks[{#UPSTREAM},{#PEER}]'
              delay: '0'
              history: 7d
              description: 'The total number of health check requests made.'
              preprocessing:
                -
                  type: JSONPATH
                  parameters:
                    - '$[''{#UPSTREAM}''].peers[?(@.server == ''{#PEER}'')].health_checks.checks.first()'
              master_item:
                key: nginx.stream.upstreams
              tags:
                -
                  tag: component
                  value: upstream
                -
                  tag: peer
                  value: '{#PEER}'
                -
                  tag: upstream
                  value: '{#UPSTREAM}'
            -
              uuid: af2a6991b432439cb4afb071974a05e7
              name: 'Nginx: Stream upstream [{#UPSTREAM}] peer [{#PEER}]: Health checks, fails'
              type: DEPENDENT
              key: 'nginx.stream.upstream.peer.health_checks.fails[{#UPSTREAM},{#PEER}]'
              delay: '0'
              history: 7d
              description: 'The number of failed health checks.'
              preprocessing:
                -
                  type: JSONPATH
                  parameters:
                    - '$[''{#UPSTREAM}''].peers[?(@.server == ''{#PEER}'')].health_checks.fails.first()'
              master_item:
                key: nginx.stream.upstreams
              tags:
                -
                  tag: component
                  value: upstream
                -
                  tag: peer
                  value: '{#PEER}'
                -
                  tag: upstream
                  value: '{#UPSTREAM}'
            -
              uuid: 089bbb9c602a4654a3d2c582c643745f
              name: 'Nginx: Stream upstream [{#UPSTREAM}] peer [{#PEER}]: Health checks, unhealthy'
              type: DEPENDENT
              key: 'nginx.stream.upstream.peer.health_checks.unhealthy[{#UPSTREAM},{#PEER}]'
              delay: '0'
              history: 7d
              description: 'How many times the server became unhealthy (state “unhealthy”).'
              preprocessing:
                -
                  type: JSONPATH
                  parameters:
                    - '$[''{#UPSTREAM}''].peers[?(@.server == ''{#PEER}'')].health_checks.unhealthy.first()'
              master_item:
                key: nginx.stream.upstreams
              tags:
                -
                  tag: component
                  value: upstream
                -
                  tag: peer
                  value: '{#PEER}'
                -
                  tag: upstream
                  value: '{#UPSTREAM}'
            -
              uuid: 12193b1723eb419a9bbcb235c7b45308
              name: 'Nginx: Stream upstream [{#UPSTREAM}] peer [{#PEER}]: Received, rate'
              type: DEPENDENT
              key: 'nginx.stream.upstream.peer.received.rate[{#UPSTREAM},{#PEER}]'
              delay: '0'
              history: 7d
              description: 'The total number of bytes received from this server per second.'
              preprocessing:
                -
                  type: JSONPATH
                  parameters:
                    - '$[''{#UPSTREAM}''].peers[?(@.server == ''{#PEER}'')].received.first()'
                -
                  type: CHANGE_PER_SECOND
                  parameters:
                    - ''
              master_item:
                key: nginx.stream.upstreams
              tags:
                -
                  tag: component
                  value: upstream
                -
                  tag: peer
                  value: '{#PEER}'
                -
                  tag: upstream
                  value: '{#UPSTREAM}'
            -
              uuid: bda851b725454395b59988f03c534b3b
              name: 'Nginx: Stream upstream [{#UPSTREAM}] peer [{#PEER}]: Response time'
              type: DEPENDENT
              key: 'nginx.stream.upstream.peer.response_time.rate[{#UPSTREAM},{#PEER}]'
              delay: '0'
              history: 7d
              units: '!ms'
              description: 'The average time to receive the last byte of data.'
              preprocessing:
                -
                  type: JSONPATH
                  parameters:
                    - '$[''{#UPSTREAM}''].peers[?(@.server == ''{#PEER}'')].response_time.first()'
                  error_handler: DISCARD_VALUE
              master_item:
                key: nginx.stream.upstreams
              tags:
                -
                  tag: component
                  value: upstream
                -
                  tag: peer
                  value: '{#PEER}'
                -
                  tag: upstream
                  value: '{#UPSTREAM}'
            -
              uuid: 6ae8685716cf487fa72534a76e4b286a
              name: 'Nginx: Stream upstream [{#UPSTREAM}] peer [{#PEER}]: Sent, rate'
              type: DEPENDENT
              key: 'nginx.stream.upstream.peer.sent.rate[{#UPSTREAM},{#PEER}]'
              delay: '0'
              history: 7d
              description: 'The total number of bytes sent to this server per second.'
              preprocessing:
                -
                  type: JSONPATH
                  parameters:
                    - '$[''{#UPSTREAM}''].peers[?(@.server == ''{#PEER}'')].sent.first()'
                -
                  type: CHANGE_PER_SECOND
                  parameters:
                    - ''
              master_item:
                key: nginx.stream.upstreams
              tags:
                -
                  tag: component
                  value: upstream
                -
                  tag: peer
                  value: '{#PEER}'
                -
                  tag: upstream
                  value: '{#UPSTREAM}'
            -
              uuid: ae7b6564244845518816fffc38bbf9aa
              name: 'Nginx: Stream upstream [{#UPSTREAM}] peer [{#PEER}]: State'
              type: DEPENDENT
              key: 'nginx.stream.upstream.peer.state[{#UPSTREAM},{#PEER}]'
              delay: '0'
              history: 7d
              trends: '0'
              value_type: CHAR
              description: 'Current state, which may be one of “up”, “draining”, “down”, “unavail”, “checking”, and “unhealthy”.'
              preprocessing:
                -
                  type: JSONPATH
                  parameters:
                    - '$[''{#UPSTREAM}''].peers[?(@.server == ''{#PEER}'')].state.first()'
                -
                  type: DISCARD_UNCHANGED_HEARTBEAT
                  parameters:
                    - 3h
              master_item:
                key: nginx.stream.upstreams
              tags:
                -
                  tag: component
                  value: upstream
                -
                  tag: peer
                  value: '{#PEER}'
                -
                  tag: upstream
                  value: '{#UPSTREAM}'
              trigger_prototypes:
                -
                  uuid: 20ef9b9e953246ef856dd46033595e52
                  expression: 'find(/Nginx Plus by HTTP/nginx.stream.upstream.peer.state[{#UPSTREAM},{#PEER}],,"like","up")=0 and find(/Nginx Plus by HTTP/nginx.stream.upstream.peer.state[{#UPSTREAM},{#PEER}],,"like","down")=0'
                  name: 'Nginx: Stream upstream server is not in UP or DOWN state.'
                  opdata: 'Current state: {ITEM.LASTVALUE1}'
                  priority: WARNING
                  tags:
                    -
                      tag: scope
                      value: availability
            -
              uuid: 732f0ea262454ab3a4cfeb09aea66b9b
              name: 'Nginx: Stream upstream [{#UPSTREAM}] peer [{#PEER}]: Unavail'
              type: DEPENDENT
              key: 'nginx.stream.upstream.peer.unavail.rate[{#UPSTREAM},{#PEER}]'
              delay: '0'
              history: 7d
              description: 'How many times the server became unavailable for client requests (state “unavail”) due to the number of unsuccessful attempts reaching the max_fails threshold.'
              preprocessing:
                -
                  type: JSONPATH
                  parameters:
                    - '$[''{#UPSTREAM}''].peers[?(@.server == ''{#PEER}'')].unavail.first()'
              master_item:
                key: nginx.stream.upstreams
              tags:
                -
                  tag: component
                  value: upstream
                -
                  tag: peer
                  value: '{#PEER}'
                -
                  tag: upstream
                  value: '{#UPSTREAM}'
          graph_prototypes:
            -
              uuid: abb23d681d0a461db00648b412b176c8
              name: 'Nginx: Stream upstream [{#UPSTREAM}] peer [{#PEER}]: Health checks'
              graph_items:
                -
                  drawtype: GRADIENT_LINE
                  color: 1A7C11
                  item:
                    host: 'Nginx Plus by HTTP'
                    key: 'nginx.stream.upstream.peer.health_checks.checks[{#UPSTREAM},{#PEER}]'
                -
                  sortorder: '1'
                  drawtype: GRADIENT_LINE
                  color: 2774A4
                  item:
                    host: 'Nginx Plus by HTTP'
                    key: 'nginx.stream.upstream.peer.health_checks.fails[{#UPSTREAM},{#PEER}]'
                -
                  sortorder: '2'
                  drawtype: GRADIENT_LINE
                  color: F63100
                  item:
                    host: 'Nginx Plus by HTTP'
                    key: 'nginx.stream.upstream.peer.health_checks.unhealthy[{#UPSTREAM},{#PEER}]'
          master_item:
            key: nginx.stream.upstreams
          preprocessing:
            -
              type: JAVASCRIPT
              parameters:
                - |
                  var input = JSON.parse(value),
                      output = [];
                  
                  Object.keys(input).forEach(function (upstream) {
                      input[upstream].peers.forEach(function (peer) {
                          output.push({ '{#UPSTREAM}': upstream, '{#PEER}': peer.server })
                      });
                  });
                  
                  return JSON.stringify(output);
            -
              type: DISCARD_UNCHANGED_HEARTBEAT
              parameters:
                - 30m
        -
          uuid: 8a8f9d8b47f84bd98a5315ae30944240
          name: 'Stream upstreams discovery'
          type: DEPENDENT
          key: nginx.stream.upstreams.discovery
          delay: '0'
          filter:
            evaltype: AND
            conditions:
              -
                macro: '{#NAME}'
                value: '{$NGINX.LLD.FILTER.STREAM.UPSTREAM.MATCHES}'
                formulaid: A
              -
                macro: '{#NAME}'
                value: '{$NGINX.LLD.FILTER.STREAM.UPSTREAM.NOT_MATCHES}'
                operator: NOT_MATCHES_REGEX
                formulaid: B
          item_prototypes:
            -
              uuid: 5537680fbc024713a077932cc55ef3a7
              name: 'Nginx: Stream upstream [{#NAME}]: Zombies'
              type: DEPENDENT
              key: 'nginx.stream.upstreams.zombies[{#NAME}]'
              delay: '0'
              history: 7d
              preprocessing:
                -
                  type: JSONPATH
                  parameters:
                    - '$[''{#NAME}''].zombies'
              master_item:
                key: nginx.stream.upstreams
              tags:
                -
                  tag: component
                  value: upstreams
                -
                  tag: upstream
                  value: '{#NAME}'
            -
              uuid: 8c273c10ece545a58e4d34f6d3812fe0
              name: 'Nginx: Stream upstream [{#NAME}]: Zone'
              type: DEPENDENT
              key: 'nginx.stream.upstreams.zone[{#NAME}]'
              delay: '0'
              history: 7d
              trends: '0'
              value_type: CHAR
              preprocessing:
                -
                  type: JSONPATH
                  parameters:
                    - '$[''{#NAME}''].zone'
                -
                  type: DISCARD_UNCHANGED_HEARTBEAT
                  parameters:
                    - 3h
              master_item:
                key: nginx.stream.upstreams
              tags:
                -
                  tag: component
                  value: upstreams
                -
                  tag: upstream
                  value: '{#NAME}'
          master_item:
            key: nginx.stream.upstreams
          preprocessing:
            -
              type: JAVASCRIPT
              parameters:
                - |
                  var output = [];
                  
                  Object.keys(JSON.parse(value)).forEach(function (v) {
                      output.push({ '{#NAME}': v })
                  });
                  
                  return JSON.stringify(output);
            -
              type: DISCARD_UNCHANGED_HEARTBEAT
              parameters:
                - 30m
      tags:
        -
          tag: class
          value: software
        -
          tag: target
          value: nginx
      macros:
        -
          macro: '{$NGINX.API.ENDPOINT}'
          description: 'NGINX Plus API URL in the format `<scheme>://<host>:<port>/<location>/`'
        -
          macro: '{$NGINX.DROP_RATE.MAX.WARN}'
          value: '1'
          description: 'The critical rate of the dropped connections for trigger expression.'
        -
          macro: '{$NGINX.HTTP.UPSTREAM.4XX.MAX.WARN}'
          value: '5'
          description: 'Maximum percentage of errors with status code 4xx (for trigger expression).'
        -
          macro: '{$NGINX.HTTP.UPSTREAM.5XX.MAX.WARN}'
          value: '5'
          description: 'Maximum percentage of errors with status code 4xx (for trigger expression).'
        -
          macro: '{$NGINX.LLD.FILTER.HTTP.LOCATION.ZONE.MATCHES}'
          value: '.*'
          description: 'Filter of discoverable HTTP location zones'
        -
          macro: '{$NGINX.LLD.FILTER.HTTP.LOCATION.ZONE.NOT_MATCHES}'
          value: CHANGE_IF_NEEDED
          description: 'Filter to exclude discovered HTTP location zones'
        -
          macro: '{$NGINX.LLD.FILTER.HTTP.UPSTREAM.MATCHES}'
          value: '.*'
          description: 'Filter of discoverable HTTP upstreams'
        -
          macro: '{$NGINX.LLD.FILTER.HTTP.UPSTREAM.NOT_MATCHES}'
          value: CHANGE_IF_NEEDED
          description: 'Filter to exclude discovered HTTP upstreams'
        -
          macro: '{$NGINX.LLD.FILTER.HTTP.ZONE.MATCHES}'
          value: '.*'
          description: 'Filter of discoverable HTTP server zones'
        -
          macro: '{$NGINX.LLD.FILTER.HTTP.ZONE.NOT_MATCHES}'
          value: CHANGE_IF_NEEDED
          description: 'Filter to exclude discovered HTTP server zones'
        -
          macro: '{$NGINX.LLD.FILTER.RESOLVER.MATCHES}'
          value: '.*'
          description: 'Filter of discoverable Resolvers'
        -
          macro: '{$NGINX.LLD.FILTER.RESOLVER.NOT_MATCHES}'
          value: CHANGE_IF_NEEDED
          description: 'Filter to exclude discovered Resolvers'
        -
          macro: '{$NGINX.LLD.FILTER.STREAM.UPSTREAM.MATCHES}'
          value: '.*'
          description: 'Filter of discoverable Stream upstreams'
        -
          macro: '{$NGINX.LLD.FILTER.STREAM.UPSTREAM.NOT_MATCHES}'
          value: CHANGE_IF_NEEDED
          description: 'Filter to exclude discovered Stream upstreams'
        -
          macro: '{$NGINX.LLD.FILTER.STREAM.ZONE.MATCHES}'
          value: '.*'
          description: 'Filter of discoverable Stream server zones'
        -
          macro: '{$NGINX.LLD.FILTER.STREAM.ZONE.NOT_MATCHES}'
          value: CHANGE_IF_NEEDED
          description: 'Filter to exclude discovered Stream server zones'
  graphs:
    -
      uuid: a8b239f2f21a471fa3ac6a10a0419e9c
      name: 'Nginx: Connections'
      graph_items:
        -
          drawtype: GRADIENT_LINE
          color: 1A7C11
          item:
            host: 'Nginx Plus by HTTP'
            key: nginx.connections.accepted.rate
        -
          sortorder: '1'
          drawtype: GRADIENT_LINE
          color: 2774A4
          item:
            host: 'Nginx Plus by HTTP'
            key: nginx.connections.dropped
        -
          sortorder: '2'
          drawtype: GRADIENT_LINE
          color: F63100
          item:
            host: 'Nginx Plus by HTTP'
            key: nginx.connections.active
        -
          sortorder: '3'
          drawtype: GRADIENT_LINE
          color: A54F10
          item:
            host: 'Nginx Plus by HTTP'
            key: nginx.connections.idle
    -
      uuid: 4be7153e244b4c28a53c527aa9fd5706
      name: 'Nginx: Requests'
      graph_items:
        -
          drawtype: GRADIENT_LINE
          color: 1A7C11
          item:
            host: 'Nginx Plus by HTTP'
            key: nginx.requests.total.rate
    -
      uuid: b1c647610c974bc8aad4fb55e1e3c8d3
      name: 'Nginx: SSL'
      graph_items:
        -
          drawtype: GRADIENT_LINE
          color: 1A7C11
          item:
            host: 'Nginx Plus by HTTP'
            key: nginx.ssl.handshakes.rate
        -
          sortorder: '1'
          drawtype: GRADIENT_LINE
          color: 2774A4
          item:
            host: 'Nginx Plus by HTTP'
            key: nginx.ssl.handshakes_failed.rate
        -
          sortorder: '2'
          drawtype: GRADIENT_LINE
          color: F63100
          item:
            host: 'Nginx Plus by HTTP'
            key: nginx.ssl.session_reuses.rate
    -
      uuid: b2da29d4951745db8a66a076eb99d0aa
      name: 'Nginx: Uptime'
      graph_items:
        -
          color: 1A7C11
          item:
            host: 'Nginx Plus by HTTP'
            key: nginx.info.uptime