From owner-freebsd-isp@FreeBSD.ORG Wed Jul 6 08:21:47 2005 Return-Path: X-Original-To: freebsd-isp@freebsd.org Delivered-To: freebsd-isp@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0D94216A41C for ; Wed, 6 Jul 2005 08:21:47 +0000 (GMT) (envelope-from rick@rptn.net) Received: from mail.rimasec.net (nyc.rimasec.net [209.133.8.161]) by mx1.FreeBSD.org (Postfix) with ESMTP id C163843D58 for ; Wed, 6 Jul 2005 08:21:46 +0000 (GMT) (envelope-from rick@rptn.net) Received: from localhost (mail.rimasec.net [209.133.8.163]) by mail.rimasec.net (Postfix) with ESMTP id 85A412B88A for ; Wed, 6 Jul 2005 04:21:45 -0400 (EDT) Received: from mail.rimasec.net ([209.133.8.163]) by localhost (nyc.rimasec.net [209.133.8.163]) (amavisd-new, port 10024) with ESMTP id 38575-06 for ; Wed, 6 Jul 2005 04:21:44 -0400 (EDT) Received: from zombie.mtl.rptn.net (mtl.rptn.net [216.113.17.176]) (using TLSv1 with cipher RC4-MD5 (128/128 bits)) (Client did not present a certificate) by mail.rimasec.net (Postfix) with ESMTP id 50A7F2B83D for ; Wed, 6 Jul 2005 04:21:44 -0400 (EDT) From: Rick Fournier To: freebsd-isp@freebsd.org Date: Wed, 6 Jul 2005 04:21:57 -0400 User-Agent: KMail/1.8 References: <3b88b80a0507051933f4750f3@mail.gmail.com> <42CB8099.5020102@aws-net.org.ua> In-Reply-To: <42CB8099.5020102@aws-net.org.ua> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart1180919.G6HrtkDuy8"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit Message-Id: <200507060422.01548.rick@rptn.net> X-Virus-Scanned: by amavisd-new at mta.rimasec.net Subject: Re: Multiple IP MRTG or Similar X-BeenThere: freebsd-isp@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Internet Services Providers List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 06 Jul 2005 08:21:47 -0000 --nextPart1180919.G6HrtkDuy8 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline netstat -rni and/or ipfw count could do the job. MRTG can chart anything that has numbers :) netstat -rni | grep 192.169.127.1 | awk '{print $5,$7}' 19768749 31696000 netstat -rni | grep 192.169.127.6 | awk '{print $5,$7}' 6448104 5713402 On July 6, 2005 02:56 am, Artyom Viklenko wrote: > One possible way to gather statistics per-jail-ip is to use 'ipfw coun= t' > rules for each jail ip on the base system. Then you can write some > scripts and pass accumulated data to MRTG. MRTG can grab data not only fr= om > SNMP, but from external programms via stdin. Such external program > have to send to it's stdout four strings. This is described in MRTG > documentation. =2D-=20 Rick Fournier (rick@rptn.net) GnuPG/PGP Key: 31846E22 (http://www.rptn.net/rick.asc) Key Fingerprint: B1E3 AE2E C867 F491 BF9F 9485 7818 122D 3184 6E22 --nextPart1180919.G6HrtkDuy8 Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.1 (FreeBSD) iD8DBQBCy5SpeBgSLTGEbiIRAjADAJ4gOtlcvqcgobQJ89TQKbAgvZWUUgCfe8CX d+Y+4TllbO0lskmGxSZAbs8= =S6ik -----END PGP SIGNATURE----- --nextPart1180919.G6HrtkDuy8--