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"
This commit is contained in:
Lars Kruse 2020-02-06 08:03:29 +01:00
parent 936ac8199c
commit 0cf51803a3
2 changed files with 6 additions and 2 deletions

View File

@ -1,4 +1,4 @@
PLUGINS = df cpu if_ if_err_ load memory processes swap netstat uptime interrupts irqstats ntpdate plugindir_
PLUGINS ?= df cpu if_ if_err_ load memory processes swap netstat uptime interrupts irqstats ntpdate plugindir_
CONFIGURATION_FILE ?= munin-node.conf
INPUT_FILE ?= munin-node.in
TARGET_FILE ?= munin-node

View File

@ -44,13 +44,17 @@ Requirements
Installation
------------
Download source and unpack it.
Edit Makefile to suit your choice of plugins
Assemble the munin-node shell script by running `make`:
```shell
$ make
```
You may assemble a reduced script by including only specific plugins:
```shell
$ make PLUGINS="cpu load uptime"
```
Copy munin-node to a suitable location (/usr/local/bin/) and make it
executable (there will be a "make install" at a later release)