Before, there were 1+n calls of df where n is the number of output values. I introduced some script magic to use the values from the
first call. Motivation was, there was a very complex sed call which failed to process some of my df output lines. The new code is much
safer.
Actually, the original problem obviously was that the sed regex didn't cover capital letters which I had in my mountpoints.
Previously multiple "server" lines were consumed, but the output of the
awk filter lacked the line ending. Thus the last numeric value of the
previous "server" line was concatenated with the first numeric value of
the following "server" line. Thus multiple dots occurred in a single
numeric value and parsing just failed.
Thanks, glyndon!
Closes: #16
Previously an input token with a leading hyphen (e.g. "-n") could be
inadvertently interpreted by "echo" instead of being taken literally.
No further damage was possible, but this would have been unexpected.
Previously only the first line of the configuration file (without a
comment) was applied during build.
Thus `DF_IGNORE_FILESYSTEM_REGEX` was previously ignored.
Reported and fixed by Tobias Meyer, thanks!
Raspberry Pi has line "FIQ: usb_fiq" in /proc/interrupts.
"VALUE=$((VALUE + VAL))" results "Illegal number" in dash (Raspberry Pi)
"VALUE=$((VALUE + $VAL))" works in dash, bash and busybox (OpenWrt).
It's executed as shell script. For example, you can remove unwanted
plugin by adding following line to /etc/munin/muninlite.conf:
PLUGINS=${PLUGINS/ swap/}
It could also be used to add more plugins (with runtime on/off detection!),
although pluginsdir is the preferred way to do it.
It can also be used to override other hardcoded settings, like NTP_PEER or
DF_IGNORE_FILESYSTEM_REGEX.
Two fixes:
1) Use same regexp to skip df partitions in "config" and "fetch".
2) Use same function (was two different sed) to cleanup partition name.
This fixes bug #5.
Nowadays network interfaces have names like docker0, team0, ip_vti0, eno,
wlp61s0 and so on. Including word "Interface" in beginning of
graph_title groups these graphs together in web interface, not randomly
before/after other network-graphs (ipconntrack, firewall, ...).
See commit 70711831c44 in munin repository for similar change.
The "lrrd" service seems to be some historical cruft, that is no longer
in use. It is still an alias for the "munin" service (port 4949) in
/etc/services, but probably not in use anymore.
Packagers (e.g. for OpenWrt) usually pick a different path (e.g.
/usr/bin/muninlite or /usr/sbin/muninlite), but a native installation
from source should point to /usr/local/... by default.
The change affects only examples, thus it should do no harm.