Community discussions

MikroTik App
 
ekkas
Long time Member
Long time Member
Topic Author
Posts: 567
Joined: Mon Sep 26, 2005 1:01 pm
Location: South Africa

Stats needed

Wed Dec 16, 2009 10:23 am

I need to know the ratio of certain services (ports) used by my network, eg. port 80,8080,443, 8443,25,110,1723,5060, the_rest

Is there a way to get info like this? I already parse the ip/accounting details for IP-pairs & usage stats but need to add port details to that to determine the ratio between ftp, pop, smtp, sip, http & https traffic to all other traffic. I don't need per-ip, just total traffic per-port through router.

Ekkas
 
User avatar
normis
MikroTik Support
MikroTik Support
Posts: 26378
Joined: Fri May 28, 2004 11:04 am
Location: Riga, Latvia

Re: Stats needed

Wed Dec 16, 2009 10:51 am

You can use the Torch to see traffic types.

The Dude does nice job with the Torch:

torch.png
You do not have the required permissions to view the files attached to this post.
 
ekkas
Long time Member
Long time Member
Topic Author
Posts: 567
Joined: Mon Sep 26, 2005 1:01 pm
Location: South Africa

Re: Stats needed

Wed Dec 16, 2009 11:03 am

Ok, thanks I'll check it out but what would be nice is to get it off router so I can log it in my own software to draw stats/totals over time. I can use API or Telnet from my software to get the info.

This will already help a lot, thank you.

Ekkas

Edit: This will work just fine, I just set the seconds to 60 or so and already see the trends I was expecting.
 
User avatar
Chupaka
Forum Guru
Forum Guru
Posts: 8709
Joined: Mon Jun 19, 2006 11:15 pm
Location: Minsk, Belarus
Contact:

Re: Stats needed

Thu Dec 17, 2009 3:11 pm

for more details, you can try NetFlow (IP -> TrafficFlow) + Ntop or something
 
User avatar
butche
Trainer
Trainer
Posts: 428
Joined: Fri May 28, 2004 6:14 pm
Location: Missouri, USA
Contact:

Re: Stats needed

Sun Dec 20, 2009 8:18 am

You could use the "random" matcher with a log action if you want a longer term approach with less traffic. You can simply parse the generated logs to create reports. The "best" solution is to use Chapuka's suggestion of Netflow data.

Who is online

Users browsing this forum: Bing [Bot] and 117 guests