diff --git a/pfsense_zbx.php b/pfsense_zbx.php index 82b3dcd..807f026 100644 --- a/pfsense_zbx.php +++ b/pfsense_zbx.php @@ -283,17 +283,19 @@ function pfz_services_discovery(){ // Get service value // 2020-03-27: Added space replace in service name for issue #12 +// 2020-09-28: Corrected Space Replace function pfz_service_value($name,$value){ $services = get_services(); - + $name = str_replace("__"," ",$name); + //List of service which are stopped on CARP Slave. //For now this is the best way i found for filtering out the triggers //Waiting for a way in Zabbix to use Global Regexp in triggers with items discovery $stopped_on_carp_slave = array("haproxy","openvpn.","openvpn"); foreach ($services as $service){ - $namecfr=str_replace("__"," ",$service["name"]); - $carpcfr=str_replace("__"," ",$service["name"]); + $namecfr = $service["name"]; + $carpcfr = $service["name"]; //OpenVPN if (!empty($service['id'])) { diff --git a/template_pfsense_active_ovpn_user.xml b/template_pfsense_active_ovpn_user.xml index 5257ba1..639f41f 100644 --- a/template_pfsense_active_ovpn_user.xml +++ b/template_pfsense_active_ovpn_user.xml @@ -4,7 +4,7 @@ 2020-07-12T06:37:29Z - Templates/Network devices + Templates/Network Devices @@ -20,7 +20,7 @@ Version 1.0.1 https://github.com/rbicelli/pfsense-zabbix-template - Templates/Network devices + Templates/Network Devices