trafstats8
Gather and store network usage data into a postgresql database
Usage
trafstats [OPTIONS]
Overview
trafstats uses libpcap to constantly sniff and periodically store into a database accurate traffic usage statistics.
Options
|
Specify which interface to sniff on. |
|---|---|
|
Specify the delay in seconds between storing the statistics into the database. |
|
Specify the amount of time in seconds before a new timestamp will be generated. |
|
Specify the name of the database to use. |
|
Specify what username to access the database as. |
-
-M, --no-daemon -
Do not detach; instead keep running in the foreground.
-Vvalue, --verbose value-
Specify the amount of verbosity to use. These values correspond loosely to the definitions in syslog.h. Anything higher than 7 (equiv to LOG_DEBUG) will generate incredible amounts of syslog traffic and probably has some privacy issues as well.
-
-C, --ip-only -
Do not store source and destination ports; instead keeping them zeroed. This is useful if your network has a very large number of computers and the database server is not so large. This will decrease the amount of entries stored in the database by an order of 10-50 except in extreme circumstances.
-
-q, --quiet -
Equivalent of --verbose 0; do not send ANY log messages, even critical/terminal ones. Not recommended.
-vincrease the verbosity level by one.