Multiple IP MRTG or Similar

Rick Fournier rick at rptn.net
Wed Jul 6 08:21:47 GMT 2005


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 at rptn.net)
GnuPG/PGP Key: 31846E22 (http://www.rptn.net/rick.asc)
Key Fingerprint: B1E3 AE2E C867 F491  BF9F 9485 7818 122D 3184 6E22
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-isp/attachments/20050706/4c4e558c/attachment.bin


More information about the freebsd-isp mailing list