Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    Zabbix Uncaught Error

    Scheduled Pinned Locked Moved pfSense Packages
    5 Posts 2 Posters 1.5k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • J
      JuniorSa_TI
      last edited by

      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

      bingo600B J 2 Replies Last reply Reply Quote 0
      • bingo600B
        bingo600 @JuniorSa_TI
        last edited by bingo600

        @juniorsa_ti

        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

        0640c56c-5e79-48b4-b3fd-dcda3f61544e-image.png

        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.

        If you find my answer useful - Please give the post a šŸ‘ - "thumbs up"

        pfSense+ 23.05.1 (ZFS)

        QOTOM-Q355G4 Quad Lan.
        CPUĀ  : Core i5 5250U, Ram : 8GB Kingston DDR3LV 1600
        LANĀ  : 4 x Intel 211, DiskĀ  : 240G SAMSUNG MZ7L3240HCHQ SSD

        J 1 Reply Last reply Reply Quote 0
        • J
          JuniorSa_TI @bingo600
          last edited by

          @bingo600

          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.

          J 1 Reply Last reply Reply Quote 0
          • J
            JuniorSa_TI @JuniorSa_TI
            last edited by

            Hi!

            Somebody have a solution for this error?

            Thanks

            1 Reply Last reply Reply Quote 0
            • J
              JuniorSa_TI @JuniorSa_TI
              last edited by

              Hi,

              The solution it'a in this link: https://github.com/rbicelli/pfsense-zabbix-template/pull/118

              I hope help somebody.

              1 Reply Last reply Reply Quote 0
              • First post
                Last post
              Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.