pfsense-zabbix-template icon indicating copy to clipboard operation
pfsense-zabbix-template copied to clipboard

Update to PFSense 2.6.0 : PHP ERROR with IPSEC

Open stephanehofman opened this issue 2 years ago • 6 comments

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 ?

stephanehofman avatar Mar 08 '22 07:03 stephanehofman

Please note that pfSense 2.6 is not yet supported, I'm working on it.

rbicelli avatar Mar 10 '22 13:03 rbicelli

No problem. I have already upgraded 3 firewalls, and I have the same error messages.

stephanehofman avatar Mar 11 '22 13:03 stephanehofman

Have the same issue after upgrade to 2.6.0.

mrnafanya avatar Mar 21 '22 06:03 mrnafanya

@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.

ananiasfilho avatar Mar 22 '22 13:03 ananiasfilho

Thanks for the contribution. I'm also having a problem with version 2.6.0

moisesdfelix avatar Apr 15 '22 11:04 moisesdfelix

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

rednaxes avatar Jun 08 '22 14:06 rednaxes