TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

VnStat – A network traffic monitor for Linux and BSD

70 pointsby merahalmost 10 years ago

3 comments

tuxalmost 10 years ago
You can also use vnstat with vnstati to generate nice graphs.<p>I use it something like this with cron.<p>Bash - <a href="https:&#x2F;&#x2F;github.com&#x2F;tuxy&#x2F;bash&#x2F;blob&#x2F;master&#x2F;vnstat.sh" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;tuxy&#x2F;bash&#x2F;blob&#x2F;master&#x2F;vnstat.sh</a><p>HTML - <a href="https:&#x2F;&#x2F;github.com&#x2F;tuxy&#x2F;static&#x2F;blob&#x2F;master&#x2F;vnstat.html" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;tuxy&#x2F;static&#x2F;blob&#x2F;master&#x2F;vnstat.html</a>
mrpippyalmost 10 years ago
I&#x27;ve used vnstat for traffic monitoring on Linux&#x2F;BSD routers for years, simple and does the job. The on-disk format is <i>not</i> machine-independent though, I had to start my records over when OpenBSD went to 64-bit time_t.
评论 #9913304 未加载
Cieplakalmost 10 years ago
Been looking for a tool like iptraf or nethogs for OSX. nettop is ok. My favorite thus far are these two dtrace scripts for tracing network connections:<p>soconnect.d: <a href="http:&#x2F;&#x2F;dtracebook.com&#x2F;index.php&#x2F;Network_Lower_Level_Protocols:soconnect.d#Mac_OS_X" rel="nofollow">http:&#x2F;&#x2F;dtracebook.com&#x2F;index.php&#x2F;Network_Lower_Level_Protocol...</a><p>soaccept.d: <a href="http:&#x2F;&#x2F;dtracebook.com&#x2F;index.php&#x2F;Network_Lower_Level_Protocols:soaccept.d#Mac_OS_X" rel="nofollow">http:&#x2F;&#x2F;dtracebook.com&#x2F;index.php&#x2F;Network_Lower_Level_Protocol...</a><p>If you&#x27;re on OSX and want to play around with dtrace, there are a bunch of really cool built-in scripts:<p><pre><code> man -k dtrace</code></pre>
评论 #9913928 未加载