rbicelli / pfsense-zabbix-template

Zabbix Template for pfSense
Apache License 2.0
244 stars 107 forks source link

Script crashes on PFsense 2.5RC #63

Closed putteg closed 9 months ago

putteg commented 3 years ago

Im running (testing) Pfsense 2.5rc And zabbix-pfsense crashes all the time:

Error log:

[12-Feb-2021 10:48:49 Europe/Stockholm] PHP Warning: count(): Parameter must be an array or an object that implements Countable in /root/scripts/pfsense_zbx.php on line 814 [12-Feb-2021 10:48:49 Europe/Stockholm] PHP Warning: count(): Parameter must be an array or an object that implements Countable in /root/scripts/pfsense_zbx.php on line 818 [12-Feb-2021 10:48:49 Europe/Stockholm] PHP Warning: Invalid argument supplied for foreach() in /root/scripts/pfsense_zbx.php on line 862 [12-Feb-2021 10:50:49 Europe/Stockholm] PHP Warning: count(): Parameter must be an array or an object that implements Countable in /root/scripts/pfsense_zbx.php on line 814 [12-Feb-2021 10:50:49 Europe/Stockholm] PHP Warning: count(): Parameter must be an array or an object that implements Countable in /root/scripts/pfsense_zbx.php on line 818 [12-Feb-2021 10:50:49 Europe/Stockholm] PHP Warning: Invalid argument supplied for foreach() in /root/scripts/pfsense_zbx.php on line 862

rbicelli commented 3 years ago

Please try disable the item DHCP Failover Pool Problems in the template. In pfSense 2.5 changed how DHCP servers are enumerated. If you aren't using HA it wont matter.

putteg commented 3 years ago

That seems to solve the crash :) Thanks :) 👍

rbicelli commented 3 years ago

Will fix it when migrating my boxes to 2.5.