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

    Zabbix to monitor site to site links openvpn

    Scheduled Pinned Locked Moved pfSense Packages
    5 Posts 2 Posters 9.1k 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.
    • R
      rajbps
      last edited by

      Hi Team,
      I am looking for a solution that will be able to monitor multiple site to site vpn connections.
      I seen zabbix and installed the client and proxy but I am a bit lost on how to configure it.

      Could anyone kindly advise pls.

      Here is the current setup.

      Pfsense 2.2

      agent and proxy are 2.0

      Proxy settings

      server:127.0.0.1
      server port:10051
      hostname:localhost
      Mode Active: yes
      config frequency:3600

      Agent settings

      server:192.168.0.31
      server Active:192.168.0.31:10050
      Hostname:(name of firewall)
      Listen IP:0.0.0.0
      listen port:10050
      refresh active checks:120
      timeout:3
      buffer send:5
      buffer size:100
      start agents:3

      I have installed  Zabbix server on ip 192.168.0.31  but there again still learning it.

      Cheers,

      Raj

      1 Reply Last reply Reply Quote 0
      • D
        DigitalDeviant
        last edited by

        This depends on what you are looking to monitor. The simplest thing I can think of is using setting up an item to uses simple checks icmpping to see if each tunnel endpoint host is responding to pings.

        1 Reply Last reply Reply Quote 0
        • R
          rajbps
          last edited by

          Can you show an example pls if possible.

          Cheers,

          Could I install zabbix clients on the other end firewalls and get info from those networks, all use pfsense

          Cheers,

          Raj

          1 Reply Last reply Reply Quote 0
          • D
            DigitalDeviant
            last edited by

            Yes, I would install the agent on each machine. The simplest way to check to see if the device is running is by pinging it and I've attached a screenshot of the item. I've added this to the FreeBSD template and linked this template to my pfSense host configuration, since pfsense runs on FreeBSD. If you don't add it to the template, you will have to add it to each individual host.

            I am working on a more specific pfSense template now that a 2.0 agent is available but it's far from done. I am open to suggestions on what to add to it.

            pfsense-zabbix.png
            pfsense-zabbix.png_thumb

            1 Reply Last reply Reply Quote 0
            • R
              rajbps
              last edited by

              Hiya,

              Thanks for the reply and I hope you could assist me a bit further.

              Here is my setup

              zabbix server                pfsense main firewall                        pfsense another site
              192.168.0.31                    192.168.0.251 (Local)                        192.168.20.250(local)
                                              192.168.23.251 ( different vlans)            this is linked to 192.168.23.0/24 vlan

              There are multiple vlans on the main firewall some connection to other remote pfsense firewalls.

              So my question is on the remote pfsense, I install the zabbix client.
              In the client  setting, I will put the following :

              server:192.168.20.251
              server Active:192.168.20.251:10050
              Hostname:(name of firewall)
              Listen IP:0.0.0.0
              listen port:10050
              refresh active checks:120
              timeout:3
              buffer send:5
              buffer size:100
              start agents:3

              On the main pfsense install the settings for the proxy is :

              Proxy settings

              server:192.168.0.31
              server port:10051
              hostname:(Proxyname)
              Mode Active: yes
              config frequency:3600

              On the Zabbix server I created a proxy called (Proxyname) and then added the remote pfsense as a client but I do not get any results.

              On the remote pfsense agent logs is as follows:

              6469:20130211:090609.894 Got signal [signal:15(SIGTERM),sender_pid:55456,sender_uid:0,reason:65537]. Exiting …
                6054:20130211:090609.894 One child process died (PID:6653,exitcode/signal:65280). Exiting ...
                6361:20130211:090609.894 Got signal [signal:15(SIGTERM),sender_pid:55456,sender_uid:0,reason:65537]. Exiting …
                6054:20130211:090611.895 Zabbix Agent stopped. Zabbix 2.0.4 (revision 31984).
                4277:20130211:090614.908 Starting Zabbix Agent [tfcfire01]. Zabbix 2.0.4 (revision 31984).
                4348:20130211:090614.909 agent #0 started [collector]
                4679:20130211:090614.910 agent #2 started [listener]
                4457:20130211:090614.910 agent #1 started [listener]
                5290:20130211:090614.910 agent #4 started [active checks]
                4972:20130211:090614.910 agent #3 started [listener]
                5290:20130211:092305.201 Got signal [signal:15(SIGTERM),sender_pid:6797,sender_uid:0,reason:65537]. Exiting …
                4679:20130211:092305.202 Got signal [signal:15(SIGTERM),sender_pid:6797,sender_uid:0,reason:65537]. Exiting …
                4348:20130211:092305.202 Got signal [signal:15(SIGTERM),sender_pid:6797,sender_uid:0,reason:65537]. Exiting …
                4972:20130211:092305.202 Got signal [signal:15(SIGTERM),sender_pid:6797,sender_uid:0,reason:65537]. Exiting …
                4457:20130211:092305.203 Got signal [signal:15(SIGTERM),sender_pid:6797,sender_uid:0,reason:65537]. Exiting …
                4277:20130211:092305.203 One child process died (PID:4679,exitcode/signal:65280). Exiting ...
                4277:20130211:092307.204 Zabbix Agent stopped. Zabbix 2.0.4 (revision 31984).
              18350:20130211:092310.215 Starting Zabbix Agent [tfcfire01]. Zabbix 2.0.4 (revision 31984).
              18681:20130211:092310.216 agent #0 started [collector]
              18873:20130211:092310.216 agent #2 started [listener]
              19115:20130211:092310.216 agent #4 started [active checks]
              18710:20130211:092310.217 agent #1 started [listener]
              18972:20130211:092310.217 agent #3 started [listener]
              19115:20130211:092310.438 No active checks on server: host [tfcfire01] not found
              19115:20130211:202847.418 No active checks on server: host [tfcfire01] not found

              The proxy logs on the main pfsense is as follows:

              44419:20130211:091238.401 Zabbix Proxy stopped. Zabbix 2.0.4 (revision 31984).
              10294:20130211:091258.834 Starting Zabbix Proxy (active) [bpsproxy]. Zabbix 2.0.4 (revision 31984).
              10294:20130211:091258.834 **** Enabled features ****
              10294:20130211:091258.834 SNMP monitoring:      YES
              10294:20130211:091258.834 IPMI monitoring:        NO
              10294:20130211:091258.834 WEB monitoring:        YES
              10294:20130211:091258.835 ODBC:                  NO
              10294:20130211:091258.835 SSH2 support:          NO
              10294:20130211:091258.835 IPv6 support:          YES
              10294:20130211:091258.835 **************************
              10357:20130211:091258.848 proxy #1 started [configuration syncer #1]
              10482:20130211:091258.848 proxy #2 started [heartbeat sender #1]
              10730:20130211:091258.849 proxy #3 started [data sender #1]
              11948:20130211:091258.854 proxy #13 started [trapper #4]
              11816:20130211:091258.853 proxy #11 started [trapper #2]
              10294:20130211:091258.856 proxy #0 started [main process]
              12588:20130211:091258.857 proxy #17 started [http poller #1]
              13293:20130211:091258.859 proxy #21 started [history syncer #3]
              11923:20130211:091258.863 proxy #12 started [trapper #3]
              12007:20130211:091258.865 proxy #14 started [trapper #5]
              13238:20130211:091258.911 proxy #20 started [history syncer #2]
              12571:20130211:091258.914 proxy #16 started [housekeeper #1]
              12571:20130211:091258.914 executing housekeeper
              11498:20130211:091258.916 proxy #9 started [unreachable poller #1]
              13572:20130211:091258.917 proxy #22 started [history syncer #4]
              10756:20130211:091258.945 proxy #4 started [poller #1]
              11278:20130211:091258.959 proxy #7 started [poller #4]
              10892:20130211:091258.966 proxy #5 started [poller #2]
              11374:20130211:091259.004 proxy #8 started [poller #5]
              12790:20130211:091259.013 proxy #18 started [discoverer #1]
              12225:20130211:091259.013 proxy #15 started [icmp pinger #1]
              12959:20130211:091259.014 proxy #19 started [history syncer #1]
              11534:20130211:091259.015 proxy #10 started [trapper #1]
              10990:20130211:091259.017 proxy #6 started [poller #3]
              12571:20130211:091259.190 housekeeper deleted 0 records from history (spent 0.004097 seconds)
              10482:20130211:091358.853 Unable to connect to the server [192.168.0.31]:10051 [cannot connect to [[192.168.0.31]:10051]: [4] Interrupted system call]
              10357:20130211:091414.095 Unable to connect to the server [192.168.0.31]:10051 [cannot connect to [[192.168.0.31]:10051]: [60] Operation timed out]. Will retry every 120 second(s)
              10730:20130211:091414.198 Unable to connect to the server [192.168.0.31]:10051 [cannot connect to [[192.168.0.31]:10051]: [60] Operation timed out]. Will retry every 1 second(s)
              10482:20130211:091458.860 Unable to connect to the server [192.168.0.31]:10051 [cannot connect to [[192.168.0.31]:10051]: [4] Interrupted system call]
              10357:20130211:091529.103 Still unable to connect…
              10730:20130211:091529.205 Still unable to connect...
              10482:20130211:091558.868 Unable to connect to the server [192.168.0.31]:10051 [cannot connect to [[192.168.0.31]:10051]: [4] Interrupted system call]
              10730:20130211:091645.215 Still unable to connect…
              10482:20130211:091658.877 Unable to connect to the server [192.168.0.31]:10051 [cannot connect to [[192.168.0.31]:10051]: [4] Interrupted system call]

              Do I need any rules on the fiirewall pls.

              The link between the remote and main firewall is an openvpn site to site link always on.

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