Author Topic: vnstat being awkward  (Read 916 times)

Bari

  • Guest
vnstat being awkward
« on: May 02, 2010, 02:27:11 AM »
does anyone run vnstat in 2010. I just can't get it to work properly.  I can't get it to update the database without going to the superuser console and forcing it to update with vnstat -u. in all previous installations it has worked fine. It does appear in the manage system services list but is listed as stopped and I can't get it to start. I have read somewhere that it should update about every five mins. Here is the output of  etc/cron.d/vnstat cron
# run vnstat update every 5 minutes if installed
*/5 *   * * *   root   if [ -x /usr/bin/vnstat ] && [ `ls /var/lib/vnstat/ | wc -l` -ge 1 ]; then /usr/bin/vnstat -u; fi

and the output of usr/sbin/vnstat.cron
#!/bin/bash
# this script (/usr/sbin/vnstat.cron) reads /etc/sysconfig/vnstat
# to start /usr/bin/vnstat.
# example for /etc/sysconfig/vnstat:
# VNSTAT_OPTIONS="-u -i eth0"
# see also: vnstat(1)

VNSTAT_CONF=/etc/sysconfig/vnstat

if [ ! -f  ]; then
        exit 0
fi

. $VNSTAT_CONF

/usr/bin/vnstat $VNSTAT_OPTIONS

any info would be appreciated


Offline menotu

  • PCLinuxOS Tester
  • Super Villain
  • *******
  • Posts: 15304
  • ┌∩┐(◕_◕)┌∩┐
Re: vnstat being awkward
« Reply #1 on: May 02, 2010, 02:09:28 PM »
Would it be worth trying another kernel?
PCLinuxOS 32bit KDE 4.10.1; kernel-3.4.11-pclos1.bfs & 64bit 3.2.18bfs; NVidia GeForce 8400GS 1GB 310.19 driver

Sony Vaio SVE1513A4ESI Laptop, Intel Core i5, 2.6GHz, 6GB RAM, 750GB, 15.6" Intel HD Graphics 4000

Offline Joble

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 6804
  • USA - Mountain Time
Re: vnstat being awkward
« Reply #2 on: May 05, 2010, 12:30:33 PM »
I can confirm that about the daemon not starting in pcc or a terminal.  Discovered that while troubleshooting another report.

http://www.pclinuxos.com/forum/index.php/topic,72096.0.html
Search First.
Forum Rules
Hero means I talk a lot, nothing more, nothing less!
Have an Awesome Day!
Healthy System