pfsense-zabbix-template
pfsense-zabbix-template copied to clipboard
Update to PFSense 2.6.0 : PHP ERROR with IPSEC
Hello, I have upgraded one of my firewall to PFSense 2.6 version. Next I have updated your script to the last version available. I have this error on the dashboard : PHP ERROR: Type: 1, File: /root/scripts/pfsense_zbx.php, Line: 668, Message: Uncaught Error: Call to undefined function get_ipsecifnum() in /root/scripts/pfsense_zbx.php:668 Stack trace: #0 /root/scripts/pfsense_zbx.php(580): pfz_ipsec_status('2') #1 /root/scripts/pfsense_zbx.php(1274): pfz_ipsec_ph1('2', 'status') #2 {main}
What can I do ?
Please note that pfSense 2.6 is not yet supported, I'm working on it.
No problem. I have already upgraded 3 firewalls, and I have the same error messages.
Have the same issue after upgrade to 2.6.0.
@rbicelli need someone to test and validate things? im tottaly available to help. Let me know if you need anything that can help you on this update to 2.6.0.
Thanks for the contribution. I'm also having a problem with version 2.6.0
replaced it
if (get_ipsecifnum($ph1ent['ikeid'], 0)) {
$cname = "con" . get_ipsecifnum($ph1ent['ikeid'], 0);
with this
if ($ph1ent['ikeid']) {
$cname = "con" . $ph1ent['ikeid'];
It seems to work pfsense - 2.6.0. and zabbix 6