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
Lars Kruse
92eb719a8b
Makefile: reduce dependencies to the set of configured plugins
2020-02-08 23:38:15 +01:00
Lars Kruse
0667b94d0f
Makefile: add dependency for template input file
2020-02-08 23:38:15 +01:00
Lars Kruse
08e989b780
examples: unify whitespace
2020-02-08 23:38:15 +01:00
Lars Kruse
4e324b45a6
CI: add travis test description
2020-02-08 23:38:15 +01:00
Lars Kruse
6e921753d6
Makefile: add trivial test
...
For now only the basic functionality of the script is tested.
2020-02-08 23:38:15 +01:00
Lars Kruse
c7a121f8fc
Makefile: add spelling check
2020-02-08 23:38:15 +01:00
Lars Kruse
806dc07f89
README: reduce less relevant details
2020-02-08 23:37:55 +01:00
Lars Kruse
490da2c8a3
README: document the installation as an executable without TCP
2020-02-08 23:37:55 +01:00
Lars Kruse
0c4e577e9a
Makefile: add 'lint' target
...
For now most plugins contain issues according to 'shellcheck'.
2020-02-08 23:37:52 +01:00
Lars Kruse
5f1d1b03b5
Transfer remaining subversion details to git
2020-02-06 07:29:11 +01:00
Lars Kruse
a3fde3c704
Makefile: use "git archive" for generating release file
2020-02-06 07:29:11 +01:00
Lars Kruse
9748ebdcfb
Makefile: add "help" target
2020-02-06 07:29:11 +01:00
Lars Kruse
631e86156e
Fix spelling issues
...
reported by "codespell"
2020-02-06 07:29:11 +01:00
Lars Kruse
b0e991d4d4
whitespace cleanup
2020-02-06 07:29:11 +01:00
Lars Kruse
215abe08ae
Makefile: mark non-file targets as "PHONY"
2020-02-06 07:29:11 +01:00