From owner-freebsd-stable@FreeBSD.ORG Sat Jul 8 09:21:49 2006 Return-Path: X-Original-To: freebsd-stable@freebsd.org Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id ACF2216A4DA for ; Sat, 8 Jul 2006 09:21:49 +0000 (UTC) (envelope-from johan@stromnet.org) Received: from pne-smtpout2-sn2.hy.skanova.net (pne-smtpout2-sn2.hy.skanova.net [81.228.8.164]) by mx1.FreeBSD.org (Postfix) with ESMTP id 311F243D49 for ; Sat, 8 Jul 2006 09:21:48 +0000 (GMT) (envelope-from johan@stromnet.org) Received: from elfi.stromnet.org (213.67.205.103) by pne-smtpout2-sn2.hy.skanova.net (7.2.075) id 44A2F19F001FBFB4; Sat, 8 Jul 2006 11:21:46 +0200 Received: from localhost (localhost [127.0.0.1]) by elfi.stromnet.org (Postfix) with ESMTP id 9729561D62; Sat, 8 Jul 2006 11:21:44 +0200 (CEST) X-Virus-Scanned: amavisd-new at stromnet.org Received: from elfi.stromnet.org ([127.0.0.1]) by localhost (elfi.stromnet.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id XjwcxaNQM20v; Sat, 8 Jul 2006 11:21:42 +0200 (CEST) Received: from [192.168.36.100] (81-232-42-209-no37.tbcn.telia.com [81.232.42.209]) by elfi.stromnet.org (Postfix) with ESMTP id 05F1F61D4D; Sat, 8 Jul 2006 11:21:41 +0200 (CEST) In-Reply-To: <44AF5C34.8000801@bitparts.org> References: <44AF5C34.8000801@bitparts.org> Mime-Version: 1.0 (Apple Message framework v750) Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Message-Id: Content-Transfer-Encoding: 7bit From: =?ISO-8859-1?Q?Johan_Str=F6m?= Date: Sat, 8 Jul 2006 11:21:50 +0200 To: J. Buck Caldwell X-Mailer: Apple Mail (2.750) Cc: freebsd-stable@freebsd.org Subject: Re: SNMP access to pf ALTQ data? X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 08 Jul 2006 09:21:49 -0000 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@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-stable > To unsubscribe, send any mail to "freebsd-stable- > unsubscribe@freebsd.org"