Corrected issue #49

master
Riccardo Bicelli 4 years ago
parent a31687e2cb
commit a38c08bb1a
  1. 8
      pfsense_zbx.php
  2. 4
      template_pfsense_active_ovpn_user.xml

@ -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'])) {

@ -4,7 +4,7 @@
<date>2020-07-12T06:37:29Z</date>
<groups>
<group>
<name>Templates/Network devices</name>
<name>Templates/Network Devices</name>
</group>
</groups>
<templates>
@ -20,7 +20,7 @@ Version 1.0.1&#13;
https://github.com/rbicelli/pfsense-zabbix-template</description>
<groups>
<group>
<name>Templates/Network devices</name>
<name>Templates/Network Devices</name>
</group>
</groups>
<applications>

Loading…
Cancel
Save