Commit graph

150 commits

Author SHA1 Message Date
Daniel Alder
f55b83fdbd Improve df
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.
2023-12-13 14:58:34 +01:00
Lars Kruse
a2f1745477 plugin ntpdate: tolerate multiple NTP servers (e.g. in a pool)
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
2022-05-04 14:55:41 +02:00
Kim B. Heino
74927fc6e7
ntpdate: fix typo on graph title 2021-08-22 19:37:40 +03:00
Lars Kruse
631beb931f Release 2.1.2 2021-07-14 13:40:35 +02:00
Lars Kruse
d1e4d3ef7c docs: prepare changelog for release 2021-07-14 13:40:01 +02:00
Lars Kruse
32d4362888 fix: do not interprete leading hyphens in commands as "echo" arguments
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.
2021-07-14 13:40:01 +02:00
Lars Kruse
1f147fcb1c fix: read more than one line from configuration file
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!
2021-07-14 13:39:45 +02:00
Lars Kruse
954395aece doc: add more details to OpenWrt release update checklist 2020-10-19 20:09:49 +02:00
Kim B. Heino
f37e97fa9c
Update RELEASE_CHECKLIST.md 2020-10-19 20:15:53 +03:00
Kim B. Heino
fa0a661bb2
Update RELEASE_CHECKLIST.md 2020-10-19 20:08:06 +03:00
Kim B. Heino
c9f4699c6a Release 2.1.1 2020-10-19 15:34:52 +03:00
Lars Kruse
f8111b2d10 Release documentation: mention upload to github 2020-10-18 22:13:16 +02:00
Kim B. Heino
c0625af54c plugins: don't draw LINE2 where it's not needed 2020-10-18 20:27:05 +03:00
Kim B. Heino
b2ca6a4b8a irqstats: rework previous commit to make shellcheck happy
Tested on dash/bash/busybox.
2020-10-09 15:40:46 +03:00
Kim B. Heino
4c53449fa3 irqstats: fix iqrstats on Raspberry Pi (partial revert for 5190244c)
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).
2020-10-09 15:40:46 +03:00
Kim B. Heino
0ae0f9cdcb
Merge pull request #12 from kimheino/master
muninlite: do not hardcode acceptable network interface names
2020-10-09 10:17:59 +03:00
Kim B. Heino
eef090a1ae muninlite: do not hardcode acceptable network interface names
Interface can be called f.ex. "enp0s31f6" in modern system with
predictable network names enabled. Allow any name instead of
list of hardcoded names.
2020-10-09 10:10:05 +03:00
Kim B. Heino
111bd0ebb3 ntpdate: add "graph_category time" to config 2020-10-08 16:14:17 +02:00
Lars Kruse
62230e900e Release 2.1.0 2020-10-08 14:23:12 +02:00
Lars Kruse
0236ec69e2 Update changelog for previous release (v2.0.1) 2020-10-08 14:23:12 +02:00
Lars Kruse
b7ecc5699b Update documentation 2020-10-08 14:23:11 +02:00
Lars Kruse
c4044f749b Document the new configuration file /etc/munin/muninlite.conf
Also mention Kim B. Heino as an author due to significant contributions.
2020-10-08 14:22:47 +02:00
Kim B. Heino
389c22a0de
muninlite: add support for minimal runtime configuration file (#10)
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.
2020-10-08 14:02:37 +02:00
Lars Kruse
00cfedfd92
Merge pull request #7 from kimheino/wireless
wireless: add new plugin to get info about OpenWRT's APs
2020-10-08 13:28:46 +02:00
Kim B. Heino
1f6d07e52a wireless: cleanup interfaces-variable usage 2020-10-08 07:31:36 +03:00
Kim B. Heino
5206847aa1
df: fix "config" vs "fetch" mismatches (#9)
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.
2020-10-07 19:11:11 +02:00
Kim B. Heino
ebd0cca326
muninlite: do not crash if empty line is received (#8)
Trivial fix for the following error:

  root@naru:~# echo "" | ./muninlite
  ./muninlite: line 696: do_: not found
  root@naru:~#
2020-10-07 19:08:49 +02:00
Kim B. Heino
e6f5722a04 plugins/if: include "Interface" to graph_title for better grouping
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.
2020-10-07 18:41:47 +02:00
Kim B. Heino
d889349332 wireless: fix shellcheck warnings
Shellcheck warned about "dash doesn't support x". This plugin runs
only on OpenWRT and there is no dash...
2020-10-07 13:50:48 +03:00
Kim B. Heino
4bc2b62610 wireless: add new plugin to get info about OpenWRT's APs
Following info is returned, per AP:
- Signal strength (dBm)
- Number of associated clients
2020-10-07 13:20:00 +03:00
Lars Kruse
8046268893 if_: handle "Unknown" emitted by ethtool
Previously error messages were emitted due to this non-numeric value.

Closes: #3
2020-08-22 20:28:09 +02:00
Lars Kruse
710334b615 Remove handling of "lrrd"
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.
2020-07-19 15:44:50 +02:00
Lars Kruse
670a871835 Use /usr/local/bin/muninlite consistently in examples
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.
2020-07-19 15:41:53 +02:00
Lars Kruse
9d596643cc Release 2.0.1 2020-04-12 17:50:27 +02:00
Lars Kruse
a0c555c2bd Makefile: create gzipped release archive
Previously it just looked like a tar.gz file, but it was a plain tar
archive.
2020-04-12 17:49:36 +02:00
Lars Kruse
1b43f16454 Network interface names: tolerate more than one hyphen
Previously the handling of network interface names allowed something
like "foo-bar", but failed over "foo-bar-baz".

Thanks to Kai-Uwe Eckhardt.
2020-04-12 15:53:48 +02:00
B. van Berkum
aad298f892 Fixed category for uptime graph. 2020-02-12 04:38:07 +01:00
Lars Kruse
884fea3ed1 Describe the purpose of the muninlite.conf file 2020-02-12 03:25:29 +01:00
Lars Kruse
bf738ea913 Makefile: sign the release archive instead of the checksum
Additionally the gnupg key identified by the commit's author's email
address is used by default.  It can be overridden by a make variable.
2020-02-12 03:23:12 +01:00
Lars Kruse
216c6ebd04 Release 2.0.0 2020-02-12 03:01:27 +01:00
Lars Kruse
2ab81cd929 Change formatting of changelog to markdown
The style is based on https://keepachangelog.com/en/1.0.0/.
2020-02-12 02:45:12 +01:00
Lars Kruse
4e857e0a96 README: improve wording 2020-02-11 06:32:00 +01:00
Lars Kruse
4b484f6f99 Tolerate plugin filenames containing special characters
We may only allow characters allowed in shell function names.
2020-02-09 02:21:17 +01:00
Lars Kruse
b039f7c1c8 Fix remaining spelling errors 2020-02-09 02:10:41 +01:00
Lars Kruse
6d05b016d3 Makefile: really ignore excluded directory names 2020-02-09 02:08:24 +01:00
Lars Kruse
53bc47cc13 README: improve formatting 2020-02-09 02:00:39 +01:00
Lars Kruse
f6adc90820 Add documentation for the release process 2020-02-09 01:58:22 +01:00
Lars Kruse
648f3c15d4 README: rephrase overview 2020-02-09 00:57:57 +01:00
Lars Kruse
c63baf0461 README: restructure sections 2020-02-09 00:54:36 +01:00
Lars Kruse
0b06f673ab README: move license and copyright to the bottom 2020-02-09 00:50:47 +01:00