From owner-freebsd-pf@FreeBSD.ORG Sat Jul 8 11:12:38 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 BBA9616A4DD for ; Sat, 8 Jul 2006 11:12:38 +0000 (UTC) (envelope-from freebsd-listen@fabiankeil.de) Received: from smtprelay01.ispgateway.de (smtprelay01.ispgateway.de [80.67.18.13]) by mx1.FreeBSD.org (Postfix) with ESMTP id E0A4B43D49 for ; Sat, 8 Jul 2006 11:12:37 +0000 (GMT) (envelope-from freebsd-listen@fabiankeil.de) Received: (qmail 8055 invoked from network); 8 Jul 2006 11:12:35 -0000 Received: from unknown (HELO localhost) (775067@[217.50.131.7]) (envelope-sender ) by smtprelay01.ispgateway.de (qmail-ldap-1.03) with SMTP for ; 8 Jul 2006 11:12:35 -0000 Date: Sat, 8 Jul 2006 13:12:25 +0200 From: Fabian Keil To: Daniel Hartmeier Message-ID: <20060708131225.51feb8f3@localhost> In-Reply-To: <20060708090249.GB32262@insomnia.benzedrine.cx> References: <44AF5C34.8000801@bitparts.org> <20060708090249.GB32262@insomnia.benzedrine.cx> X-Mailer: Sylpheed-Claws 2.3.1 (GTK+ 2.8.19; i386-portbld-freebsd6.1) X-PGP-KEY-URL: http://www.fabiankeil.de/gpg-keys/freebsd-listen-2006-08-19.asc Mime-Version: 1.0 Content-Type: multipart/signed; boundary=Sig_WqfD.y_aPUVjtZjAsuyc4vi; protocol="application/pgp-signature"; micalg=PGP-SHA1 Cc: freebsd-pf@freebsd.org Subject: pfstat 2.2 and FreeBSD (was: 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 11:12:38 -0000 --Sig_WqfD.y_aPUVjtZjAsuyc4vi Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Daniel Hartmeier wrote: > On Sat, Jul 08, 2006 at 02:18:12AM -0500, J. Buck Caldwell wrote: >=20 > > 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. > Some queue related values are available, take a look at >=20 > http://www.freebsd.org/cgi/cvsweb.cgi/src/usr.sbin/bsnmpd/modules/snmp_pf/ >=20 > especially the BEGEMOT-PF-MIB.txt file. >=20 > But pf_snmp.c doesn't use the DIOCGETQSTATS ioctl to fetch those byte > counters you're looking for. >=20 > Maybe Philip can add them. One example of how to fetch the queue stats > is pfctl itself, another is pfstat-2.2 pf.c query_queues(), see >=20 > http://www.benzedrine.cx/pfstat.html >=20 > (make sure to grab pfstat-2.2.tar.gz, older versions didn't fetch > queue stats, either) Yesterday I installed pfstat 2.2 on FreeBSD RELENG_6. It compiled cleanly, but fetching the statistics failed with "ioctl DIOCIGETIFACES not supported by device" (not the exact wording). To get it running I used: (update for sysutils/pfstat from 1.7 to 2.2) Could someone with FreeBSD PF foo please check patch-pf.c for correctness? Fabian --=20 http://www.fabiankeil.de/ --Sig_WqfD.y_aPUVjtZjAsuyc4vi Content-Type: application/pgp-signature; name=signature.asc Content-Disposition: attachment; filename=signature.asc -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.4 (FreeBSD) iD8DBQFEr5MhjV8GA4rMKUQRAkLbAKC3Ae1z2POamCK+yuHjTgT9U1YNiACg0gBU hZdOEJE33WwKU49bDk80HS4= =H68+ -----END PGP SIGNATURE----- --Sig_WqfD.y_aPUVjtZjAsuyc4vi--