How to make a realtime traffic monitoring?

The ASUS router has the ability to see a graph of the current traffic
event.asus.com/2012/nw/dummy_ui/en/Main_TrafficMon...

Tell me, what kind of tool you can get the current bandwidth? I mean not visually, but dry figures of the current load. Heard about the net flow, but I think it would be too expensive to use it on slow percent routers.

In General, the main problem I have is this monitoring of the channel load on the web server with the division into domains. Maybe there will be tips on measurement algorithms?
September 26th 19 at 05:56
2 answers
September 26th 19 at 05:58
This is all done via SNMP - once in awhile going to the value of packets transmitted is subtracted from the previous value and draws a graph. Tools for this written already full, but if you want you can nilabati and your. The most popular MRTG.
And Netflow for these purposes, that from a gun on sparrows.
September 26th 19 at 06:00
In General, the main problem I have is this monitoring of the channel load on the web server with the division into domains. Maybe there will be tips on measurement algorithms?
I understand correctly, your web server serves multiple hostnames and you want to know the statistics of the requests for domain names? In this case, I guess, like SNMP and netflow will help you is unlikely. The fact that in the General case, these queries differ in the header "Host:" HTTP-messages. I doubt that the SNMP agent of your router will provide this information. Netflow in these parameters is also not taken into account. If I understand correctly your task, it is more logical to parse the access logs. The obtained data can be sent to the collectd/graphite, for example.

Find more questions by tags Network administrationComputer networks