From 0fe93fc3a3c9402a5d0af4415ed140df20f14953 Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Fri, 28 Jul 2017 15:57:44 +0200 Subject: 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 --- .../luci-app-nlbwmon/root/etc/uci-defaults/40_luci-nlbwmon | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 applications/luci-app-nlbwmon/root/etc/uci-defaults/40_luci-nlbwmon (limited to 'applications/luci-app-nlbwmon/root') 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 -- cgit v1.2.3