rbicelli/pfsense-zabbix-template

pfsense 2.7 error after upgrade

jcattan opened this issue · 2 comments

Hi i've update my pfsense to 2.7 and i've this message :
Notifications in this message: 1

15:43:39 PHP ERROR: Type: 1, File: /root/scripts/pfsense_zbx.php, Line: 936, Message: Uncaught TypeError: count(): Argument #1 ($value) must be of type Countable|array, null given in /root/scripts/pfsense_zbx.php:936
Stack trace:
#0 /root/scripts/pfsense_zbx.php(982): pfz_dhcp_get('failover')
#1 /root/scripts/pfsense_zbx.php(995): pfz_dhcp_check_failover()
#2 /root/scripts/pfsense_zbx.php(1257): pfz_dhcp('failover', NULL)
#3 {main}
thrown

Yarli commented

This is a duplicate of #135
however, the fix is simply to redownload the pfsense_zbx.php file from here and replace the one you currently have.
Ignore the version comment at hte top of the code. I don;t think it's been updated for a while.

I had this same problem today, and just copied the raw code and replaced my existing content of the pfsense_zbx.php file and it fixed my problem.

yes it 's works fine
thanks