On 2018-02-16, Predrag Punosevac <punoseva...@gmail.com> wrote: > Stuart Henderson wrote: > >> It can already be monitored to some extent, base snmpd does already >> support a number of things in OPENBSD-PF-MIB, but not queues yet. > > Any chance that you share with us how you plot the data you recover with > snmpwalk from those MIBs.
I'm not collecting pf stats here, but simple MRTG or anything else that can poll a numeric value from SNMP and plot it would do the trick. A walk starting from .1.3.6.1.4.1.30155 to see what's available already (snmpwalk's default OID doesn't end up recursing into the OpenBSD MIBs). (I am collecting sensors data via LibreNMS which has support for OPENBSD-SENSORS-MIB committed upstream). > I would be most interested in > LibreNMS/Observium. Also how difficult would be to write PF plugin for > PF? Somebody apparently tried > > https://github.com/darinkes/collectd-pf That's a hacked-up 7 year old copy of pfctl with the license removed, it's not going to be all that much use now. > https://collectd.org/wiki/index.php/Plugin:PF >From a quick look at the code I think this collects information about number of states etc, like pfctl -si shows, collecting it from PF rather than via snmpd where the information is also available. It really depends what you're interested in monitoring as to whether it will be useful.