Archiv verlassen und diese Seite im Standarddesign anzeigen : ifconfig traffic speichern
Gibt's ne Möglichkeit die von ifconfig angezeigten Trafficwerte beim shutdown zu sichern, damit sie nach dem reboot nicht resetet werden?
MatrixP
2004-09-06, 16:21:40
Gibt's ne Möglichkeit die von ifconfig angezeigten Trafficwerte beim shutdown zu sichern, damit sie nach dem reboot nicht resetet werden?
Wärs nicht effektiver nen anständigen Traffic Counter zu nutzen?
Und was ist ein "anständiger Traffic Counter" :)
Sowas hab ich nämlich nicht gefunden.
Und btw. nicht nur TCP, UDP usw. ich will den kompletten Traffic loggen.
MatrixP
2004-09-06, 16:44:28
Und was ist ein "anständiger Traffic Counter" :)
Sowas hab ich nämlich nicht gefunden.
Und btw. nicht nur TCP, UDP usw. ich will den kompletten Traffic loggen.
Ein Programm was nicht nach einigen Tagen/Wochen den Stand der Dinge ändert ;). Kenn selber keins, aber google kennst doch ;)
Witzbold. Ich würde hier nicht fragen, wenn ich nicht bereits gesucht hätte, ist doch logisch.
klutob
2004-09-06, 17:30:22
"traffic-vis" finde ich cool-> generiert eine Zusammenfassung in eine Textdatei und kann diese auch noch aufbereiten (HTML, GIF, PS).
Vllt. wäre das etwas für dich.
README:
This is traffic-vis, a free network traffic monitor package.
traffic-vis is a suite of tools to help determine which hosts have
been communicating on an IP network, with whom they have been
communicating and the volume of communication taking place on a host
by host basis.
This release (0.3x) breaks the monolithic traffic-vis program into
man pieces. traffic-collector, a daemon which collects (duh) and
summarises network traffic and will produce a report upon receipt of a
SIGUSR1. This report is in text format, but is not designed to be read
by humans. A bunch of tools are provided to process this and convert
it into a human-readable report:
traffic-resolve, a small tool to resolve the hostnames in a
traffic-collect log. traffic-exclude, which excludes hosts from the
summary based on IP address. traffic-sort, which sorts and limits the
size of a report and three front-ends: traffic-tops, traffic-totext
and traffic-tohtml which take produce postscript, text and HTML
reports respectively.
A worked example:
traffic-collector --summary-file /tmp/summary.tv
# (wait 5 minutes while it collects network traffic)
killall -USR1 traffic-collector
traffic-sort -Hb -Pb -L60 < /tmp/summary.tv > /tmp/report-sorted.tv
traffic-resove < /tmp/report-sorted.tv > /tmp/report-resolved.tv
traffic-tohtml < /tmp/report-resolved.tv > /tmp/report.html
traffic-tops < /tmp/report-resolved.tv > /tmp/report.ps
traffic-togif < /tmp/report-resolved.tv > /tmp/report.gif
Of course, several of these steps could be combined onto a single
commandline.
This approach offers a lot more flexability than the previous "one
program does everything" system. It also allows for the manipulation
of reports by non-root users.
traffic-vis requires libpcap 0.4 to build. This is available from
ftp://ftp.ee.lbl.gov. The collector reads raw network frames, so it
needs to be run as root (I strongly recommend against making it SUID).
The traffic-togif script requires Ghostscript and the PBM utilities
to work. All of these are included with Redhat 5.2, and should be
available for Debian as well.
You will also need glib. I have developed traffic-vis using
glib-1.1.15 but I think older versions should work too. glib is
available from ftp://ftp.gimp.org/pub/gtk/v1.1/ RedHat users will
probably want to use the RPM version, this is included on the RedHat
5.2 CD in the directory "/gnome", otherwise it can be downloaded from
ftp://ftp.gnome.org/pub/GNOME/redhat/latest/i386/
If you are compiling from source, you will probably have to modify the
top-level makefile to match the location of your libraries and include
files. libpcap does not by default install the necessary files, so it
is easiest to add a -I/path/to/libpcap-4.0 to the INCLUDES line in the
makefile. You might also have to edit traffic-togif and tell it the
locations of your Ghostscript and PBMutils.
Traffic-vis has its very own homepage at:
http://www.mindrot.org/traffic-vis.html
Your ideas, flames, bug-reports and (hopefully) patches greatfully
accepted.
Damien Miller <djm@mindrot.org>
tschö
BananaJoe
2004-09-06, 21:15:54
Ich benutz immer gkrellm, der zeigts einem auch freundlichweise an. Tag/Woche/Monat.
(del676)
2004-09-09, 20:44:12
vnstat
Gnafoo
2004-09-10, 00:50:53
Würde auch vnstat empfehlen .. habs selber vor ein paar Tagen bei mir installiert. Das muss nicht die ganze Zeit im Hintergrund laufen ..
Einfach per Cron-Job alle paar Stunden den Zähler aktualisieren lassen und gut ist.
cu DerTod
Danke, vnstat ist das erste was funktioniert, wie ich will :)
ilPatrino
2004-09-10, 03:02:44
versuch mal onlinecalc. simple console-anwendung, funzt bei mir seit ewigkeiten problemlos
vBulletin®, Copyright ©2000-2025, Jelsoft Enterprises Ltd.