Changes

From SME Server
Jump to navigationJump to search
917 bytes added ,  21:02, 2 November 2013
Line 10: Line 10:     
====Configuring Dag repository====
 
====Configuring Dag repository====
{{Repository|Dag}}
+
You need to activate the [[Dag]] reposity before installing this contrib.<br />
 +
 
 +
see [[dag|dag repository]] <br />
    
====Install vnStat====
 
====Install vnStat====
 
If you have configured the dag repository, installation is as simple as:
 
If you have configured the dag repository, installation is as simple as:
 
  yum install vnstat --enablerepo=dag
 
  yum install vnstat --enablerepo=dag
 +
signal-event post-upgrade
 +
signal-event reboot
    
====Add the monitored Interfaces====
 
====Add the monitored Interfaces====
Line 22: Line 26:     
You should get an error about the database not existing but it will also say it created it. It is safe to ignore the error message.
 
You should get an error about the database not existing but it will also say it created it. It is safe to ignore the error message.
 +
 +
you also need to edit /etc/sysconfig/vnstat to add your iface to the update job
 +
 +
vim /etc/sysconfig/vnstat
 +
 +
VNSTAT_OPTIONS="-u"
 +
see http://forums.contribs.org/index.php/topic,45174.0.html
    
===Install vnStat PHP FrontEnd===
 
===Install vnStat PHP FrontEnd===
Line 45: Line 56:     
Wait and you should see the application working at http://yourserverIP/vnstat_php_frontend-1.4.1
 
Wait and you should see the application working at http://yourserverIP/vnstat_php_frontend-1.4.1
 +
 +
===Troubleshooting===
 +
 +
It is advisable to make the following change (as per user advice here http://forums.contribs.org/index.php/topic,45174.msg218884.html#msg218884)
 +
 +
Edit the vnstat cron file
 +
nano /etc/cron.d/vnstat
 +
 +
Change the line
 +
*/5 * * * * nobody /usr/sbin/vnstat.cron
 +
to read
 +
*/5 * * * * root /usr/sbin/vnstat.cron
 +
 +
Restart crond.
 +
service crond restart
 +
 +
===References===
 +
 +
http://forums.contribs.org/index.php/topic,45174.0.html
 +
 +
http://forums.contribs.org/index.php/topic,48420.0.html
 +
 +
http://forums.contribs.org/index.php/topic,48422.0.html
 +
 +
http://humdi.net/vnstat/
    
----
 
----
 
[[Category: Howto]]
 
[[Category: Howto]]
 
[[Category: Administration:Monitoring]]
 
[[Category: Administration:Monitoring]]

Navigation menu