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

    Looking For A Monitoring API or Service

    Scheduled Pinned Locked Moved pfSense Packages
    2 Posts 2 Posters 379 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.
    • Z
      zipper
      last edited by zipper

      Howdy folks!

      I'm new to the world of pfSense, so my sincere apologies if this is a newbie question.

      Is there a monitoring API or a service available that I could access via C/C++, Python, or another programming language? I'm looking for ways to access stats like current up/down rates, blocked/malformed packet counts, and whether or not the software is up to date. I'd like to use the data to set custom colors/patterns on an RGB indicator LED. The goal here would be to have the status updated every 30 seconds or so.

      I've searched around a bit and can't seem to find a package that gives me quite what I'm looking for. I can modify the source code if needed, but I'd rather not if possible. Anyone have any leads?

      1 Reply Last reply Reply Quote 0
      • C
        conor
        last edited by

        Collectd can gather your interface stats and output to several different types of storage, you could script against that.
        For pf blocking stats i honestly don't know there are probably some, you could manually poll from a script using pfctl but there could well be a service that works better.

        200+ pfSense installs - best firewall ever.

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