Commit 6c89e0fe authored by Štěpán Henek's avatar Štěpán Henek 🌩 Committed by Josef Schlehofer

follectd: fix neighbours count

parent d3fb0820
......@@ -8,7 +8,9 @@
include $(TOPDIR)/rules.mk
PKG_NAME:=follectd
PKG_VERSION:=4
PKG_VERSION:=5
PKG_RELEASE:=1
PKG_MAINTAINER:=CZ.NIC <packaging@turris.cz>
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)
......
HOSTNAME="${COLLECTD_HOSTNAME:-localhost}"
INTERVAL="${COLLECTD_INTERVAL:-60}"
VALUE="$(ip n | wc -l)"
VALUE="$(ip n | cut -d " " -f5 | sort -u | grep ..:..:..:..:..:.. | wc -l)"
echo "PUTVAL \"$HOSTNAME/exec-neighbours/gauge-neighbours\" interval=$INTERVAL N:$VALUE"
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment