mirror of
https://github.com/munin-monitoring/muninlite.git
synced 2024-11-16 00:28:32 +01:00
muninlite: add support for minimal runtime configuration file
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.
This commit is contained in:
parent
8046268893
commit
42b7053593
1 changed files with 4 additions and 0 deletions
|
@ -16,6 +16,9 @@ set -eu
|
|||
|
||||
@@CONF@@
|
||||
|
||||
# Name of runtime configuration file
|
||||
CONFIG_FILE=/etc/munin/muninlite.conf
|
||||
|
||||
# if plugindir_ is present in $PLUGINS, executables (scripts, binaries) in the specified path
|
||||
# and matching the pattern will be scanned and operated as plugins
|
||||
PLUGIN_DIRECTORY=/etc/munin/plugins
|
||||
|
@ -69,6 +72,7 @@ do_quit() {
|
|||
}
|
||||
|
||||
# ===== Runtime config =====
|
||||
[ -f ${CONFIG_FILE} ] && . ${CONFIG_FILE}
|
||||
RES=""
|
||||
for PLUG in $PLUGINS; do
|
||||
case "$PLUG" in
|
||||
|
|
Loading…
Reference in a new issue