Difference between revisions of "vnstat"

From thelinuxwiki
Jump to: navigation, search
(scratch)
Line 13: Line 13:
  
 
== scratch ==
 
== scratch ==
 +
 +
 +
create monitor accounts on destinations
 +
configure authorized_keys
 +
test account
 +
install vncstat / vncstatd
 +
add vncstatd to startup
 +
 
   
 
   
 
  # chown root:monitor /var/lib/vnstat/*
 
  # chown root:monitor /var/lib/vnstat/*
 
  echo "#!/bin/bash" >> /etc/rc4.d/S11vncstatd
 
  echo "#!/bin/bash" >> /etc/rc4.d/S11vncstatd
 
  echo "/usr/sbin/vnstatd -d" >> /etc/rc4.d/S11vncstatd
 
  echo "/usr/sbin/vnstatd -d" >> /etc/rc4.d/S11vncstatd

Revision as of 20:39, 23 July 2013


# vnstat --testkernel
# vnstat --iflist
Available interfaces: lo eth0 


# vnstat -u -i eth0
Error: Unable to read database "/var/lib/vnstat/eth0".
Info: -> A new database has been created.


scratch

create monitor accounts on destinations configure authorized_keys test account install vncstat / vncstatd add vncstatd to startup


# chown root:monitor /var/lib/vnstat/*
echo "#!/bin/bash" >> /etc/rc4.d/S11vncstatd
echo "/usr/sbin/vnstatd -d" >> /etc/rc4.d/S11vncstatd