Cacti (home)ForumsRepositoryDocumentation
Cacti: offical forums and support  

 FAQFAQ   SearchSearch   MemberlistMemberlist    RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in    


How to trace bandwidth on per ip/user basis

 
Post new topic   Reply to topic    Cacti Forum Index -> Scripts and Templates
Author Message
aditya.sharma



Joined: 05 Aug 2008
Posts: 2

PostPosted: Thu Aug 07, 2008 3:49 am    Post subject: How to trace bandwidth on per ip/user basis Reply with quote

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: 543
Location: Canada

PostPosted: Sat Aug 09, 2008 10:31 am    Post subject: Reply with quote

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

PostPosted: Wed Aug 13, 2008 1:23 pm    Post subject: Reply with quote

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: 2252
Location: United Kingdom

PostPosted: Wed Aug 13, 2008 3:26 pm    Post subject: Reply with quote

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

PostPosted: Wed Aug 13, 2008 4:32 pm    Post subject: Reply with quote

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: 12604
Location: Muenster, Germany

PostPosted: Thu Aug 14, 2008 8:15 pm    Post subject: Reply with quote

Please consider the flowview plugin
Reinhard
Back to top
SoftDux



Joined: 19 Jun 2008
Posts: 37
Location: Johannesburg, South Africa

PostPosted: Tue Oct 14, 2008 12:55 am    Post subject: Reply with quote

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
Display posts from previous:   
Post new topic   Reply to topic    Cacti Forum Index -> Scripts and Templates All times are GMT - 5 Hours
Page 1 of 1

 



Powered by phpBB © 2001, 2005 phpBB Group