Rename munin plugin, put all under munin dir
This commit is contained in:
parent
3101dbd433
commit
c3f53a7987
2
.gitignore
vendored
2
.gitignore
vendored
@ -1,4 +1,4 @@
|
|||||||
node_modules
|
node_modules
|
||||||
config/environments/*.js
|
config/environments/*.js
|
||||||
.idea
|
.idea
|
||||||
tools/munin/windshaft_fds.conf
|
tools/munin/windshaft.conf
|
||||||
|
@ -2,16 +2,18 @@ MUNIN_PLUGINS_DIR=/etc/munin/plugins
|
|||||||
MUNIN_PLUGINS_CONFIG_DIR=/etc/munin/plugin-conf.d
|
MUNIN_PLUGINS_CONFIG_DIR=/etc/munin/plugin-conf.d
|
||||||
PWD=$(shell pwd)
|
PWD=$(shell pwd)
|
||||||
|
|
||||||
all: windshaft_fds.conf
|
all: windshaft.conf
|
||||||
|
|
||||||
windshaft_fds.conf: windshaft_fds.conf.in
|
windshaft.conf: windshaft.conf.in
|
||||||
sed 's#@PWD@#$(PWD)#' < $< > $@
|
sed 's#@PWD@#$(PWD)#' < $< > $@
|
||||||
|
|
||||||
install-munin-plugin: windshaft_fds.conf
|
install-munin-plugin-conf: windshaft.conf
|
||||||
install -m 644 windshaft_fds.conf $(MUNIN_PLUGINS_CONFIG_DIR)/windshaft_fds.conf
|
install -m 644 $< $(MUNIN_PLUGINS_CONFIG_DIR)/windshaft.conf
|
||||||
install -m 755 ../checkfds.sh $(MUNIN_PLUGINS_DIR)/windshaft_fds
|
|
||||||
|
|
||||||
install: install-munin-plugin
|
install-munin-plugin: windshaft
|
||||||
|
install -m 755 $< $(MUNIN_PLUGINS_DIR)/windshaft
|
||||||
|
|
||||||
|
install: install-munin-plugin install-munin-plugin-conf
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
rm -f windshaft_fds.conf
|
rm -f windshaft.conf
|
||||||
|
@ -19,7 +19,7 @@ exit 0
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
if test x"$1" != x; then
|
if test x"$1" != x; then
|
||||||
TILER_ENVIRONMENT=$(cd $(dirname $0); pwd)/../config/environments/${1}.js
|
TILER_ENVIRONMENT=$(cd $(dirname $0); pwd)/../../config/environments/${1}.js
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if test -z "$TILER_ENVIRONMENT"; then
|
if test -z "$TILER_ENVIRONMENT"; then
|
@ -1,5 +1,5 @@
|
|||||||
# Configuration file for munin plugin
|
# Configuration file for munin plugin
|
||||||
|
|
||||||
[windshaft_fds]
|
[windshaft]
|
||||||
user root
|
user root
|
||||||
env.TILER_ENVIRONMENT @PWD@/../../config/environments/production.js
|
env.TILER_ENVIRONMENT @PWD@/../../config/environments/production.js
|
Loading…
Reference in New Issue
Block a user