Looking For A Monitoring API or Service



  • 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?



  • 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.