From 031307fb6e61a874b7db763902bc9f528a2811ce Mon Sep 17 00:00:00 2001 From: lobanov_v Date: Wed, 23 Sep 2026 13:50:24 +0000 Subject: [PATCH] =?UTF-8?q?=D0=97=D0=B0=D0=B3=D1=80=D1=83=D0=B7=D0=B8?= =?UTF-8?q?=D1=82=D1=8C=20=D1=84=D0=B0=D0=B9=D0=BB=D1=8B=20=D0=B2=20=C2=AB?= =?UTF-8?q?/=C2=BB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- zbx_export_templates.json | 80 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 80 insertions(+) create mode 100644 zbx_export_templates.json diff --git a/zbx_export_templates.json b/zbx_export_templates.json new file mode 100644 index 0000000..aa921b3 --- /dev/null +++ b/zbx_export_templates.json @@ -0,0 +1,80 @@ +{ + "zabbix_export": { + "version": "7.4", + "template_groups": [ + { + "uuid": "7df96b18c230490a9a0a9e2307226338", + "name": "Templates" + } + ], + "templates": [ + { + "uuid": "3d9b1bbc54214dc0b1a86dc144481069", + "template": "Amnezia WG", + "name": "Amnezia WG", + "groups": [ + { + "name": "Templates" + } + ], + "discovery_rules": [ + { + "uuid": "20b0b70d714045c4a37bdbb61cab1da9", + "name": "AmneziaWG Peers Discovery", + "type": "ZABBIX_ACTIVE", + "key": "amnezia.discovery", + "item_prototypes": [ + { + "uuid": "a12755ab918f41f4bfd44244b89eff2d", + "name": "Peer {#PEER_IP} ({#PEER_KEY}) - Last Handshake Time", + "key": "amnezia.handshake[{#PEER_IP}]", + "units": "unixtime", + "tags": [ + { + "tag": "AmneziaWG" + } + ], + "trigger_prototypes": [ + { + "uuid": "9640b3b27c8240579e2161c26e64e2e6", + "expression": "(now() - last(/Amnezia WG/amnezia.handshake[{#PEER_IP}])) > 600 and last(/Amnezia WG/amnezia.handshake[{#PEER_IP}]) > 0", + "name": "Client IS Online" + } + ] + }, + { + "uuid": "1faeea3cbfad46f39163e4cb4a63a612", + "name": "Peer {#PEER_IP} ({#PEER_KEY}) - Traffic Received", + "type": "ZABBIX_ACTIVE", + "key": "amnezia.rx[{#PEER_IP}]", + "units": "B", + "tags": [ + { + "tag": "AmneziaWG" + } + ] + }, + { + "uuid": "91985553e12b44a09ed63eaaaa21759d", + "name": "Peer {#PEER_IP} ({#PEER_KEY}) - Traffic Sent", + "type": "ZABBIX_ACTIVE", + "key": "amnezia.tx[{#PEER_IP}]", + "units": "B", + "tags": [ + { + "tag": "AmneziaWG" + } + ] + } + ] + } + ], + "tags": [ + { + "tag": "AmneziaWG" + } + ] + } + ] + } +} \ No newline at end of file