why not use https://collectd.org/ which is in C and used by openwrt's luci already along with rrdtool, small in size, low on resource, and has so many plugins already?
I wanted something that would run anywhere with no dependencies. This might work on OpenWrt, but would be trickier to setup on Debian.
you can compile with specific plugins and features you need with ./configure and that cuts out most of the dependencies.
collectd + minimal plugins would still be 100+ kB installed on OpenWrt. Plus I'd have to write a solution to get the data into Home Assistant.
Re:μMon: Stupid simple monitoring
by protoplancton on Monday September 25, 2023 @06:29AM
(#37641625)
Did you have a look at https://www.monitorix.org/ ? I'm not sure if it works on OpenWRT, but otherwise checks all the boxes.
It requires Perl, which ruled out OpenWrt devices with ~10 Kb of space.
Did you try VictoriaMetrics [1] and vmagent [2]? It is a single self-contained binary without external dependencies. It requires relatively low amounts of CPU, RAM, disk space and disk IO, and it runs on ARM.
I ended up hacking together a shell script to send data to Home Assistant (via MQTT) which runs on pretty much any system that has at least netcat: https://github.com/roger-/hass-sysmon