MRTA (Multi Router Traffic Accounting) is the complete package for IP traffic accounting. It has been designed to support larger ISP networks with the large number of routers.
Package consist of the daemon 'mrtad' that manages firewall setup, communicates
with SQL server, keeps statistic, etc, CGI utility 'mrtastat' and console utility 'mrtareport' to produce various accounting reports.
Currently MRTA support MySql and Postgres SQL server.
MRTA is still under development and requires some work.