summaryrefslogtreecommitdiffhomepage
path: root/applications/luci-app-nlbwmon/root
diff options
context:
space:
mode:
authorJo-Philipp Wich <jo@mein.io>2017-07-28 15:57:44 +0200
committerJo-Philipp Wich <jo@mein.io>2017-08-05 14:27:26 +0200
commit51a9b0df486869b3060cb9a6910b3a6e8b18f3a3 (patch)
tree39bd95bd799fddb463128fc4a84d232ed2c920c9 /applications/luci-app-nlbwmon/root
parent580f012cf48d441c52c55fedcf6f64a5f34d9d4d (diff)
luci-app-nlbwmon: new package
This commit introduces luci-app-nlbwmon, a frontend for nlbwmon, the lightweight NetLink BandWidth Montor. The nlbwmon daemon gathers per-host traffic statistics by querying netlink accounting data. Due to this approach, the executable is very small and does not rely on libpcap and CPU intensive raw sockets to monitor traffic. Depends on PR https://github.com/openwrt/packages/pull/4646 Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Diffstat (limited to 'applications/luci-app-nlbwmon/root')
-rw-r--r--applications/luci-app-nlbwmon/root/etc/uci-defaults/40_luci-nlbwmon11
1 files changed, 11 insertions, 0 deletions
diff --git a/applications/luci-app-nlbwmon/root/etc/uci-defaults/40_luci-nlbwmon b/applications/luci-app-nlbwmon/root/etc/uci-defaults/40_luci-nlbwmon
new file mode 100644
index 0000000000..c9771779ee
--- /dev/null
+++ b/applications/luci-app-nlbwmon/root/etc/uci-defaults/40_luci-nlbwmon
@@ -0,0 +1,11 @@
+#!/bin/sh
+
+uci -q batch <<-EOF >/dev/null
+ delete ucitrack.@nlbwmon[-1]
+ add ucitrack nlbwmon
+ set ucitrack.@nlbwmon[-1].init=nlbwmon
+ commit ucitrack
+EOF
+
+rm -f /tmp/luci-indexcache
+exit 0