diff --git a/pfsense_zbx.php b/pfsense_zbx.php index 01cfb3b..6dbf4d1 100644 --- a/pfsense_zbx.php +++ b/pfsense_zbx.php @@ -471,7 +471,7 @@ function pfz_service_value($name,$value){ $status = get_service_status($service); if ($status=="") $status = 0; // Don't trigger for disabled services - if (is_service_enabled($service['name'])) $status = 1; + if (!is_service_enabled($service['name'])) $status = 1; echo $status; return;