SOURCES: vnstat-cron (NEW), vnstat.cron (NEW), vnstat.sysconfig (N...

adamg adamg at pld-linux.org
Sat Apr 5 13:02:48 CEST 2008


Author: adamg                        Date: Sat Apr  5 11:02:48 2008 GMT
Module: SOURCES                       Tag: HEAD
---- Log message:
- new

---- Files affected:
SOURCES:
   vnstat-cron (NONE -> 1.1)  (NEW), vnstat.cron (NONE -> 1.1)  (NEW), vnstat.sysconfig (NONE -> 1.1)  (NEW)

---- Diffs:

================================================================
Index: SOURCES/vnstat-cron
diff -u /dev/null SOURCES/vnstat-cron:1.1
--- /dev/null	Sat Apr  5 13:02:48 2008
+++ SOURCES/vnstat-cron	Sat Apr  5 13:02:43 2008
@@ -0,0 +1,9 @@
+#!/bin/sh
+
+VNSTAT_CONF=/etc/sysconfig/vnstat
+
+[ -f $VNSTAT_CONF ] || exit 0
+
+. $VNSTAT_CONF
+
+/usr/bin/vnstat $VNSTAT_OPTIONS

================================================================
Index: SOURCES/vnstat.cron
diff -u /dev/null SOURCES/vnstat.cron:1.1
--- /dev/null	Sat Apr  5 13:02:48 2008
+++ SOURCES/vnstat.cron	Sat Apr  5 13:02:43 2008
@@ -0,0 +1,3 @@
+MAILTO=root
+# to enable interface monitoring via vnstat remove comment on next line
+*/5 * * * *  vnstat /usr/sbin/vnstat-cron

================================================================
Index: SOURCES/vnstat.sysconfig
diff -u /dev/null SOURCES/vnstat.sysconfig:1.1
--- /dev/null	Sat Apr  5 13:02:48 2008
+++ SOURCES/vnstat.sysconfig	Sat Apr  5 13:02:43 2008
@@ -0,0 +1,7 @@
+# see also: vnstat(1)
+#
+# starting with vnstat-1.6 vnstat can also be
+# configured via %{_sysconfdir}/vnstat.conf
+#
+# the following sets vnstat up to monitor eth0
+VNSTAT_OPTIONS="-u -i eth0"
================================================================


More information about the pld-cvs-commit mailing list