diff --git a/pfsense_zbx.php b/pfsense_zbx.php index 48b873b..fbf6291 100644 --- a/pfsense_zbx.php +++ b/pfsense_zbx.php @@ -156,7 +156,7 @@ function pfz_services_discovery(){ //id for OpenVPN if (!empty($service['id'])) $id = "." . $service["id"]; //zone for Captive Portal - if (!empty($service['zone')) $id = "." . $service["zone"]; + if (!empty($service['zone'])) $id = "." . $service["zone"]; $json_string .= '{"{#SERVICE}":"' . $service['name'] . $id . '"'; $json_string .= ',"{#DESCRIPTION}":"' . $service['description'] . '"';