From owner-freebsd-pf@FreeBSD.ORG Sat Jul 8 18:04:52 2006 Return-Path: X-Original-To: freebsd-pf@freebsd.org Delivered-To: freebsd-pf@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1B9E416A4E0 for ; Sat, 8 Jul 2006 18:04:52 +0000 (UTC) (envelope-from philip@paeps.cx) Received: from gateway.nixsys.be (gateway.nixsys.be [195.144.77.33]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5EFA443D4C for ; Sat, 8 Jul 2006 18:04:51 +0000 (GMT) (envelope-from philip@paeps.cx) Received: from wotan.home.paeps.cx (wotan.home.paeps.cx [IPv6:2001:6f8:32f:10:a00:20ff:fe9b:138c]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "wotan.home.paeps.cx", Issuer "NixSys CA" (verified OK)) by gateway.nixsys.be (Postfix) with ESMTP id 6C99040ED; Sat, 8 Jul 2006 20:04:49 +0200 (CEST) Received: from fasolt.home.paeps.cx (fasolt.home.paeps.cx [IPv6:2001:6f8:32f:10:250:fcff:feb3:b725]) by wotan.home.paeps.cx (Postfix) with ESMTP id AB0D961B0; Sat, 8 Jul 2006 20:04:47 +0200 (CEST) Received: from fasolt.home.paeps.cx (philip@localhost [127.0.0.1]) by fasolt.home.paeps.cx (8.13.6/8.13.6) with ESMTP id k68I4jSO054633; Sat, 8 Jul 2006 20:04:45 +0200 (CEST) (envelope-from philip@fasolt.home.paeps.cx) Received: (from philip@localhost) by fasolt.home.paeps.cx (8.13.6/8.13.6/Submit) id k68I4hi3054632; Sat, 8 Jul 2006 20:04:43 +0200 (CEST) (envelope-from philip) Date: Sat, 8 Jul 2006 20:04:43 +0200 From: Philip Paeps To: Daniel Hartmeier Message-ID: <20060708180443.GA21937@fasolt.home.paeps.cx> References: <44AF5C34.8000801@bitparts.org> <20060708090249.GB32262@insomnia.benzedrine.cx> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20060708090249.GB32262@insomnia.benzedrine.cx> X-Date-in-Rome: ante diem VIII Idus Iulias MMDCCLIX ab Urbe Condida X-PGP-Fingerprint: FA74 3C27 91A6 79D5 F6D3 FC53 BF4B D0E6 049D B879 X-Message-Flag: Get a proper mailclient! X-Phase-of-Moon: The Moon is Waxing Gibbous (93% of Full) Organization: Happily Disorganized User-Agent: Mutt/1.5.11 Cc: freebsd-pf@freebsd.org Subject: Re: SNMP access to pf ALTQ data? X-BeenThere: freebsd-pf@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Technical discussion and general questions about packet filter \(pf\)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 08 Jul 2006 18:04:52 -0000 On 2006-07-08 11:02:49 (+0200), Daniel Hartmeier wrote: > On Sat, Jul 08, 2006 at 02:18:12AM -0500, J. Buck Caldwell wrote: > > 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. > > Some queue related values are available, take a look at > > http://www.freebsd.org/cgi/cvsweb.cgi/src/usr.sbin/bsnmpd/modules/snmp_pf/ > > especially the BEGEMOT-PF-MIB.txt file. I've not had much time lately to keep pf_snmp up to date with reality. > But pf_snmp.c doesn't use the DIOCGETQSTATS ioctl to fetch those byte > counters you're looking for. > > Maybe Philip can add them. I'll take a look at that this weekend. Thanks for the tip! - Philip -- Philip Paeps Calm down ... it is only ones and zeros philip@freebsd.org "Oh, a very useful philosophical animal, your average tortoise. Outrunning metaphorical arrows, beating hares in races... very handy." -- (Terry Pratchett, Small Gods)