Added templates in yaml format for Zabbix 6

This commit is contained in:
Riccardo Bicelli 2023-02-26 14:27:51 +01:00
parent d8f5a1532e
commit 810cf8c7e5
6 changed files with 2267 additions and 2493 deletions

View File

@ -83,6 +83,7 @@ This is useful when monitoring services which could stay stopped on CARP Backup
For running speedtests on WAN interfaces you have to install the speedtest package.
**NOTE**: When used in multiple gateways scenario, speedtest results are OK only with default gateway. This is a known behavior that must be fixed upstream.
From **Diagnostics/Command Prompt** input this commands:

1775
zabbix6/pfsense_active.yaml Normal file

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,247 @@
zabbix_export:
version: '6.0'
date: '2023-02-26T13:19:29Z'
groups:
-
uuid: 4918b88734c54bd094cff7585b5d71fc
name: 'Templates/Network Devices'
templates:
-
uuid: 7b956a3e6aa1464781b38a854872a1c6
template: 'Template pfSense Active IPsec'
name: 'pfSense Active: IPsec'
description: |
Extension for pfSense Active Template.
Monitor IPsec VPN.
Requires pfsense_zbx.php installed to pfSense Box.
Version 1.0.2
https://github.com/rbicelli/pfsense-zabbix-template
groups:
-
name: 'Templates/Network Devices'
discovery_rules:
-
uuid: e7526169245d49a6aa6afbcacaa02b18
name: 'IPsec Phase 1 Discovery'
type: ZABBIX_ACTIVE
key: 'pfsense.discovery[ipsec_ph1]'
delay: 1200s
description: 'Discovery of IPsec Phase 1'
item_prototypes:
-
uuid: 04d6b1d0a32949bfa96cf503f60b6c53
name: 'IPsec Tunnel {#IKEID} {#NAME} Tunnel Enabled'
type: ZABBIX_ACTIVE
key: 'pfsense.value[ipsec_ph1,{#IKEID},disabled]'
delay: 120s
description: 'IPsec Phase 1 Tunnel Mode'
valuemap:
name: 'pfSense IPsec Enabled'
tags:
-
tag: Application
value: IPsec
-
uuid: 810da7b475df4d738c702f373771092e
name: 'IPsec Tunnel {#IKEID} {#NAME} IKE Type'
type: ZABBIX_ACTIVE
key: 'pfsense.value[ipsec_ph1,{#IKEID},iketype]'
delay: 600s
description: 'IPsec Phase 1 IKE Type'
valuemap:
name: 'pfSense IPsec IKE Type'
tags:
-
tag: Application
value: IPsec
-
uuid: 47b54bc4a08e464b839bcfd5106ec5a9
name: 'IPsec Tunnel {#IKEID} {#NAME} Tunnel Mode'
type: ZABBIX_ACTIVE
key: 'pfsense.value[ipsec_ph1,{#IKEID},mode]'
delay: 600s
description: 'IPsec Phase 1 Tunnel Mode'
valuemap:
name: 'pfSense IPsec Tunnel Mode'
tags:
-
tag: Application
value: IPsec
-
uuid: a404f5d20988445d8777758b95b02076
name: 'IPsec Tunnel {#IKEID} {#NAME} Protocol'
type: ZABBIX_ACTIVE
key: 'pfsense.value[ipsec_ph1,{#IKEID},protocol]'
delay: 600s
description: 'IPsec Phase 1 Protocol'
valuemap:
name: 'pfSense IPsec Protocol'
tags:
-
tag: Application
value: IPsec
-
uuid: ce0d2464361e41018fdd1831db1ec4b3
name: 'IPsec Tunnel {#IKEID} {#NAME} Remote Gateway'
type: ZABBIX_ACTIVE
key: 'pfsense.value[ipsec_ph1,{#IKEID},remote-gateway]'
delay: 600s
trends: '0'
value_type: TEXT
description: 'IPsec Phase 1 Remote Gateway'
tags:
-
tag: Application
value: IPsec
-
uuid: 34d7e2395d8b43ec9c0267664be27881
name: 'IPsec Tunnel {#IKEID} {#NAME} Phase 1 Status'
type: ZABBIX_ACTIVE
key: 'pfsense.value[ipsec_ph1,{#IKEID},status]'
delay: 60s
description: 'IPsec Phase 1 Tunnel Mode'
valuemap:
name: 'pfSense IPsec Phase 1 Status'
tags:
-
tag: Application
value: IPsec
trigger_prototypes:
-
uuid: d675635e19aa4cd7a7202e983cbe4ce6
expression: 'last(/Template pfSense Active IPsec/pfsense.value[ipsec_ph1,{#IKEID},disabled])=0 and last(/Template pfSense Active IPsec/pfsense.value[ipsec_ph1,{#IKEID},status])<>1 and last(/Template pfSense Active IPsec/pfsense.value[ipsec_ph1,{#IKEID},status])<10'
name: 'IPsec Tunnel {#IKEID} ({#NAME}) Not Connected'
priority: HIGH
description: 'IPsec Phase 1 is not connected.'
-
uuid: fa934077cae64a049e68e2130e5e1e84
name: 'IPsec Phase 2 Discovery'
type: ZABBIX_ACTIVE
key: 'pfsense.discovery[ipsec_ph2]'
delay: 1200s
description: 'Discovery of IPsec Phase 2'
item_prototypes:
-
uuid: 1857b124103c4f08b5ed962259fcbe06
name: 'IPsec Tunnel {#IKEID}.{#REQID} {#NAME} Phase 2 Enabled'
type: ZABBIX_ACTIVE
key: 'pfsense.value[ipsec_ph2,{#UNIQID},disabled]'
delay: 120s
description: 'IPsec Tunnel Phase 2 Protocol'
valuemap:
name: 'pfSense IPsec Enabled'
tags:
-
tag: Application
value: IPsec
-
uuid: 3ac7d6d1be034a3db8afad18791b43aa
name: 'IPsec Tunnel {#IKEID}.{#REQID} {#NAME} Phase 2 Life Time'
type: ZABBIX_ACTIVE
key: 'pfsense.value[ipsec_ph2,{#UNIQID},lifetime]'
delay: 600s
units: s
description: 'IPsec Tunnel Phase 2 Life Time'
tags:
-
tag: Application
value: IPsec
-
uuid: dfbae3fe2bcd45f3ac38c6ea0df5d250
name: 'IPsec Tunnel {#IKEID}.{#REQID} {#NAME} Phase 2 Mode'
type: ZABBIX_ACTIVE
key: 'pfsense.value[ipsec_ph2,{#UNIQID},mode]'
delay: 600s
description: 'IPsec Tunnel Phase 2 Mode'
tags:
-
tag: Application
value: IPsec
-
uuid: 794565a046ff447ca8ad3a7597ee52f5
name: 'IPsec Tunnel {#IKEID}.{#REQID} {#NAME} Phase 2 Protocol'
type: ZABBIX_ACTIVE
key: 'pfsense.value[ipsec_ph2,{#UNIQID},protocol]'
delay: 600s
description: 'IPsec Tunnel Phase 2 Protocol'
valuemap:
name: 'pfSense IPsec Phase 2 Protocol'
tags:
-
tag: Application
value: IPsec
valuemaps:
-
uuid: fb66440f3f454b36ae5c5d7b015529a1
name: 'pfSense IPsec Enabled'
mappings:
-
value: '0'
newvalue: 'Yes'
-
value: '1'
newvalue: 'No'
-
uuid: 7077365285f14733a55edd9ade5fdfcb
name: 'pfSense IPsec IKE Type'
mappings:
-
value: '0'
newvalue: Auto
-
value: '1'
newvalue: 'IKE v1'
-
value: '2'
newvalue: 'IKE v2'
-
uuid: a7a80f8152804c6f882898ca7378c403
name: 'pfSense IPsec Phase 1 Status'
mappings:
-
value: '0'
newvalue: Down
-
value: '1'
newvalue: Established
-
value: '2'
newvalue: Connecting
-
value: '10'
newvalue: 'Down on CARP Secondary'
-
uuid: 55e4705203cf4b5996dcd6e10cd508b9
name: 'pfSense IPsec Phase 2 Protocol'
mappings:
-
value: '1'
newvalue: ESP
-
value: '2'
newvalue: AH
-
uuid: b72cdb06faec4f9492913ba820677370
name: 'pfSense IPsec Protocol'
mappings:
-
value: '0'
newvalue: 'Dual Stack (IPv4 & IPv6)'
-
value: '1'
newvalue: IPv4
-
value: '2'
newvalue: IPv6
-
uuid: 864f6d2be4c544cf8fe38b9a619363b5
name: 'pfSense IPsec Tunnel Mode'
mappings:
-
value: '0'
newvalue: Main
-
value: '1'
newvalue: Aggressive

View File

@ -0,0 +1,147 @@
zabbix_export:
version: '6.0'
date: '2023-02-26T13:19:53Z'
groups:
-
uuid: 4918b88734c54bd094cff7585b5d71fc
name: 'Templates/Network Devices'
templates:
-
uuid: 6a1ef5e767cc4aba85c0d1712972eeb2
template: 'Template pfSense Active OpenVPN Server User Auth'
name: 'pfSense Active: OpenVPN Server User Auth'
description: |
Extension for pfSense Active Template.
Monitor client Connections of OpenVPN Server.
Requires pfsense_zbx.php installed to pfSense Box.
Version 1.0.2
https://github.com/rbicelli/pfsense-zabbix-template
groups:
-
name: 'Templates/Network Devices'
discovery_rules:
-
uuid: bae30f6a683e407aa9eeafbf9edb9179
name: 'OpenVPN User Auth Connected Clients Discovery'
type: ZABBIX_ACTIVE
key: 'pfsense.discovery[openvpn_server_user]'
delay: 60s
description: 'Discovery of clients connected to OpenVPN Server in User Auth Mode'
item_prototypes:
-
uuid: 272166157ee4456b887e7df305167c2d
name: 'OpenVPN Server {#SERVERNAME}, Client {#USERID}: Bytes Received'
type: ZABBIX_ACTIVE
key: 'pfsense.value[openvpn_server_uservalue,{#UNIQUEID},bytes_recv]'
delay: 60s
trends: '0'
units: bytes
description: 'Client Bytes Received'
tags:
-
tag: Application
value: 'OpenVPN Server Clients'
-
uuid: 1acfb6c10d4d4a8d97281f37e757d3bf
name: 'OpenVPN Server {#SERVERNAME}, Client {#USERID}: Bytes Sent'
type: ZABBIX_ACTIVE
key: 'pfsense.value[openvpn_server_uservalue,{#UNIQUEID},bytes_sent]'
delay: 60s
trends: '0'
units: bytes
description: 'Client Bytes Sent'
tags:
-
tag: Application
value: 'OpenVPN Server Clients'
-
uuid: 5f779a0e03b84be19030766d6fcffd92
name: 'OpenVPN Server {#SERVERNAME}, Client {#USERID}: Connection Time'
type: ZABBIX_ACTIVE
key: 'pfsense.value[openvpn_server_uservalue,{#UNIQUEID},connect_time_unix]'
delay: 60s
trends: '0'
units: unixtime
description: 'Client Connect Time'
tags:
-
tag: Application
value: 'OpenVPN Server Clients'
-
uuid: 40b0a64862a44a99a33581b916ad6467
name: 'OpenVPN Server {#SERVERNAME}, Client {#USERID}: Remote Host'
type: ZABBIX_ACTIVE
key: 'pfsense.value[openvpn_server_uservalue,{#UNIQUEID},remote_host]'
delay: 60s
trends: '0'
value_type: TEXT
description: 'Remote Host'
tags:
-
tag: Application
value: 'OpenVPN Server Clients'
-
uuid: 8e1b6f2d8397483d8a2768babd93a1a7
name: 'OpenVPN Server {#SERVERNAME}, Client {#USERID}: User Name'
type: ZABBIX_ACTIVE
key: 'pfsense.value[openvpn_server_uservalue,{#UNIQUEID},user_name]'
delay: 60s
trends: '0'
value_type: TEXT
description: 'Client User Name'
tags:
-
tag: Application
value: 'OpenVPN Server Clients'
-
uuid: 0329f5bf3fb94bdaa30c0e412bc337f8
name: 'OpenVPN Server {#SERVERNAME}, Client {#USERID}: Virtual IP Address (IPv6)'
type: ZABBIX_ACTIVE
key: 'pfsense.value[openvpn_server_uservalue,{#UNIQUEID},virtual_addr6]'
delay: 60s
trends: '0'
value_type: TEXT
description: 'IPv6 Address assigned from OpenVPN Server'
tags:
-
tag: Application
value: 'OpenVPN Server Clients'
-
uuid: 1c21ccdd3bf14aa3b8b65986b5317f6a
name: 'OpenVPN Server {#SERVERNAME}, Client {#USERID}: Virtual IP Address'
type: ZABBIX_ACTIVE
key: 'pfsense.value[openvpn_server_uservalue,{#UNIQUEID},virtual_addr]'
delay: 60s
trends: '0'
value_type: TEXT
description: 'IP Address assigned from OpenVPN Server'
tags:
-
tag: Application
value: 'OpenVPN Server Clients'
-
uuid: 15192106b2164e0e9df447ba330007db
name: 'OpenVPN Server {#SERVERNAME}, Client {#USERID}: Client ID'
type: ZABBIX_ACTIVE
key: 'pfsense.value[openvpn_server_uservalue_numeric,{#UNIQUEID},client_id]'
delay: 60s
trends: '0'
description: 'Client ID'
tags:
-
tag: Application
value: 'OpenVPN Server Clients'
-
uuid: de719e75d02440fe96c987bd5ddcb367
name: 'OpenVPN Server {#SERVERNAME}, Client {#USERID}: Peer ID'
type: ZABBIX_ACTIVE
key: 'pfsense.value[openvpn_server_uservalue_numeric,{#UNIQUEID},peer_id]'
delay: 60s
trends: '0'
description: 'Peer ID'
tags:
-
tag: Application
value: 'OpenVPN Server Clients'

View File

@ -0,0 +1,97 @@
zabbix_export:
version: '6.0'
date: '2023-02-26T13:20:29Z'
groups:
-
uuid: 4918b88734c54bd094cff7585b5d71fc
name: 'Templates/Network Devices'
templates:
-
uuid: 1c7cba22540d4c10a5ee14c2b25223ca
template: 'pfSense Active Speedtest'
name: 'pfSense Active: Speedtest'
description: |
Extension for pfSense Active Template.
Executes Speedtests on WAN Interfaces.
Requires pfsense_zbx.php installed to pfSense Box.
Version 1.0.5
https://github.com/rbicelli/pfsense-zabbix-template
groups:
-
name: 'Templates/Network Devices'
discovery_rules:
-
uuid: 40288914aa9742adb93120c367263690
name: 'WAN Interfaces'
type: ZABBIX_ACTIVE
key: 'pfsense.discovery[wan]'
delay: 300s
description: 'Discover WAN Interfaces'
item_prototypes:
-
uuid: a79d28cf3f3b4981b59f571117e64d24
name: 'Speedtest Download on {#IFDESCR}'
type: ZABBIX_ACTIVE
key: 'pfsense.value[if_speedtest_value,{#IFNAME},download]'
delay: 3600s
value_type: FLOAT
units: bps
description: 'Download speed determined by Ookla Speedtest package'
tags:
-
tag: Application
value: 'Network interfaces'
-
uuid: 52b640fcdf484b538f85bf32d2afbcf3
name: 'Speedtest Ping on {#IFDESCR}'
type: ZABBIX_ACTIVE
key: 'pfsense.value[if_speedtest_value,{#IFNAME},ping]'
delay: 3600s
value_type: FLOAT
units: ms
description: 'Ping determined by Ookla Speedtest package'
tags:
-
tag: Application
value: 'Network interfaces'
-
uuid: 4bd063f24e554832b59bfa2231d53bf1
name: 'Speedtest Upload on {#IFDESCR}'
type: ZABBIX_ACTIVE
key: 'pfsense.value[if_speedtest_value,{#IFNAME},upload]'
delay: 3600s
value_type: FLOAT
units: bps
description: 'Ping determined by Ookla Speedtest package'
tags:
-
tag: Application
value: 'Network interfaces'
graph_prototypes:
-
uuid: 74cdea0b8136495496bb90593bd78a59
name: 'Speedtest metrics on {#IFDESCR}'
graph_items:
-
sortorder: '1'
color: 199C0D
calc_fnc: ALL
item:
host: 'pfSense Active Speedtest'
key: 'pfsense.value[if_speedtest_value,{#IFNAME},download]'
-
sortorder: '2'
color: FFFF00
calc_fnc: ALL
item:
host: 'pfSense Active Speedtest'
key: 'pfsense.value[if_speedtest_value,{#IFNAME},upload]'
-
sortorder: '3'
color: 0040FF
calc_fnc: ALL
item:
host: 'pfSense Active Speedtest'
key: 'pfsense.value[if_speedtest_value,{#IFNAME},ping]'

File diff suppressed because it is too large Load Diff