Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
argus - count bandwidth in MB / day
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
walterw
Guru
Guru


Joined: 17 Oct 2003
Posts: 464

PostPosted: Tue Oct 03, 2017 3:48 am    Post subject: argus - count bandwidth in MB / day Reply with quote

Hi,

I'm trying to generate some reports around bandwidth, so I can get a better idea of usage patterns. I use argus to log network activity, so I'm thinking I could leverage it. This is what I came up with and also started to play with rabins, but I cannot aggregate on the date, so it seems it won't really help me out.


Code:

ra -nnr /var/log/argus/argus.out -t 2017/09/26 -s bytes | sed -e "1d" | paste -sd+ - | bc


This should count all of the traffic in bytes for 09/26 of 2017, including internal and external traffic (since I have argus configured to listen on all interfaces).

Assuming I want to leverage argus, is this sufficient, or is there a better approach with argus?

Lastly, if I just want to do bandwidth counts, would you recommend a tool like vnstat to just count bandwidth?


Thanks,

Walter
Back to top
View user's profile Send private message
mike155
Veteran
Veteran


Joined: 17 Sep 2010
Posts: 1452
Location: Frankfurt, Germany

PostPosted: Tue Oct 10, 2017 11:10 pm    Post subject: Reply with quote

Quote:
Lastly, if I just want to do bandwidth counts, would you recommend a tool like vnstat to just count bandwidth?

I like vnstat very much. I installed and configured it a couple of years ago on my internet gateway - and it has been working without any problems since then.

In my setup, vnstat records rx an tx transfer volume at the end of every 30 minutes. I use vnstat to obtain total transfer volume at the end of each month. Furthermore, vnstat can show detailed statistics about volume and bandwidth over the last 12 months, last 31 days or last 24 hours.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum