forked from patricegautier/unifiZabbix
-
Notifications
You must be signed in to change notification settings - Fork 0
/
zbx_export_templates.yaml
6025 lines (6022 loc) · 211 KB
/
zbx_export_templates.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
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
zabbix_export:
version: '6.4'
template_groups:
-
uuid: 15155c95a3d048f4856272ae12fd42c5
name: Patrice
-
uuid: e211bc7037224ae698133ce470303670
name: Unifi
-
uuid: 0a316d3d60f64ef8aded36d48dd9d134
name: unifiZabbix
-
uuid: 959165cff290432bbfbea50b4b247b0b
name: 'Unifi Zabbix Export'
templates:
-
uuid: 3992b5de5504463d9538197893b1fdbc
template: 'SunMAX SolarPoint'
name: 'SunMAX SolarPoint'
templates:
-
name: 'Unsupported Item'
groups:
-
name: 'Unifi Zabbix Export'
items:
-
uuid: 304f50a34a7045dea1314f8317e25a7f
name: 'Battery Charge'
type: DEPENDENT
key: batteryCharge
delay: '0'
value_type: FLOAT
preprocessing:
-
type: JSONPATH
parameters:
- '$.result[1].results.batteries[0].charge'
master_item:
key: 'solarpointBattery.sh["-u", "{$SOLARPOINT_USERNAME}", "-p", "{$SOLARPOINT_PASSWORD}", {HOST.CONN}]'
tags:
-
tag: Application
value: Battery
triggers:
-
uuid: 779c1fdbf6d848988411e38c8f70cc3e
expression: 'last(/SunMAX SolarPoint/batteryCharge,#1)<2500'
name: 'Battery Charge is below 25%'
priority: WARNING
dependencies:
-
name: 'Battery Charge is below 50%'
expression: 'last(/SunMAX SolarPoint/batteryCharge,#1)<5000'
-
uuid: 6b2607bd0add48f4bcf5e8a6aee1a517
expression: 'last(/SunMAX SolarPoint/batteryCharge,#1)<5000'
name: 'Battery Charge is below 50%'
opdata: 'Battery charge is {ITEM.VALUE1} / 10000'
priority: INFO
manual_close: 'YES'
-
uuid: 91ff5c8032bd4589895de0596d34aa7b
name: 'Battery Voltage'
type: DEPENDENT
key: batteryVoltage
delay: '0'
value_type: FLOAT
units: V
preprocessing:
-
type: JSONPATH
parameters:
- '$.result[1].results.batteries[0].voltage'
-
type: MULTIPLIER
parameters:
- '0.001'
master_item:
key: 'solarpointBattery.sh["-u", "{$SOLARPOINT_USERNAME}", "-p", "{$SOLARPOINT_PASSWORD}", {HOST.CONN}]'
tags:
-
tag: Application
value: Battery
triggers:
-
uuid: 6ab05257f12a4e3b901a348edeba5817
expression: 'nodata(/SunMAX SolarPoint/batteryVoltage,{$UNIFI_ALERT_PERIOD})=1'
name: '{HOST.NAME} has not reported data in more than {$UNIFI_ALERT_PERIOD}'
priority: WARNING
-
uuid: 90941e741dfa4b7a847ce07a6560d6eb
name: 'Battery charge daily rolling average'
type: CALCULATED
key: battery_charge_rolling_average
value_type: FLOAT
params: 'avg(//batteryCharge,1d)'
-
uuid: 3ece83b6e20a483bbd40f760d16d3e22
name: 'Daily Average Net Power Consumption'
type: CALCULATED
key: daily_average_net_power_consumption
value_type: FLOAT
units: W
params: 'avg(//net_power_consumption,1d)'
description: 'Change in charge for the battery for the last day'
-
uuid: 477eeccdfa60493da62aa422b923d8a8
name: 'Raw Power Consumption Daily Average'
type: CALCULATED
key: daily_raw_power_consumption
value_type: FLOAT
units: W
params: 'avg(//raw_power_consumption,1d)'
tags:
-
tag: Application
value: Battery
-
uuid: 8c3ac7ccd317433ca8c67b3a81e5c42f
name: 'Monthly Average Net Power Consumption'
type: CALCULATED
key: monthly_average_net_power_consumption
value_type: FLOAT
units: W
params: 'avg(//net_power_consumption,30d)'
-
uuid: c0ea86e3665c4539b080a94d76d14396
name: 'Raw Power Consumption Monthly Average'
type: CALCULATED
key: monthly_raw_power_consumption
value_type: FLOAT
units: W
params: 'avg(//raw_power_consumption,30d)'
tags:
-
tag: Application
value: Battery
-
uuid: bfda151539714084bd37e8d04c3f544c
name: 'Net Power Consumption'
type: CALCULATED
key: net_power_consumption
value_type: FLOAT
units: W
params: 'last(//pvInputPower) - last(//powerOutput)- {$SOLARPOINT_CONSUMPTION}'
description: 'Net instantaneous power consumption - assumes the SolarPoint device and inefficiencies of the system consumes 2.233W'
tags:
-
tag: Application
value: Battery
-
uuid: 2ddbf78585f147b7b6e2dc637d5f4e5e
name: 'Power Output'
type: DEPENDENT
key: powerOutput
delay: '0'
value_type: FLOAT
units: W
preprocessing:
-
type: JSONPATH
parameters:
- '$.result[1].results.output.power'
-
type: MULTIPLIER
parameters:
- '0.001'
master_item:
key: 'solarpointBattery.sh["-u", "{$SOLARPOINT_USERNAME}", "-p", "{$SOLARPOINT_PASSWORD}", {HOST.CONN}]'
tags:
-
tag: Application
value: Battery
-
uuid: 403d912eff154cd7870b795d4c98c1ab
name: 'Power Input from Solar Array'
type: DEPENDENT
key: pvInputPower
delay: '0'
value_type: FLOAT
units: W
preprocessing:
-
type: JSONPATH
parameters:
- '$.result[1].results.pv.power'
-
type: MULTIPLIER
parameters:
- '0.001'
master_item:
key: 'solarpointBattery.sh["-u", "{$SOLARPOINT_USERNAME}", "-p", "{$SOLARPOINT_PASSWORD}", {HOST.CONN}]'
tags:
-
tag: Application
value: Battery
-
uuid: 143059833e454233a6837519ffede9af
name: 'Voltage from Solar Array'
type: DEPENDENT
key: pvInputVoltage
delay: '0'
units: V
preprocessing:
-
type: JSONPATH
parameters:
- '$.result[1].results.pv.voltage'
-
type: MULTIPLIER
parameters:
- '0.001'
master_item:
key: 'solarpointBattery.sh["-u", "{$SOLARPOINT_USERNAME}", "-p", "{$SOLARPOINT_PASSWORD}", {HOST.CONN}]'
tags:
-
tag: Application
value: Battery
-
uuid: 3b0444475dd74c6fb5f32c39a0996adf
name: 'Raw Power Consumption'
type: CALCULATED
key: raw_power_consumption
value_type: FLOAT
units: W
params: 'last(//pvInputPower) - last(//powerOutput)'
description: 'Instantaneous power consumption: PV Input - power output. Does not take the SolarPoint itself into account'
tags:
-
tag: Application
value: Battery
-
uuid: ad7ea49d3203477b96ee03c5984b8870
name: batteryJson
type: EXTERNAL
key: 'solarpointBattery.sh["-u", "{$SOLARPOINT_USERNAME}", "-p", "{$SOLARPOINT_PASSWORD}", {HOST.CONN}]'
history: '0'
trends: '0'
value_type: TEXT
tags:
-
tag: Application
value: Battery
-
uuid: 1e16a0bf7ee34ce18fa42567d690c6d7
name: 'Output Voltage'
type: DEPENDENT
key: voltageOutput
delay: '0'
value_type: FLOAT
units: V
preprocessing:
-
type: JSONPATH
parameters:
- '$.result[1].results.output.voltage'
-
type: MULTIPLIER
parameters:
- '0.001'
master_item:
key: 'solarpointBattery.sh["-u", "{$SOLARPOINT_USERNAME}", "-p", "{$SOLARPOINT_PASSWORD}", {HOST.CONN}]'
tags:
-
tag: Application
value: Battery
-
uuid: e09c367e26ff493a9afa1e26a554a32e
name: 'Weekly Average Power Consumption'
type: CALCULATED
key: weekly_average_power_consumption
value_type: FLOAT
units: W
params: 'avg(//net_power_consumption,7d)'
-
uuid: de6c4602b739426fafc8dcf5f2e85369
name: 'Raw Power Consumption Weekly Average'
type: CALCULATED
key: weekly_raw_power_consumption
value_type: FLOAT
units: W
params: 'avg(//raw_power_consumption,7d)'
tags:
-
tag: Application
value: Battery
discovery_rules:
-
uuid: 64453202177f47eda7843e639609837d
name: 'Power Port Discovery'
type: DEPENDENT
key: power_port_discovery
delay: '0'
item_prototypes:
-
uuid: 5ad15ebf54fc45b2a292c3d9e3ea6acd
name: '{#PORT_NAME} Port Enabled'
type: DEPENDENT
key: 'port__enabled_[{#PORT_NAME}]'
delay: '0'
trends: '0'
value_type: CHAR
preprocessing:
-
type: JSONPATH
parameters:
- '$.result[1].results.output.pins[ ?(@.name==''{#PORT_NAME}'') ].enabled.first()'
master_item:
key: 'solarpointBattery.sh["-u", "{$SOLARPOINT_USERNAME}", "-p", "{$SOLARPOINT_PASSWORD}", {HOST.CONN}]'
tags:
-
tag: Application
value: Battery
-
uuid: 8f39f76a05ff47aa8e6c8ef55bcebff1
name: '{#PORT_NAME} Port Low Voltage'
type: DEPENDENT
key: 'port__low_voltage_[{#PORT_NAME}]'
delay: '0'
trends: '0'
value_type: CHAR
preprocessing:
-
type: JSONPATH
parameters:
- '$.result[1].results.output.pins[ ?(@.name==''{#PORT_NAME}'') ].low_voltage.first()'
master_item:
key: 'solarpointBattery.sh["-u", "{$SOLARPOINT_USERNAME}", "-p", "{$SOLARPOINT_PASSWORD}", {HOST.CONN}]'
tags:
-
tag: Application
value: Battery
trigger_prototypes:
-
uuid: 4528ebb39b1345889b79a2241b3945dd
expression: 'last(/SunMAX SolarPoint/port__low_voltage_[{#PORT_NAME}],#1)="true"'
name: '{#PORT_NAME} Port is in low voltage outage'
priority: WARNING
manual_close: 'YES'
-
uuid: 6e35c0a2518944448151e35b58e9e930
name: '{#PORT_NAME} Port On'
type: DEPENDENT
key: 'port__on_[{#PORT_NAME}]'
delay: '0'
trends: '0'
value_type: CHAR
preprocessing:
-
type: JSONPATH
parameters:
- '$.result[1].results.output.pins[ ?(@.name==''{#PORT_NAME}'') ].on.first()'
master_item:
key: 'solarpointBattery.sh["-u", "{$SOLARPOINT_USERNAME}", "-p", "{$SOLARPOINT_PASSWORD}", {HOST.CONN}]'
tags:
-
tag: Application
value: Battery
-
uuid: 2c30b45b07b04756a32e8ccfcf4bacc5
name: '{#PORT_NAME} Port Suspended'
type: DEPENDENT
key: 'port__suspended_[{#PORT_NAME}]'
delay: '0'
trends: '0'
value_type: CHAR
preprocessing:
-
type: JSONPATH
parameters:
- '$.result[1].results.output.pins[ ?(@.name==''{#PORT_NAME}'') ].suspended.first()'
master_item:
key: 'solarpointBattery.sh["-u", "{$SOLARPOINT_USERNAME}", "-p", "{$SOLARPOINT_PASSWORD}", {HOST.CONN}]'
tags:
-
tag: Application
value: Battery
trigger_prototypes:
-
uuid: 7bd866530508400d99031acd429303f9
expression: 'last(/SunMAX SolarPoint/port__suspended_[{#PORT_NAME}],#1)="true"'
name: '{#PORT_NAME} Port is Suspended'
priority: AVERAGE
master_item:
key: 'solarpointBattery.sh["-u", "{$SOLARPOINT_USERNAME}", "-p", "{$SOLARPOINT_PASSWORD}", {HOST.CONN}]'
lld_macro_paths:
-
lld_macro: '{#PORT_NAME}'
path: $.name
preprocessing:
-
type: CHECK_JSON_ERROR
parameters:
- $.mcaDumpError
-
type: JSONPATH
parameters:
- '$.result[1].results.output.pins'
macros:
-
macro: '{$SOLARPOINT_CONSUMPTION}'
value: '3.29'
description: 'how much the device itself consumes'
-
uuid: 0a98ef31467349b58d955569f2efc963
template: 'UBNT Airmax'
name: 'UBNT Airmax'
groups:
-
name: Patrice
-
name: unifiZabbix
-
name: 'Unifi Zabbix Export'
items:
-
uuid: 98f32cb2fb8449a89eb7cf0396995032
name: airTime
type: DEPENDENT
key: airTime
delay: '0'
value_type: FLOAT
units: '%'
preprocessing:
-
type: REGEX
parameters:
- 'airTime=(.*)'
- \1
master_item:
key: 'ssh.run[mca-status]'
tags:
-
tag: Application
value: Radio
triggers:
-
uuid: e4abdaf9196b4fae98d3de636ac86573
expression: 'nodata(/UBNT Airmax/airTime,{$UNIFI_ALERT_PERIOD})=1'
name: '{HOST.NAME} is not reporting statistics'
priority: WARNING
manual_close: 'YES'
dependencies:
-
name: '{HOST.NAME} SSH is not available'
expression: 'nodata(/Unifi SSH Host/load_avg_1mn_uptime,{$UNIFI_ALERT_PERIOD})=1'
-
uuid: bb3c7aa6a2ad426e9eadd007eeff6452
name: 'AirTime Smooth'
type: CALCULATED
key: airTimeSmooth
value_type: FLOAT
units: '%'
params: 'avg(//airTime,{$UNIFI_SMOOTHING_PERIOD})'
tags:
-
tag: Application
value: Radio
-
uuid: a4cccd4157544aa8a81230333ad1449c
name: CPU
type: DEPENDENT
key: cpuUsage
delay: '0'
status: DISABLED
value_type: FLOAT
preprocessing:
-
type: REGEX
parameters:
- 'cpuUsage=(.*)'
- \1
master_item:
key: 'ssh.run[mca-status]'
tags:
-
tag: Application
value: Host
-
uuid: ad7da803e4d94e2b81d1f77b0d2b9950
name: loadavg
type: DEPENDENT
key: loadavg
delay: '0'
status: DISABLED
value_type: FLOAT
preprocessing:
-
type: REGEX
parameters:
- 'loadavg=(.*)'
- \1
master_item:
key: 'ssh.run[mca-status]'
tags:
-
tag: Application
value: Host
-
uuid: 2bc9a4f3da314707a94150cfe3963051
name: noise
type: DEPENDENT
key: noise
delay: '0'
value_type: FLOAT
units: db
preprocessing:
-
type: REGEX
parameters:
- 'noise=(.*)'
- \1
master_item:
key: 'ssh.run[mca-status]'
tags:
-
tag: Application
value: Radio
-
uuid: 8fd7fbcd72594be7ac5077369f233cdb
name: 'Noise Smooth'
type: CALCULATED
key: noiseSmooth
value_type: FLOAT
units: dB
params: 'avg(//noise,{$UNIFI_SMOOTHING_PERIOD})'
tags:
-
tag: Application
value: Radio
-
uuid: f5f349c1a3e549bebff177381fedff9f
name: signal
type: DEPENDENT
key: signal
delay: '0'
value_type: FLOAT
units: db
preprocessing:
-
type: REGEX
parameters:
- 'signal=(.*)'
- \1
master_item:
key: 'ssh.run[mca-status]'
tags:
-
tag: Application
value: Radio
-
uuid: 2d04562fa0774125beef8043875a63ab
name: 'Signal Smooth'
type: CALCULATED
key: signalSmooth
value_type: FLOAT
units: dB
params: 'avg(//signal,{$UNIFI_SMOOTHING_PERIOD})'
tags:
-
tag: Application
value: Radio
-
uuid: 5fee14bc3d6447fbb7a56c75fecfa907
name: mca-status
type: SSH
key: 'ssh.run[mca-status]'
delay: '{$UNIFI_CHECK_FREQUENCY}'
history: '0'
trends: '0'
value_type: TEXT
params: /bin/mca-status
authtype: PUBLIC_KEY
username: '{$UNIFI_USER}'
publickey: '{$UNIFI_PUB_KEY}'
privatekey: '{$UNIFI_PRIV_KEY}'
-
uuid: b0b1603f6ce447a0a77551d8ba293fe8
name: wlanDownlinkCapacity
type: DEPENDENT
key: wlanDownlinkCapacity
delay: '0'
units: bps
preprocessing:
-
type: REGEX
parameters:
- 'wlanDownlinkCapacity=(.*)'
- \1
-
type: MULTIPLIER
parameters:
- '1000'
master_item:
key: 'ssh.run[mca-status]'
tags:
-
tag: Application
value: Radio
-
uuid: 141c618d52af4523810a2053dfc2e07e
name: 'WAN Downlink Capacity Smooth'
type: CALCULATED
key: wlanDownlinkCapacitySmooth
value_type: FLOAT
units: bps
params: 'avg(//wlanDownlinkCapacity,{$UNIFI_SMOOTHING_PERIOD})'
tags:
-
tag: Application
value: Radio
-
uuid: c878f4a3a9d14e4290f07c1b9fa1bd86
name: wlanRxBandwidth
type: DEPENDENT
key: wlanRxBandwidth
delay: '0'
units: bps
preprocessing:
-
type: REGEX
parameters:
- 'wlanRxBytes=(.*)'
- \1
-
type: CHANGE_PER_SECOND
parameters:
- ''
-
type: MULTIPLIER
parameters:
- '8'
master_item:
key: 'ssh.run[mca-status]'
tags:
-
tag: Application
value: Radio
-
uuid: 982b5677b12f49bdb0d5be89c4090fa2
name: 'WAN Reception Bandwidth Smooth'
type: CALCULATED
key: wlanRxBandwidthSmooth
value_type: FLOAT
units: bps
params: 'avg(//wlanRxBandwidth,{$UNIFI_SMOOTHING_PERIOD})'
tags:
-
tag: Application
value: Radio
-
uuid: 35b3f48548f04173a347f5696ed67512
name: wlanRxErrors
type: DEPENDENT
key: wlanRxErrors
delay: '0'
preprocessing:
-
type: REGEX
parameters:
- 'wlanRxErrors=(.*)'
- \1
-
type: CHANGE_PER_SECOND
parameters:
- ''
master_item:
key: 'ssh.run[mca-status]'
tags:
-
tag: Application
value: Radio
-
uuid: 52a83afd3e694a789073da60506066f7
name: wlanTxBandwidth
type: DEPENDENT
key: wlanTxBandwidth
delay: '0'
units: bps
preprocessing:
-
type: REGEX
parameters:
- 'wlanTxBytes=(.*)'
- \1
-
type: CHANGE_PER_SECOND
parameters:
- ''
-
type: MULTIPLIER
parameters:
- '8'
master_item:
key: 'ssh.run[mca-status]'
tags:
-
tag: Application
value: Radio
-
uuid: eb50d36ade534adda015c481c883d6ea
name: 'WAN Transmission Bandwidth Smooth'
type: CALCULATED
key: wlanTxBandwidthSmooth
value_type: FLOAT
units: bps
params: 'avg(//wlanTxBandwidth,{$UNIFI_SMOOTHING_PERIOD})'
tags:
-
tag: Application
value: Radio
-
uuid: 37cd1176cf2c46b39e37d3074f80140a
name: wlanTxErrors
type: DEPENDENT
key: wlanTxErrors
delay: '0'
preprocessing:
-
type: REGEX
parameters:
- 'wlanTxErrors=(.*)'
- \1
-
type: CHANGE_PER_SECOND
parameters:
- ''
master_item:
key: 'ssh.run[mca-status]'
tags:
-
tag: Application
value: Radio
-
uuid: 1ee6f64675294e7abe57c8754a9392b3
name: wlanUplinkCapacity
type: DEPENDENT
key: wlanUplinkCapacity
delay: '0'
units: bps
preprocessing:
-
type: REGEX
parameters:
- 'wlanUplinkCapacity=(.*)'
- \1
-
type: MULTIPLIER
parameters:
- '1000'
master_item:
key: 'ssh.run[mca-status]'
tags:
-
tag: Application
value: Radio
-
uuid: 82b243484217404e94c3ef38f5243af9
name: 'WAN Uplink Capacity Smooth'
type: CALCULATED
key: wlanUplinkCapacitySmooth
value_type: FLOAT
units: bps
params: 'avg(//wlanUplinkCapacity,{$UNIFI_SMOOTHING_PERIOD})'
tags:
-
tag: Application
value: Radio
-
uuid: a7de22ea581d4acf9dfc99de63c10f9d
template: 'Unifi AP'
name: 'Unifi AP'
description: |
uses mca-dump via ssh to get AP info.
Assign this template to all APs in your site
templates:
-
name: 'Unsupported Item'
groups:
-
name: Patrice
-
name: Unifi
-
name: unifiZabbix
-
name: 'Unifi Zabbix Export'
items:
-
uuid: e63c657c75794479a6ce8a5ef1c676e9
name: 'Client Count'
type: DEPENDENT
key: client_count
delay: '0'
units: clients
preprocessing:
-
type: CHECK_JSON_ERROR
parameters:
- $.mcaDumpError
error_handler: DISCARD_VALUE
-
type: JSONPATH
parameters:
- '$.vap_table.[*].clientCount.sum()'
master_item:
key: 'mca-dump-short.sh["-d","{HOST.CONN}", "-P", "{$UNIFI_SSH_PORT}", "-u", "{$UNIFI_USER}", "-i", "{$UNIFI_SSH_PRIV_KEY_PATH}", "-t", "AP", "-p", "{$UNIFI_SSHPASS_PASSWORD_PATH}", "-o", "{$UNIFI_CHECK_TIMEOUT}","-b"]'
tags:
-
tag: Application
value: Radio
-
uuid: c0502d070bf24f8481781eed09b02e36
name: 'CPU Utilization'
type: DEPENDENT
key: cpu
delay: '0'
value_type: FLOAT
units: '%'
preprocessing:
-
type: CHECK_JSON_ERROR
parameters:
- $.mcaDumpError
error_handler: CUSTOM_ERROR
error_handler_params: mcaDumpError
-
type: JSONPATH
parameters:
- '$.[''system-stats''].cpu'
master_item:
key: 'mca-dump-short.sh["-d","{HOST.CONN}", "-P", "{$UNIFI_SSH_PORT}", "-u", "{$UNIFI_USER}", "-i", "{$UNIFI_SSH_PRIV_KEY_PATH}", "-t", "AP", "-p", "{$UNIFI_SSHPASS_PASSWORD_PATH}", "-o", "{$UNIFI_CHECK_TIMEOUT}","-b"]'
tags:
-
tag: Application
value: Host
-
uuid: 3dcc138706314816bb2ddc17c564ac70
name: Hostname
type: DEPENDENT
key: hostname
delay: '0'
trends: '0'
value_type: TEXT
inventory_link: NAME
preprocessing:
-
type: CHECK_JSON_ERROR
parameters:
- $.mcaDumpError
error_handler: CUSTOM_ERROR
error_handler_params: mcaDumpError
-
type: JSONPATH
parameters:
- $.hostname
master_item:
key: 'mca-dump-short.sh["-d","{HOST.CONN}", "-P", "{$UNIFI_SSH_PORT}", "-u", "{$UNIFI_USER}", "-i", "{$UNIFI_SSH_PRIV_KEY_PATH}", "-t", "AP", "-p", "{$UNIFI_SSHPASS_PASSWORD_PATH}", "-o", "{$UNIFI_CHECK_TIMEOUT}","-b"]'
tags:
-
tag: Application
value: Host
-
uuid: aa79c0aace6b4f8bbb7276dd7ccb8055
name: ping
type: SIMPLE
key: 'icmpping[]'
triggers:
-
uuid: 7a5a38bb6cbd477d9c5205eae71f5869
expression: 'max(/Unifi AP/icmpping[],{$UNIFI_ALERT_PERIOD})=0'
name: '{HOST.NAME} is not pingable'
priority: WARNING
manual_close: 'YES'
-
uuid: 7c68c34cc8f64eba86c7ae2ef30efd7f
name: 'Load Average 1mn'
type: DEPENDENT
key: load_avg_1mn
delay: '0'
value_type: FLOAT
preprocessing:
-
type: CHECK_JSON_ERROR
parameters:
- $.mcaDumpError
error_handler: DISCARD_VALUE
-
type: JSONPATH
parameters:
- '$.[''sys_stats''].loadavg_1'
master_item:
key: 'mca-dump-short.sh["-d","{HOST.CONN}", "-P", "{$UNIFI_SSH_PORT}", "-u", "{$UNIFI_USER}", "-i", "{$UNIFI_SSH_PRIV_KEY_PATH}", "-t", "AP", "-p", "{$UNIFI_SSHPASS_PASSWORD_PATH}", "-o", "{$UNIFI_CHECK_TIMEOUT}","-b"]'
tags:
-
tag: Application
value: Host
-
uuid: c534c56cf9e84b2ca63d52aa42691915
name: 'Load Average 5mn'
type: DEPENDENT
key: load_avg_5mn
delay: '0'
value_type: FLOAT
preprocessing:
-
type: CHECK_JSON_ERROR
parameters:
- $.mcaDumpError
error_handler: DISCARD_VALUE
-
type: JSONPATH
parameters:
- '$.[''sys_stats''].loadavg_5'
master_item:
key: 'mca-dump-short.sh["-d","{HOST.CONN}", "-P", "{$UNIFI_SSH_PORT}", "-u", "{$UNIFI_USER}", "-i", "{$UNIFI_SSH_PRIV_KEY_PATH}", "-t", "AP", "-p", "{$UNIFI_SSHPASS_PASSWORD_PATH}", "-o", "{$UNIFI_CHECK_TIMEOUT}","-b"]'
tags:
-
tag: Application
value: Host
-
uuid: 0201b2ca3b084aa08c6151fb01a31a1c
name: 'Load Average 15mn'
type: DEPENDENT
key: load_avg_15mn
delay: '0'
value_type: FLOAT
preprocessing:
-
type: CHECK_JSON_ERROR
parameters:
- $.mcaDumpError
error_handler: DISCARD_VALUE
-
type: JSONPATH
parameters:
- '$.[''sys_stats''].loadavg_15'
master_item:
key: 'mca-dump-short.sh["-d","{HOST.CONN}", "-P", "{$UNIFI_SSH_PORT}", "-u", "{$UNIFI_USER}", "-i", "{$UNIFI_SSH_PRIV_KEY_PATH}", "-t", "AP", "-p", "{$UNIFI_SSHPASS_PASSWORD_PATH}", "-o", "{$UNIFI_CHECK_TIMEOUT}","-b"]'
tags:
-
tag: Application
value: Host
-
uuid: d5b6cf216295410d8702946b303d9579
name: mca-dump
type: EXTERNAL
key: 'mca-dump-short.sh["-d","{HOST.CONN}", "-P", "{$UNIFI_SSH_PORT}", "-u", "{$UNIFI_USER}", "-i", "{$UNIFI_SSH_PRIV_KEY_PATH}", "-t", "AP", "-p", "{$UNIFI_SSHPASS_PASSWORD_PATH}", "-o", "{$UNIFI_CHECK_TIMEOUT}","-b"]'
delay: '{$UNIFI_CHECK_FREQUENCY}'
history: '0'
trends: '0'
value_type: TEXT
preprocessing:
-
type: CHECK_JSON_ERROR
parameters:
- $.mcaDumpError
-
uuid: f07faffa28cc416483cf089bb94ec20a
name: 'Memory Utilization'
type: CALCULATED
key: memory
value_type: FLOAT
units: '%'
params: '100* last(//mem_used) / last(//mem_total)'
tags:
-
tag: Application
value: Host
-
uuid: f49d35e7e8ec43299f27b8f4b24c042a
name: 'Total Memory'
type: DEPENDENT
key: mem_total
delay: '0'
units: bytes
preprocessing:
-
type: CHECK_JSON_ERROR
parameters:
- $.mcaDumpError
error_handler: CUSTOM_ERROR
error_handler_params: mcaDumpError
-
type: JSONPATH
parameters:
- $.sys_stats.mem_total
master_item:
key: 'mca-dump-short.sh["-d","{HOST.CONN}", "-P", "{$UNIFI_SSH_PORT}", "-u", "{$UNIFI_USER}", "-i", "{$UNIFI_SSH_PRIV_KEY_PATH}", "-t", "AP", "-p", "{$UNIFI_SSHPASS_PASSWORD_PATH}", "-o", "{$UNIFI_CHECK_TIMEOUT}","-b"]'
tags:
-
tag: Application
value: Host
-
uuid: 67da102d9a6d4145bc7f7888d2c06e16
name: 'Memory Used'
type: DEPENDENT