Skip site navigation (1)Skip section navigation (2)
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

[-- Attachment #1 --]
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 count'
> 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 from
> 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.

-- 
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

[-- Attachment #2 --]
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (FreeBSD)

iD8DBQBCy5SpeBgSLTGEbiIRAjADAJ4gOtlcvqcgobQJ89TQKbAgvZWUUgCfe8CX
d+Y+4TllbO0lskmGxSZAbs8=
=S6ik
-----END PGP SIGNATURE-----

Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200507060422.01548.rick>