Zabbix Uncaught Error
-
Hi,
I've pfSense version 2.6.0.
I try to install Zabbix versions, agent4, agent5, agent54 e agent6, but when I activated the service a lot of error occour.
Erros on log:"#0 /root/scripts/pfsense_zbx.php(580): pfz_ipsec_status('1')
#1 /root/scripts/pfsense_zbx.php(1274): pfz_ipsec_ph1('1', 'status')
#2 {main}
thrown in /root/scripts/pfsense_zbx.php on line 668
[01-Jul-2022 14:34:22 America/Sao_Paulo] PHP Fatal error: 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('1')
#1 /root/scripts/pfsense_zbx.php(1274): pfz_ipsec_ph1('1', 'status')
#2 {main}
thrown in /root/scripts/pfsense_zbx.php on line 668
[01-Jul-2022 14:45:22 America/Sao_Paulo] PHP Fatal error: 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('1')
#1 /root/scripts/pfsense_zbx.php(1274): pfz_ipsec_ph1('1', 'status')
#2 {main}
thrown in /root/scripts/pfsense_zbx.php on line 668
[01-Jul-2022 14:46:22 America/Sao_Paulo] PHP Fatal error: 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('1')
#1 /root/scripts/pfsense_zbx.php(1274): pfz_ipsec_ph1('1', 'status')
#2 {main}
thrown in /root/scripts/pfsense_zbx.php on line 668
[01-Jul-2022 14:57:22 America/Sao_Paulo] PHP Fatal error: 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('1')
#1 /root/scripts/pfsense_zbx.php(1274): pfz_ipsec_ph1('1', 'status')
#2 {main}
thrown in /root/scripts/pfsense_zbx.php on line 668"Can help please?
Thanks
-
I'm running zabbix 5.0.x server , and have this package installed on pfSense 2.6.0. I haven't noticed anything , but admit i haven't looked in /root/scripts/pfsense_zbx.php
I don't have access to the pfSense right now , so i can't look there.
But you do know the Agent has to "match" the server ... Correct ?
Edit : I don't have any ipsec IF's , if that is causing it.
-
Yes, Now I install the Zabbix agent6 in this pfSense to match. I try others version because the error.
But all pfSenes that have IPSec, appeart this error.
I'ves searching for Internet Foruns, but I don't have sucess still. So open this topic.
Thanks.
-
Hi!
Somebody have a solution for this error?
Thanks
-
Hi,
The solution it'a in this link: https://github.com/rbicelli/pfsense-zabbix-template/pull/118
I hope help somebody.