Re: SNMP access to pf ALTQ data?



On 8 jul 2006, at 09.18, J. Buck Caldwell wrote:

Forgive the cross-posting, but I think I need a wider audience.

Is it possible to track pf ALTQ usage with MRTG? I notice that FreeBSD's built-in bsnmpd has a module and mibs to support pf, but I know too little about SNMP to figure out how to access the queue stats.

Specifically, I'm looking to make a series of MRTG graphs that show the total bytes that pass through each queue. I figure if worst comes to worst, I can work out a separate program that parses the output of 'pfctl -vsq' and returns that as MRTG-readable input, but it would be much smoother to get it via SNMP, if it can be done.

I got one of those, a small python script which feeds the data into a rrd file:

https://svn.stromnet.org/repos/misc/trunk/rrd/pfque-rrd.py

Works fine, the only problem I have is when i reload my rules (that is, reset the counters).. The graph goes mad ;)
Altough, if there is some way to do this via SNMP instead, I would also like to know...
The above scripts uses tftp to move the rrdfiles to my graphing host. I call it from crontab every minute.
For the graphing I use this:

https://svn.stromnet.org/repos/misc/trunk/rrd/pfque-graph.py

And the result looks like this:

http://stats.stromnet.org/router/details.php?file=pfqueue_out

If you look at the last month/year graphs, you see the problem with resetting the counters..


Any help would be appreciated. I'm sure others would be interested in this as well.

_______________________________________________
freebsd-stable@xxxxxxxxxxx mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to "freebsd-stable- unsubscribe@xxxxxxxxxxx"

_______________________________________________
freebsd-stable@xxxxxxxxxxx mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to "freebsd-stable-unsubscribe@xxxxxxxxxxx"



Relevant Pages

  • Re: Marina base station coverage?
    ... the QoS system and SNMP based usage tracking and billing system. ... I use SNMP and MRTG to gather per IP traffic statistics. ... The accumulated traffic graphs are setup to reset on the first of the ...
    (alt.internet.wireless)
  • Re: Cisco 151e PIX & MRTG
    ... >> have MRTG and would like to get it running to monitor our PIX ... First enable SNMP, and set the host that is going to be allowed to do the ... There is a MIB download somewhere on the Cisco site for the OIDs, ... and dmz (interface 3). ...
    (comp.security.firewalls)
  • Re: ADSL router with blinkenlights
    ... Never did get the mac snmp ... >> graphs using Cacti. ... >> cacti on, it is highly recommended. ... need a recent enough build of rrdtool. ...
    (uk.comp.sys.mac)
  • Re: Trafficauswertung für Standleitung
    ... > Ich mußte auf meinem PC SNMP installieren, ... MRTG kannst Du mit etwas Skripterei so konfigurieren, daß es vom Router ... PHP brauchst Du für diese Lösung erstmal nicht. ...
    (microsoft.public.de.german.win2000.networking)
  • NTP MRTG graphs?
    ... I've been interested in using MRTG to ... graph various properties of my time server like the offset, jitter, ... that are generating quite detailed graphs and I was wondering if anyone ... show something in a reasonable scale (like 0-20ms offset, ...
    (comp.protocols.time.ntp)

Loading