this post was submitted on 08 Jan 2024
10 points (91.7% liked)

Debian

811 readers
1 users here now

❤️ Debian

Rules

founded 1 year ago
MODERATORS
 

Is there a way to get a report for historic network activity? Right now, I've installed sysstat and learning to use that. My search engine searching has got some results, but when I read about some programs that monitor activity, I'm not sure if I am overlooking something or if they don't offer it or if I have combed the doc files enough so figured I'd ask here.

I'm teaching myself how to run my own server. Starting with storage needs and then seeing how it goes from there. I'm hoping to find a way to get a report of past traffic/activity specifically.

Running Debian 12.

top 5 comments
sorted by: hot top controversial new old
[–] [email protected] 2 points 6 months ago

Past data, no. It's not actively logged anywhere.

[–] VelveteenUnderground 2 points 6 months ago

Cockpit has a network history feature.

[–] [email protected] 2 points 6 months ago

For a simple way to do what you want, you can use vnstat. It can give you totals per interface, hour, day, week, month, etc.

Of course it can only show figures captured after it was installed.

[–] ik5pvx 2 points 6 months ago

There are many options, but you have to search for network graphs ...

Here are some names that come off the top of my head:

MRTG - a classic, serves as basis for many other tools. Can monitor anything that has SNMP and if you do some scripting also things without SNMP.

Cacti - a bit more evolute than the above, but same concept.

LibreNMS - this one uses a database for storing data. Can monitor network elements as well as servers. Nice graphs. There's no .deb but it's easy to install.

Prometheus - this can monitor a lot of things, you will need a graphing front end to get the most of it.

Grafana - coupled with Prometheus or any other modern data collection tool it's a very powerful graphing and reporting tool. A bit daunting maybe, it requires some learning.

There are many others, some generic, some specialized. Pick one and try it, if you don't like the results there's plenty of choices. A VM will help with not cluttering your server.

[–] jjhanger 1 points 6 months ago

Thanks everyone! Will be checking these out.