From 3ce7ee74112e118918ae8b33309c7766c5d3fbde Mon Sep 17 00:00:00 2001 From: Astro Date: Fri, 27 May 2022 02:08:03 +0200 Subject: [PATCH] pkgs/openwrt/uci-config: add /etc/collectd.conf --- nix/pkgs/openwrt/uci-config.nix | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/nix/pkgs/openwrt/uci-config.nix b/nix/pkgs/openwrt/uci-config.nix index 7c62354..bf5e6a9 100644 --- a/nix/pkgs/openwrt/uci-config.nix +++ b/nix/pkgs/openwrt/uci-config.nix @@ -324,6 +324,27 @@ in __SH__ chmod a+rx /usr/sbin/wifi-on-link.sh /etc/init.d/cron restart + + cat > /etc/collectd.conf < + Server "${config.site.net.serv.hosts6.dn42.stats}" "25826" + + COLLECTD ''} for svc in dnsmasq uhttpd ; do