Should vnstat be running continuously (daemon or otherwise) to update it's database

Alexander Dalloz ad+lists at uni-x.org
Wed Jul 27 11:37:48 UTC 2005


Am Mi, den 27.07.2005 schrieb Parameshwara Bhat um 9:11:

> Attn: Mr.Alexander Dalloz,

Hello :)

> I have installed vnstat to collect network traffic information. It's man  
> page says it collects data from /proc entries. Now my question is, should  
> I be running it as a daemon or in the background or as a bootup/shutdown  
> sequence so that each time my desktop goes down, it is able to collect  
> data from /proc as I guess /proc data is dynamic .

> Parameshwara Bhat

It is usual to let vnstat run from a cronjob. The vnstat package from
Fedora Extras ships that cronjob in /etc/cron.d/vnstat. It runs every 5
minutes and updates the database. If you prefer you can add "vnstat -u"
in a script run at shutdown to let it log more precisely (or lower the
cronjob frequency to 1 per minute).

Alexander


-- 
Alexander Dalloz | Enger, Germany | GPG http://pgp.mit.edu 0xB366A773
legal statement: http://www.uni-x.org/legal.html
Fedora Core 2 GNU/Linux on Athlon with kernel 2.6.11-1.35_FC2smp 
Serendipity 13:32:55 up 11 days, 18:05, load average: 0.09, 0.13, 0.08 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: Dies ist ein digital signierter Nachrichtenteil
URL: <http://listman.redhat.com/archives/fedora-list/attachments/20050727/ef53a93f/attachment-0001.sig>


More information about the fedora-list mailing list