Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

I trying to configure vnstat...and anyway when I do vnstat -u it does say it updates but data does not change...if I do vnstat -l for live view and then go out of it and do vnstat -u it does update

Is there a way I can do it without being in live all the time?

share|improve this question

1 Answer 1

Type "ps aux | grep vnstat" in a terminal

You should see a line like this:

root 1091 0.0 0.0 1956 596 ?  Ss   17:21   0:00 /usr/sbin/vnstatd -d

If not, it means the update daemon is not running.
Several causes:
- the computer was not rebooted since you installed vnstat
- the daemon is not installed (type "ll /etc/init.d/vnstat" and check that no error message is returned)

As soon as the daemon is running with default settings, you will have updates of stats every 5 minutes. Just type "vnstat" at 5 minutes intervall to validate (check the first line "Database updated ")

share|improve this answer
    
Daemon is running. Still doesn't update :( –  Josip Gòdly Zirdum Feb 3 '12 at 19:47

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.