From 3268a4445b518871f0a4fbd0b4b43cf8cfb2e40f Mon Sep 17 00:00:00 2001 From: Riccardo Bicelli Date: Mon, 18 Jan 2021 22:31:47 +0100 Subject: [PATCH] Fixed gateway Status, Removed IPsec Phase2 Status (reqid mismatch) --- pfsense_zbx.php | 1 + template_pfsense_active_ipsec.xml | 205 +----------------------------- 2 files changed, 2 insertions(+), 204 deletions(-) diff --git a/pfsense_zbx.php b/pfsense_zbx.php index e754672..dc5b42c 100644 --- a/pfsense_zbx.php +++ b/pfsense_zbx.php @@ -756,6 +756,7 @@ function pfz_valuemap($valuename, $value, $default="0"){ case "gateway.status": $valuemap = array( + "online" => "0", "none" => "0", "loss" => "1", "highdelay" => "2", diff --git a/template_pfsense_active_ipsec.xml b/template_pfsense_active_ipsec.xml index 30721a1..8ebeafe 100644 --- a/template_pfsense_active_ipsec.xml +++ b/template_pfsense_active_ipsec.xml @@ -1,7 +1,7 @@ 4.0 - 2021-01-18T15:02:45Z + 2021-01-18T21:30:16Z Templates/Network Devices @@ -504,188 +504,6 @@ https://github.com/rbicelli/pfsense-zabbix-template 30d Discovery of IPsec Phase 2 - - IPsec Tunnel {#IKEID}.{#REQID} {#NAME} Phase 2 Byte Received - 7 - - - pfsense.value[ipsec_ph2,{#EXTID},status.bytes-in] - 60s - 90d - 365d - 0 - 3 - - b - - - 0 - 0 - - 0 - - - - 0 - - - - - - IPsec Tunnel Phase 2 Protocol - 0 - - - IPsec - - - - - - - 3s - - - - 200 - 1 - 0 - - - 0 - 0 - 0 - 0 - - - - 0 - 0 - - - - - IPsec Tunnel {#IKEID}.{#REQID} {#NAME} Phase 2 Byte Sent - 7 - - - pfsense.value[ipsec_ph2,{#EXTID},status.bytes-out] - 60s - 90d - 365d - 0 - 3 - - b - - - 0 - 0 - - 0 - - - - 0 - - - - - - IPsec Tunnel Phase 2 Protocol - 0 - - - IPsec - - - - - - - 3s - - - - 200 - 1 - 0 - - - 0 - 0 - 0 - 0 - - - - 0 - 0 - - - - - IPsec Tunnel {#IKEID}.{#REQID} {#NAME} Phase 2 Status - 7 - - - pfsense.value[ipsec_ph2,{#EXTID},status] - 60s - 90d - 365d - 0 - 3 - - - - - 0 - 0 - - 0 - - - - 0 - - - - - - IPsec Tunnel Phase 2 Protocol - 0 - - - IPsec - - - - pfSense IPsec Phase 2 Status - - - - - 3s - - - - 200 - 1 - 0 - - - 0 - 0 - 0 - 0 - - - - 0 - 0 - - - IPsec Tunnel {#IKEID}.{#REQID} {#NAME} Phase 2 Enabled 7 @@ -1025,27 +843,6 @@ https://github.com/rbicelli/pfsense-zabbix-template - - pfSense IPsec Phase 2 Status - - - 0 - Down - - - 1 - Installed - - - 2 - Rekeyed - - - 10 - Down on CARP Secondary - - - pfSense IPsec Protocol