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

    Gateway statistics location on filesystem

    Scheduled Pinned Locked Moved General pfSense Questions
    7 Posts 3 Posters 858 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.
    • S
      streamholder
      last edited by

      Hello,
      I need to write a script that stores statistics for gateway uptime, ping delay and packet loss. Since pfSense already measures the data in a very nice way, I'd like to just reuse it rather than measuring it myself.
      Does anyone know where this data is stored to be shown on the web configurator?

      Thanks.

      1 Reply Last reply Reply Quote 0
      • dennypageD
        dennypage
        last edited by

        You might want to look at Status -> Monitoring which will allow you to graph the values you are looking for. Click on the wrench to adjust time over which the graph is displayed.

        1 Reply Last reply Reply Quote 0
        • S
          streamholder
          last edited by

          @dennypage:

          You might want to look at Status -> Monitoring which will allow you to graph the values you are looking for. Click on the wrench to adjust time over which the graph is displayed.

          Thanks, I did not know about that tab. That's pretty useful.
          I'd still like to get the raw data though, I want to make it available to other people in the company without giving them access to pfSense.

          1 Reply Last reply Reply Quote 0
          • dennypageD
            dennypage
            last edited by

            The data is in an RRD file. You can copy it off host if you need.

            1 Reply Last reply Reply Quote 0
            • GertjanG
              Gertjan
              last edited by

              An alternative is : use Munin or comparable.
              I just activated some plugins, far more exists : https://www.test-domaine.fr/munin/brit-hotel-fumel.net/pfsense.brit-hotel-fumel.net/index.html
              My Munin is running on a server on the net, collecting 3 nodes, and one of them is my pfSense box.

              No "help me" PM's please. Use the forum, the community will thank you.
              Edit : and where are the logs ??

              1 Reply Last reply Reply Quote 0
              • dennypageD
                dennypage
                last edited by

                If you are so inclined, there are collection scripts in the dpinger distribution that will collect the statistics off host as well. Dpinger is what pfSense uses to monitor the WAN connection and collect statistics about it.

                1 Reply Last reply Reply Quote 0
                • S
                  streamholder
                  last edited by

                  For anyone that could need this, statistics can be easily extracted with a PHP script calling into this function (hope it is ok to link to pfSense source code):

                  https://github.com/pfsense/pfsense/blob/bafd63b5d95054adcf97720a716e027cad0b17d4/src/etc/inc/gwlb.inc#L402

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