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

    pfSense Zabbix template

    Scheduled Pinned Locked Moved General pfSense Questions
    8 Posts 2 Posters 2.0k 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.
    • I
      ilbicio
      last edited by

      Hi! I've just published my pfSense Zabbix Template.
      Besides other templates it can also monitor:

      • Gateway Status
      • OpenVPN Status
      • CARP Status

      everything with fancy discovery rules.

      Please check it out on https://github.com/rbicelli/pfsense-zabbix-template. Criticism welcome :)

      A 1 Reply Last reply Reply Quote 1
      • A
        acherepov @ilbicio
        last edited by

        @ilbicio Hello.
        I try your template and find it's good.
        I link your template to my pfsense-host an it works great!

        But.
        I see in code section about OpenVPN Clients, you get "openvpn_get_active_clients"
        But i see no data in Zabbix's Latest Data about active OpenVpn Clients...

        It would also be great to see a list of active clients, their names, connection times, etc.
        All what we can see at https://your-pfsense-host/status_openvpn.php

        Can you add this function to your great template?
        Please :))

        1 Reply Last reply Reply Quote 0
        • I
          ilbicio
          last edited by

          Hello,
          I'm reviewing the template since I've blindly-accepted last Pull Requests and something gone weird.
          I think name of clients, connection times, etc.. is a bit overkill for monitoring the pfsense status.

          I'm in the process to add the number of clients connected to openvpn server with user auth.
          This feature will be released soon.

          Cheers!

          A 1 Reply Last reply Reply Quote 1
          • A
            acherepov @ilbicio
            last edited by

            @ilbicio said in pfSense Zabbix template:

            Hello,
            I'm reviewing the template since I've blindly-accepted last Pull Requests and something gone weird.
            I think name of clients, connection times, etc.. is a bit overkill for monitoring the pfsense status.
            I'm in the process to add the number of clients connected to openvpn server with user auth.
            This feature will be released soon.
            Cheers!

            well..
            I think the name of the clientы, their remote IP, and so on - this is very useful information for monitoring..
            I'd be happy if it stayed in release.

            Thank you for your efforts.
            I will wait for the release

            1 Reply Last reply Reply Quote 0
            • I
              ilbicio
              last edited by

              Just fixed PRs submitted and improved performance of interface detection functions, added OpenVPN total clients connected.
              Give it a try!

              A 2 Replies Last reply Reply Quote 1
              • A
                acherepov @ilbicio
                last edited by

                @ilbicio well...
                looks like smth changed, but not good :)
                I delete old template, import new template from new xml
                replace php-file on pfsense-host

                and now i can see in zabbix trigger with OpenVPN Server is DOWN and no Clients :)))
                This is Latest Data screenshot
                333.jpg

                1 Reply Last reply Reply Quote 0
                • I
                  ilbicio
                  last edited by

                  Sorry, check out latest commit. Only pfsense_zbx.php is changed, in this version number of connections are correctly detected (didn't synced source properly between test pfsense machine and local repo).
                  FYI there's no "Tunnel Status" on OpenVPN in user auth mode: the status switchs up only in case of p2p tunnel.
                  Cheers

                  1 Reply Last reply Reply Quote 0
                  • A
                    acherepov @ilbicio
                    last edited by

                    @ilbicio Well done!
                    I have total clients connected now!
                    Weeehooo!!
                    Thank you very much.

                    P.S. I hope one day I will learn how to collect OpenVPNusers connection history in Zabbixю

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