-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathzbx_export_templates.yaml
8366 lines (8363 loc) · 286 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: '7.0'
template_groups:
- uuid: 2d74333e7c9d46ee9fd27559f11a7d0e
name: BA/Generic
- uuid: 8fdb1680986b48c781ac1ea2a485a917
name: BA/HTTP
- uuid: ca9da747aeb34dbcbaacd78655243f3e
name: BA/Macros
- uuid: 3fdb37c563464c49b24b75703e0038ed
name: BA/MIBs
- uuid: 709a337c872146989712a383cb393fa8
name: BA/ONVIF
- uuid: d323af8072864defab6d6e380742fb4d
name: BA/Procedures
- uuid: b384f4b048b0408a9adfeae61f5574ae
name: BA/Profiles
- uuid: 83b7b6180c974b1680cca7fa1fbac757
name: BA/Profiles/Cameras
- uuid: a9ae9cbb57864537879e36c074d112ca
name: BA/Profiles/Networking
- uuid: 2128cf518279432187a98490d555a270
name: BA/Profiles/Servers
- uuid: 08afccc1647440e2bdf5025bd5f4b3e0
name: BA/SSH
templates:
- uuid: 1096884d9c9340b095f2b3473a20a7f5
template: 'BA - Generic - ICMP'
name: 'BA - Generic - ICMP'
groups:
- name: BA/Generic
items:
- uuid: 925ec895069249bca0ec0472a970d21a
name: 'ICMP Loss'
type: SIMPLE
key: 'icmppingloss[{HOST.HOST},10,50,1000,500]'
history: 7d
value_type: FLOAT
units: '%'
tags:
- tag: ICMP
- tag: Type
value: Loss
triggers:
- uuid: 7e3ebb73a3e4415a8f69c2ddb2d40edb
expression: 'avg(/BA - Generic - ICMP/icmppingloss[{HOST.HOST},10,50,1000,500],#3)>={$ICMP_HIGH_LOSS_WARN}'
name: 'ICMP Loss >= {$ICMP_HIGH_LOSS_WARN}%'
priority: WARNING
dependencies:
- name: 'Device offline'
expression: 'last(/BA - Generic - ICMP/icmpping[{HOST.HOST}])=0'
tags:
- tag: ICMP
- uuid: 8b397b5e4de74806b3d4814da8ca7497
name: 'ICMP Latency'
type: SIMPLE
key: 'icmppingsec[{HOST.HOST}]'
history: 7d
value_type: FLOAT
units: ms
preprocessing:
- type: MULTIPLIER
parameters:
- '1000'
tags:
- tag: ICMP
- tag: Type
value: Latency
triggers:
- uuid: 0b6fa791e1cc4993bd779488cc08fe64
expression: 'avg(/BA - Generic - ICMP/icmppingsec[{HOST.HOST}],#3)>={$ICMP_HIGH_LATENCY_WARN}'
name: 'ICMP Latency >= {$ICMP_HIGH_LATENCY_WARN}'
priority: INFO
dependencies:
- name: 'Device offline'
expression: 'last(/BA - Generic - ICMP/icmpping[{HOST.HOST}])=0'
tags:
- tag: ICMP
- uuid: 157c0a57578f4b6fa626c497c413b7ff
name: 'ICMP Ping'
type: SIMPLE
key: 'icmpping[{HOST.HOST}]'
delay: 10s
history: 7d
valuemap:
name: 'Ping Status'
tags:
- tag: ICMP
- tag: Type
value: Status
triggers:
- uuid: 77f9ed9ba5d44b938fd34d222cd5c502
expression: 'last(/BA - Generic - ICMP/icmpping[{HOST.HOST}])=0'
name: 'Device offline'
priority: HIGH
tags:
- tag: ICMP
tags:
- tag: Type
value: Generic
dashboards:
- uuid: fd7f3696289d4db0a96b6e8a9b22bd76
name: 'ICMP Statistics'
pages:
- widgets:
- type: item
width: '12'
fields:
- type: ITEM
name: itemid.0
value:
host: 'BA - Generic - ICMP'
key: 'icmpping[{HOST.HOST}]'
- type: INTEGER
name: show.0
value: '2'
- type: INTEGER
name: show.1
value: '3'
- type: INTEGER
name: time_v_pos
value: '2'
- type: INTEGER
name: units_bold
value: '0'
- type: INTEGER
name: units_show
value: '0'
- type: INTEGER
name: value_v_pos
value: '0'
- type: clock
'y': '2'
width: '12'
height: '5'
- type: gauge
x: '12'
width: '13'
height: '7'
fields:
- type: ITEM
name: itemid.0
value:
host: 'BA - Generic - ICMP'
key: 'icmppingsec[{HOST.HOST}]'
- type: STRING
name: max
value: '100'
- type: STRING
name: min
value: '0'
- type: INTEGER
name: rf_rate
value: '10'
- type: INTEGER
name: show.0
value: '2'
- type: INTEGER
name: show.1
value: '3'
- type: INTEGER
name: show.2
value: '4'
- type: INTEGER
name: show.3
value: '5'
- type: graph
x: '25'
width: '47'
height: '7'
fields:
- type: GRAPH
name: graphid.0
value:
host: 'BA - Generic - ICMP'
name: 'ICMP Statistics'
- type: STRING
name: reference
value: AAAAA
valuemaps:
- uuid: 4e0b1b29cccb413ea3dbe1730a188450
name: 'Ping Status'
mappings:
- value: '0'
newvalue: Down
- value: '1'
newvalue: Up
- uuid: f4d0ecadd0e647d3bf034ea2af2cf2b9
template: 'BA - HTTP - Axis'
name: 'BA - HTTP - Axis'
groups:
- name: BA/HTTP
items:
- uuid: d2a61ecc1d0f40c2b51e92acc2321e0d
name: 'Device Firmware Version'
type: DEPENDENT
key: camera.firmware.version
delay: '0'
history: 7d
value_type: CHAR
trends: '0'
inventory_link: OS
preprocessing:
- type: REGEX
parameters:
- 'root.Properties.Firmware.Version="(.*)"'
- \1
- type: DISCARD_UNCHANGED_HEARTBEAT
parameters:
- 1d
master_item:
key: camera.parameters
tags:
- tag: Type
value: Firmware
- uuid: b55cd1f3182b449c95525eaf00cac1c8
name: 'Device Model'
type: DEPENDENT
key: camera.model
delay: '0'
history: 7d
value_type: CHAR
trends: '0'
inventory_link: MODEL
preprocessing:
- type: REGEX
parameters:
- 'root.Brand.ProdNbr="(.*)"'
- \1
- type: DISCARD_UNCHANGED_HEARTBEAT
parameters:
- 1d
master_item:
key: camera.parameters
tags:
- tag: Type
value: Model
- uuid: d9a3aac2a16745529f93a65b78f0c274
name: 'Device Name'
type: DEPENDENT
key: camera.name
delay: '0'
history: 7d
value_type: CHAR
trends: '0'
inventory_link: NAME
preprocessing:
- type: REGEX
parameters:
- 'root.ImageSource.I0.Name="(.*)"'
- \1
- type: DISCARD_UNCHANGED_HEARTBEAT
parameters:
- 1d
master_item:
key: camera.parameters
tags:
- tag: Type
value: Name
- uuid: 95ddd29e014c4505b55c8fb1cd604c0b
name: 'Device MAC'
type: DEPENDENT
key: camera.net.mac
delay: '0'
history: 7d
value_type: CHAR
trends: '0'
inventory_link: MACADDRESS_A
preprocessing:
- type: REGEX
parameters:
- 'root.Network.eth0.MACAddress="(.*)"'
- \1
- type: DISCARD_UNCHANGED_HEARTBEAT
parameters:
- 1d
master_item:
key: camera.parameters
tags:
- tag: Type
value: MAC
- uuid: ec385938d1354e08876f86565f5d7ccf
name: 'Device Parameters'
type: HTTP_AGENT
key: camera.parameters
delay: 15m
history: 1h
value_type: TEXT
trends: '0'
authtype: DIGEST
username: '{$AXIS_CAM_USERNAME}'
password: '{$AXIS_CAM_PASSWORD}'
timeout: 30s
url: 'http://{HOST.IP}/axis-cgi/admin/paramlist.cgi'
tags:
- tag: Type
value: HTTP
triggers:
- uuid: d3e13913f3cc4d7381e6be130c70ca79
expression: 'nodata(/BA - HTTP - Axis/camera.parameters,60m)=1'
name: 'Could not retrieve device parameters via HTTP'
priority: WARNING
description: 'Please check the password on the device.'
dependencies:
- name: 'Device offline'
expression: 'last(/BA - Generic - ICMP/icmpping[{HOST.HOST}])=0'
- name: 'ICMP Loss >= {$ICMP_HIGH_LOSS_WARN}%'
expression: 'avg(/BA - Generic - ICMP/icmppingloss[{HOST.HOST},10,50,1000,500],#3)>={$ICMP_HIGH_LOSS_WARN}'
tags:
- tag: Type
value: HTTP
- uuid: ab21bc5de5734e6e8aa6f20a243fa019
name: 'Device Sensor'
type: DEPENDENT
key: camera.sensor
delay: '0'
history: 7d
value_type: CHAR
trends: '0'
inventory_link: TYPE
preprocessing:
- type: REGEX
parameters:
- 'root.Image.I0.Appearance.Resolution="(.*)"'
- \1
- type: DISCARD_UNCHANGED_HEARTBEAT
parameters:
- 1d
master_item:
key: camera.parameters
tags:
- tag: Type
value: Sensor
- uuid: 1e7e44b7fcb34b32abd25100f9748166
name: 'Device Serial'
type: DEPENDENT
key: camera.serial
delay: '0'
history: 7d
value_type: CHAR
trends: '0'
inventory_link: SERIALNO_A
preprocessing:
- type: REGEX
parameters:
- 'root.Properties.System.SerialNumber="(.*)"'
- \1
- type: DISCARD_UNCHANGED_HEARTBEAT
parameters:
- 1d
master_item:
key: camera.parameters
tags:
- tag: Type
value: Serial
tags:
- tag: Type
value: HTTP
- uuid: 71a9ea72563b48cb961485c969d43129
template: 'BA - HTTP - Center Click NTP'
name: 'BA - HTTP - Center Click NTP'
groups:
- name: BA/HTTP
items:
- uuid: d3e23244553f45d685704a494db315cf
name: 'Center Click - CPU Usage'
type: DEPENDENT
key: cc.cpu
delay: '0'
history: 7d
value_type: FLOAT
units: '%'
preprocessing:
- type: JSONPATH
parameters:
- $.cpu.used
master_item:
key: centerclick.json
tags:
- tag: Type
value: CPU
- uuid: fbed91825cc84f93801184e6727c122a
name: 'Center Click - Jitter'
type: DEPENDENT
key: cc.jitter
delay: '0'
history: 7d
value_type: FLOAT
units: ms
preprocessing:
- type: JSONPATH
parameters:
- $.ntp.sys_jitter
master_item:
key: centerclick.json
tags:
- tag: Type
value: Jitter
- uuid: 78f82cd1af2045bbb7fcea02f63a0557
name: 'Center Click - Termperature'
type: DEPENDENT
key: cc.temp
delay: '0'
history: 7d
value_type: FLOAT
units: f
preprocessing:
- type: JSONPATH
parameters:
- $.temp.soc
master_item:
key: centerclick.json
tags:
- tag: Type
value: Temperature
- uuid: 7d1f983cfd1045b28228c95b1f146d90
name: 'Center Click JSON'
type: HTTP_AGENT
key: centerclick.json
history: '0'
value_type: TEXT
trends: '0'
url: 'http://{HOST.HOST}/json'
tags:
- tag: Type
value: JSON
- uuid: 684e7bee8d4245a7ae0fdaf70b1d37a4
name: 'GPS - Satellites Seen'
type: DEPENDENT
key: gps.satellites
delay: '0'
history: 7d
preprocessing:
- type: JSONPATH
parameters:
- $.gps.sat_seen
master_item:
key: centerclick.json
tags:
- tag: Type
value: Satellites
- uuid: 2578c493b7ea438fba81a643b2415eb2
name: 'GPS - Signal Noise Ratio'
type: DEPENDENT
key: gps.snr
delay: '0'
history: 7d
value_type: FLOAT
units: dB
preprocessing:
- type: JSONPATH
parameters:
- $.gps.ss_ave
master_item:
key: centerclick.json
tags:
- tag: Type
value: SNR
- uuid: d205628662924b51a0ff8fea8b770f18
name: 'NTP - Clients'
type: DEPENDENT
key: ntp.clients
delay: '0'
history: 7d
preprocessing:
- type: JSONPATH
parameters:
- $.ntp.client.count
master_item:
key: centerclick.json
tags:
- tag: Type
value: Clients
- uuid: 3df81ee6c914495abc4fde161bac9d6c
name: 'NTP - Jitter'
type: DEPENDENT
key: ntp.jitter
delay: '0'
history: 7d
value_type: FLOAT
units: ms
preprocessing:
- type: JSONPATH
parameters:
- $.ntp.jitter
master_item:
key: centerclick.json
tags:
- tag: Type
value: Jitter
- uuid: 448d42867e524b7a925cd061b544a64a
name: 'NTP - Recieved PPS'
type: DEPENDENT
key: ntp.rx
delay: '0'
history: 7d
units: pps
preprocessing:
- type: JSONPATH
parameters:
- $.ntp.rxpkt
- type: MULTIPLIER
parameters:
- '0.016666666666667'
master_item:
key: centerclick.json
tags:
- tag: Type
value: PPS
- uuid: 1390b9485e1a4c47bf3fcea753270aec
name: 'NTP - Transmitted PPS'
type: DEPENDENT
key: ntp.tx
delay: '0'
history: 7d
units: pps
preprocessing:
- type: JSONPATH
parameters:
- $.ntp.txpkt
- type: MULTIPLIER
parameters:
- '0.016666666666667'
master_item:
key: centerclick.json
tags:
- tag: Type
value: PPS
tags:
- tag: Type
value: HTTP
dashboards:
- uuid: 19ad995e75ec482a8ee86ca1b3a66a18
name: 'Center Click NTP'
pages:
- widgets:
- type: graph
width: '36'
height: '4'
fields:
- type: GRAPH
name: graphid.0
value:
host: 'BA - HTTP - Center Click NTP'
name: Jitter
- type: STRING
name: reference
value: MFZKQ
- type: graph
'y': '4'
width: '36'
height: '4'
fields:
- type: ITEM
name: itemid.0
value:
host: 'BA - HTTP - Center Click NTP'
key: cc.temp
- type: STRING
name: reference
value: JCNFN
- type: INTEGER
name: source_type
value: '1'
- type: graph
'y': '8'
width: '36'
height: '4'
fields:
- type: GRAPH
name: graphid.0
value:
host: 'BA - HTTP - Center Click NTP'
name: PPS
- type: STRING
name: reference
value: YRTTY
- type: graph
x: '36'
width: '36'
height: '4'
fields:
- type: GRAPH
name: graphid.0
value:
host: 'BA - HTTP - Center Click NTP'
name: GPS
- type: STRING
name: reference
value: HBTJK
- type: graph
x: '36'
'y': '4'
width: '36'
height: '4'
fields:
- type: ITEM
name: itemid.0
value:
host: 'BA - HTTP - Center Click NTP'
key: ntp.clients
- type: STRING
name: reference
value: PJNMG
- type: INTEGER
name: source_type
value: '1'
- type: graph
x: '36'
'y': '8'
width: '36'
height: '4'
fields:
- type: ITEM
name: itemid.0
value:
host: 'BA - HTTP - Center Click NTP'
key: cc.cpu
- type: STRING
name: reference
value: RWBLD
- type: INTEGER
name: source_type
value: '1'
- uuid: d6073d64cf844db6ae1574b5a3fcfbf6
template: 'BA - HTTP - EarthCam'
name: 'BA - HTTP - EarthCam'
groups:
- name: BA/HTTP
items:
- uuid: a0502a12ba5249dfb01a03e798118a9e
name: 'Stream Status'
type: HTTP_AGENT
key: stream.status
history: 7d
valuemap:
name: Status
preprocessing:
- type: CHECK_NOT_SUPPORTED
parameters:
- '-1'
error_handler: CUSTOM_VALUE
error_handler_params: '0'
- type: JAVASCRIPT
parameters:
- |
if (value == 0) return 0;
return 1;
url: 'https://video1.earthcam.com/myearthcam/{$ID}.flv/playlist.m3u8'
tags:
- tag: Stream
- tag: Type
value: Status
triggers:
- uuid: 32243d54e53742548d132243527eeef7
expression: 'last(/BA - HTTP - EarthCam/stream.status)=0'
name: 'EarthCam Stream Offline'
priority: WARNING
tags:
- tag: Type
value: HTTP
valuemaps:
- uuid: 56dbdc982f0745749f5f42d68b37a747
name: Status
mappings:
- value: '0'
newvalue: Offline
- value: '1'
newvalue: Online
- uuid: c515f9575dd94457ae7446052b3b9525
template: 'BA - HTTP - GitHub - Repository'
name: 'BA - HTTP - GitHub - Repository'
groups:
- name: BA/HTTP
items:
- uuid: 867dab5e3e384f45a0849e22b54c9e35
name: 'GitHub Releases'
type: HTTP_AGENT
key: github.releases
delay: 15m
history: '0'
value_type: TEXT
trends: '0'
timeout: 30s
url: 'https://api.github.com/repos/{$REPOSITORY}/releases'
headers:
- name: User-Agent
value: 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/123.0.0.0 Safari/537.36 Edg/123.0.0.0'
output_format: JSON
tags:
- tag: GitHub
- tag: Type
value: JSON
- uuid: 74aec8f2d7a7454bb52b18f465074216
name: 'GitHub Releases Total Daily Downloads'
type: CALCULATED
key: github.releases.totaldailydownloads
delay: 1d
history: 7d
params: last(//github.releases.totaldownloads)
preprocessing:
- type: SIMPLE_CHANGE
parameters:
- ''
tags:
- tag: GitHub
value: Releases
- tag: Type
value: 'Daily Downloads'
- uuid: e876fb492b964ceb9ad340198e3b0038
name: 'GitHub Releases Total Downloads'
type: DEPENDENT
key: github.releases.totaldownloads
delay: '0'
history: 7d
preprocessing:
- type: JSONPATH
parameters:
- $.body..assets..download_count.sum()
master_item:
key: github.releases
tags:
- tag: GitHub
value: Releases
- tag: Type
value: Downloads
discovery_rules:
- uuid: 6496ef3671134bb2b0ac97a2f6123087
name: 'GitHub Releases Discovery'
type: DEPENDENT
key: github.releases.discovery
delay: '0'
lifetime: 30d
enabled_lifetime_type: DISABLE_NEVER
item_prototypes:
- uuid: b57ce14845f7460eb478da720a59f347
name: 'Github Release ({#TAG}) Downloads'
type: DEPENDENT
key: 'github.release.downloads[{#ID}]'
delay: '0'
history: 7d
preprocessing:
- type: JSONPATH
parameters:
- '$.body[?(@.tag_name == "{#TAG}")].assets.*.download_count.sum()'
master_item:
key: github.releases
tags:
- tag: GitHub
- tag: Release
value: '{#TAG}'
- tag: Type
value: Downloads
- uuid: f1bab56020924136bea73e33b924b163
name: 'Github Release ({#TAG}) JSON'
type: DEPENDENT
key: 'github.release.json[{#ID}]'
delay: '0'
history: 30d
value_type: TEXT
trends: '0'
preprocessing:
- type: JSONPATH
parameters:
- '$.body[?(@.tag_name == "{#TAG}")]'
- type: DISCARD_UNCHANGED
parameters:
- ''
master_item:
key: github.releases
tags:
- tag: GitHub
- tag: Release
value: '{#TAG}'
- tag: Type
value: JSON
master_item:
key: github.releases
lld_macro_paths:
- lld_macro: '{#ID}'
path: $.id
- lld_macro: '{#TAG}'
path: $.tag_name
preprocessing:
- type: JSONPATH
parameters:
- '$.body.*'
tags:
- tag: Type
value: HTTP
- uuid: 96d88b30329a4c36b6d42b341295e558
template: 'BA - HTTP - Veeam'
name: 'BA - HTTP - Veeam'
groups:
- name: BA/HTTP
items:
- uuid: 9ae4e0df868a44f88026330676fc4974
name: 'Veeam Jobs Discovery'
type: SCRIPT
key: veeam.jobs
delay: 5m
history: '0'
value_type: TEXT
trends: '0'
params: |
var obj = JSON.parse(value);
var url = obj.url;
var api = obj.api;
var user = "{$VEEAM_USER}";
var pass = "{$VEEAM_PASS}";
var request = new HttpRequest();
request.addHeader("x-api-version: 1.1-rev0");
request.addHeader("accept: application/json");
var token = JSON.parse(request.post(url + "oauth2/token", "grant_type=password&username=" + user + "&password=" + pass)).access_token;
request.addHeader("Authorization: Bearer " + token);
return request.get(url + api);
timeout: 3s
parameters:
- name: api
value: v1/jobs/states
- name: url
value: 'https://{HOST.HOST}:9419/api/'
tags:
- tag: Type
value: Discovery
- tag: Veeam
- uuid: 831492be81dd4b849cd77348b3edd618
name: 'Veeam Version'
type: SCRIPT
key: veeam.version
delay: 12h
history: 30d
value_type: TEXT
trends: '0'
params: |
var obj = JSON.parse(value);
var url = obj.url;
var api = obj.api;
var user = "{$VEEAM_USER}";
var pass = "{$VEEAM_PASS}";
var request = new HttpRequest();
request.addHeader("x-api-version: 1.1-rev0");
request.addHeader("accept: application/json");
var token = JSON.parse(request.post(url + "oauth2/token", "grant_type=password&username=" + user + "&password=" + pass)).access_token;
request.addHeader("Authorization: Bearer " + token);
return request.get(url + api);
preprocessing:
- type: JSONPATH
parameters:
- $.buildVersion
timeout: 3s
parameters:
- name: api
value: v1/serverInfo
- name: url
value: 'https://{HOST.HOST}:9419/api/'
tags:
- tag: Type
value: Version
- tag: Veeam
discovery_rules:
- uuid: 5b80dbbc2f564807be78cbc079cdcdd8
name: 'Veeam Jobs Discovery'
type: DEPENDENT
key: veeam.jobs.discovery
delay: '0'
lifetime: 30d
enabled_lifetime_type: DISABLE_NEVER
item_prototypes:
- uuid: 1fc5becbc7b345f99d43676d3d62faf1
name: 'Veeam Job ({#NAME}) Last Result'
type: DEPENDENT
key: 'veeam.jobs.lastresult[{#NAME}]'
delay: '0'
history: 90d
value_type: CHAR
trends: '0'
preprocessing:
- type: JSONPATH
parameters:
- '$.data.[?(@.name=="{#NAME}")].lastResult.first()'
master_item:
key: veeam.jobs
tags:
- tag: Job
value: '{#NAME}'
- tag: Type
value: Status
- tag: Veeam
trigger_prototypes:
- uuid: 5737da01e3e34a1ebeb05a2dac82d549
expression: 'last(/BA - HTTP - Veeam/veeam.jobs.lastresult[{#NAME}])<>"Success" and last(/BA - HTTP - Veeam/veeam.jobs.lastresult[{#NAME}])<>"None"'
name: 'Veeam Job ({#NAME}) Last Result != Success'
priority: HIGH
description: 'The last run of this job was not successful.'
tags:
- tag: Job
value: '{#NAME}'
- tag: Type
value: Status
- tag: Veeam
- uuid: 77ef2a4ddcfe4854895283fe5ce21e10
name: 'Veeam Job ({#NAME}) Last Run'
type: DEPENDENT
key: 'veeam.jobs.lastrun[{#NAME}]'
delay: '0'
history: 7d
value_type: CHAR
trends: '0'
preprocessing:
- type: JSONPATH
parameters:
- '$.data.[?(@.name=="{#NAME}")].lastRun.first()'
master_item:
key: veeam.jobs
tags:
- tag: Job
value: '{#NAME}'
- tag: Type
value: Date
- tag: Veeam
- uuid: 827c77eb38914b65b311f3c3c859a390
name: 'Veeam Job ({#NAME}) Next Run'
type: DEPENDENT
key: 'veeam.jobs.nextrun[{#NAME}]'
delay: '0'
history: 7d
value_type: CHAR
trends: '0'
preprocessing:
- type: JSONPATH
parameters:
- '$.data.[?(@.name=="{#NAME}")].nextRun.first()'
master_item:
key: veeam.jobs
tags:
- tag: Job
value: '{#NAME}'
- tag: Type
value: Date
- tag: Veeam
- uuid: feda128672764e18b1a627a0fafb4e73
name: 'Veeam Job ({#NAME}) Status'
type: DEPENDENT
key: 'veeam.jobs.status[{#NAME}]'
delay: '0'
history: 90d
value_type: CHAR
trends: '0'
preprocessing:
- type: JSONPATH
parameters:
- '$.data.[?(@.name=="{#NAME}")].status.first()'
master_item:
key: veeam.jobs
tags:
- tag: Job
value: '{#NAME}'
- tag: Type
value: Status
- tag: Veeam
- uuid: 4b20b0db8a4d40928192d18ab673daec
name: 'Veeam Job ({#NAME}) Type'
type: DEPENDENT
key: 'veeam.jobs.type[{#NAME}]'
delay: '0'
history: 7d
value_type: CHAR
trends: '0'
preprocessing:
- type: JSONPATH
parameters:
- '$.data.[?(@.name=="{#NAME}")].type.first()'
master_item:
key: veeam.jobs
tags:
- tag: Job
value: '{#NAME}'
- tag: Type
value: Type
- tag: Veeam
- uuid: 752c067975ca4b639b1becbbcd31a5e8
name: 'Veeam Job ({#NAME}) Workload'
type: DEPENDENT
key: 'veeam.jobs.workload[{#NAME}]'
delay: '0'
history: 7d
value_type: CHAR
trends: '0'
preprocessing:
- type: JSONPATH
parameters:
- '$.data.[?(@.name=="{#NAME}")].workload.first()'
master_item:
key: veeam.jobs
tags:
- tag: Job
value: '{#NAME}'
- tag: Type
value: Type