Commit graph

115 commits

Author SHA1 Message Date
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
Lars Kruse
069a3ecb4d Makefile: replace "tgz" target with "dist"
The new target also creates a signed checksum of the archive.
2020-02-09 00:48:34 +01:00
Lars Kruse
2503aa737b README: describe scope of the project and unwanted features 2020-02-09 00:48:34 +01:00
Lars Kruse
7eebaa7f62 README: remove list of integrated plugins and runtime requirements 2020-02-09 00:48:34 +01:00
Lars Kruse
8e433d9a38 README: clarify title for munin configuration section 2020-02-09 00:48:34 +01:00
Lars Kruse
a85fc3cb82 README: mention external plugins 2020-02-09 00:48:34 +01:00
Lars Kruse
829f230b9b CHange default plugin directory to /etc/munin/plugins
This path is also used by the official `munin-node` implementation.
2020-02-09 00:45:59 +01:00
Lars Kruse
fe4c587c27 Remove outdated documentation 2020-02-09 00:45:59 +01:00
Lars Kruse
a4bb625812 Makefile: skip comments with leading whitespace 2020-02-08 23:41:48 +01:00
Lars Kruse
e3103bdb6e Plugin df: ignore read-only and virtual filesystem types
The set of filesystems is based on the list of excluded filesystems in
munin's "df" plugin for Linux.
2020-02-08 23:39:44 +01:00
Lars Kruse
44d1c8dc3a Plugin if_: do not expose errors from ethtool
ethtool prints the error message "Cannot get device settings: No such
device" for VLAN devices.  This error message should not be exposed via
the munin protocol.
2020-02-08 23:39:44 +01:00
Lars Kruse
9cca1e479a Change encoding of main script to UTF-8 2020-02-08 23:39:44 +01:00
Lars Kruse
a0d4d74f8d hostname: fall back to /proc/sys/kernel/hostname (linux) if "hostname" is missing
This provides a usable alternative on OpenWrt.
2020-02-08 23:39:44 +01:00
Lars Kruse
0662cfc7e8 Enable "exit-on-error" and "error-on-unset" for shell execution 2020-02-08 23:39:44 +01:00
Lars Kruse
6b09d74c9a Remove tabs from plugins 2020-02-08 23:39:44 +01:00
Lars Kruse
b5d8f7931b Plugin if_ and if_err_: use explicit variable for interface name 2020-02-08 23:39:44 +01:00
Lars Kruse
60b16f4121 Plugin netstat: adjust filter to newer netstat version
Newer versions of netstat use "active connection openings" instead of
"active connections".
2020-02-08 23:39:44 +01:00
Lars Kruse
e439fd79a1 Use "read" without escaping 2020-02-08 23:39:44 +01:00
Lars Kruse
974b07a1af Remove unnecessary "cat" operations 2020-02-08 23:39:44 +01:00
Lars Kruse
0600bbf113 Simplify grep-based conditionals
The "-q" argument avoids the requirement for output redirections.
2020-02-08 23:39:44 +01:00
Lars Kruse
94a695860d Simplify checks for empty or non-empty strings 2020-02-08 23:39:44 +01:00
Lars Kruse
5190244c92 Simplify arithemtic shell expressions
Variable names within arithmetic expressions are evaluated even without
the '$' prefix.
2020-02-08 23:39:44 +01:00
Lars Kruse
dc242d3631 Plugin cpu: fix handling of more than ten CPUs
Previously only CPU entries with a single digit (0..9) were parsed.
The improved regular expression simplifies the calculation of the CPU
count, since the combined entry ("cpu" without digits) is skipped.
2020-02-08 23:39:44 +01:00
Lars Kruse
14251d6791 Add missing quoting 2020-02-08 23:39:44 +01:00
Lars Kruse
c2108276eb Improve parsing of commands and plugin names
Previously special characters for regular expressions (e.g. ".") could
work around the name check (without being able to cause harm).
2020-02-08 23:39:44 +01:00
Lars Kruse
281578664c Command "version": fix spelling of "muninlite" 2020-02-08 23:39:44 +01:00
Lars Kruse
b1230609dc Command "list": sort plugins by name and remove surrounding whitespace
Previously the plugin names were not sorted and a leading space was
emitted.
2020-02-08 23:39:44 +01:00
Lars Kruse
02b2eb861e Plugin directory: use "find" instead of "ls"
Relying on shell globbing is discouraged.
2020-02-08 23:39:44 +01:00
Lars Kruse
5de3df252e Plugin swap: fix evaluation of swap usage
The variable name was misspelled.
2020-02-08 23:39:44 +01:00
Lars Kruse
d1da0df1b2 Plugin memory: fix evaluation of "inactive laundry"
The variable name was misspelled.
2020-02-08 23:39:44 +01:00
Lars Kruse
f4518e5375 Change name of executable from "munin-node" to "muninlite"
Previously MuninLite tried to create a drop-in-replacement for
munin-node by using the same name.  But MuninLite behaves differently
and may even be used in parallel to a regular munin-node setup on a host,
thus it should use a distinct name.
2020-02-08 23:39:44 +01:00
Lars Kruse
c547314f3d Makefile: add "install" target 2020-02-08 23:39:44 +01:00
Lars Kruse
33bd18f7f7 README: change to UTF8 2020-02-08 23:39:44 +01:00
Lars Kruse
0cf51803a3 Makefile: configurable set of plugins
The Makefile variable "PLUGINS" may be specified on the command line in
order to pick specific plugins:

  make PLUGINS="cpu load uptime"
2020-02-08 23:39:44 +01:00
Lars Kruse
936ac8199c Makefile: use proper indentation for assembling command 2020-02-08 23:39:42 +01:00
Lars Kruse
160a767791 Makefile: simplify script assembling 2020-02-08 23:39:15 +01:00