How to trace bandwidth on per ip/user basis

Templates, scripts for templates, scripts and requests for templates.

Moderators: Developers, Moderators

Post Reply
aditya.sharma
Posts: 2
Joined: Tue Aug 05, 2008 8:37 am

How to trace bandwidth on per ip/user basis

Post by aditya.sharma »

Hi All,
Presently i am developing a project for ISP provider company. On the basis of project requirement i am developing a module that's detect the bandwidth on per IP address. So for this i have install CACTI on my server FREE BSD.

* Can any body help me how to create a graph or detect the bandwidth of INTERNET on per ip and user basis using CACTI.


Thanks & Regards
Aditya Sharma
User avatar
Linegod
Developer
Posts: 1626
Joined: Thu Feb 20, 2003 10:16 am
Location: Canada
Contact:

Post by Linegod »

Unless the device already returns that information, Cacti cannot do that directly.

You have to build a method of returning that information, and then Cacti can graph it...
--
Live fast, die young
You're sucking up my bandwidth.

J.P. Pasnak,CD
CCNA, LPIC-1
http://www.warpedsystems.sk.ca
SoftDux
Posts: 39
Joined: Thu Jun 19, 2008 9:24 am
Location: Johannesburg, South Africa
Contact:

Post by SoftDux »

I'm also looking for a way to graphs traffic on a per IP basis, which will help a lot with VPS / Virtual Server traffic graphing. How can I do it?
User avatar
Howie
Cacti Guru User
Posts: 5508
Joined: Thu Sep 16, 2004 5:53 am
Location: United Kingdom
Contact:

Post by Howie »

There are tools to do this outside of Cacti. Look for information about netflow, or ntop, for example. You'll need to figure out how to get data into Cacti then, though.

If you are doing it all from one server (like VPS), then you might be able to use the kernel's firewall to do it. For example, FreeBSD ipfw has byte-counters per firewall policy, so you can see per-policy how much traffic is passed. Make one 'allow' policy per IP. Write a Script Query to read the counters.
Weathermap 0.98a is out! & QuickTree 1.0. Superlinks is over there now (and built-in to Cacti 1.x).
Some Other Cacti tweaks, including strip-graphs, icons and snmp/netflow stuff.
(Let me know if you have UK DevOps or Network Ops opportunities, too!)
SoftDux
Posts: 39
Joined: Thu Jun 19, 2008 9:24 am
Location: Johannesburg, South Africa
Contact:

Post by SoftDux »

I have tried ntop, but ntop doesn't save the traffic stats like Cacti does, and I'd really like to be able to see traffic over a period of time, since we're hosting VPS clients on the server.

The server is Linux, so I can't even make use of FreeBSD's firewall stuff :(
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

Please consider the flowview plugin
Reinhard
SoftDux
Posts: 39
Joined: Thu Jun 19, 2008 9:24 am
Location: Johannesburg, South Africa
Contact:

Post by SoftDux »

Neither of these options will work with XEN (or probably even with Virtuzzo / VMware), since the IP's are not actually visible on the host node. Each VPS has a vrtual interface on the host node, which connects directly to the network.
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest