|
|
| Author |
Message |
aditya.sharma
Joined: 05 Aug 2008 Posts: 2
|
Posted: Thu Aug 07, 2008 3:49 am Post subject: How to trace bandwidth on per ip/user basis |
|
|
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 |
|
| Back to top |
|
 |
Linegod Developer
Joined: 20 Feb 2003 Posts: 517 Location: Canada
|
Posted: Sat Aug 09, 2008 10:31 am Post subject: |
|
|
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... |
|
| Back to top |
|
 |
SoftDux
Joined: 19 Jun 2008 Posts: 37 Location: Johannesburg, South Africa
|
Posted: Wed Aug 13, 2008 1:23 pm Post subject: |
|
|
| 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? |
|
| Back to top |
|
 |
Howie Cacti Guru User
Joined: 16 Sep 2004 Posts: 2167 Location: United Kingdom
|
Posted: Wed Aug 13, 2008 3:26 pm Post subject: |
|
|
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. |
|
| Back to top |
|
 |
SoftDux
Joined: 19 Jun 2008 Posts: 37 Location: Johannesburg, South Africa
|
Posted: Wed Aug 13, 2008 4:32 pm Post subject: |
|
|
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  |
|
| Back to top |
|
 |
gandalf Developer
Joined: 02 Dec 2004 Posts: 12295 Location: Muenster, Germany
|
Posted: Thu Aug 14, 2008 8:15 pm Post subject: |
|
|
Please consider the flowview plugin
Reinhard |
|
| Back to top |
|
 |
SoftDux
Joined: 19 Jun 2008 Posts: 37 Location: Johannesburg, South Africa
|
Posted: Tue Oct 14, 2008 12:55 am Post subject: |
|
|
| 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. |
|
| Back to top |
|
 |
|