Date: Wed, 6 Jul 2005 04:21:57 -0400 From: Rick Fournier <rick@rptn.net> To: freebsd-isp@freebsd.org Subject: Re: Multiple IP MRTG or Similar Message-ID: <200507060422.01548.rick@rptn.net> In-Reply-To: <42CB8099.5020102@aws-net.org.ua> References: <3b88b80a0507051933f4750f3@mail.gmail.com> <42CB8099.5020102@aws-net.org.ua>
next in thread | previous in thread | raw e-mail | index | archive | help
--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--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200507060422.01548.rick>
