Rename munin plugin, put all under munin dir

This commit is contained in:
Sandro Santilli 2013-02-11 18:23:35 +01:00
parent 3101dbd433
commit c3f53a7987
4 changed files with 12 additions and 10 deletions

2
.gitignore vendored
View File

@ -1,4 +1,4 @@
node_modules
config/environments/*.js
.idea
tools/munin/windshaft_fds.conf
tools/munin/windshaft.conf

View File

@ -2,16 +2,18 @@ MUNIN_PLUGINS_DIR=/etc/munin/plugins
MUNIN_PLUGINS_CONFIG_DIR=/etc/munin/plugin-conf.d
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)#' < $< > $@
install-munin-plugin: windshaft_fds.conf
install -m 644 windshaft_fds.conf $(MUNIN_PLUGINS_CONFIG_DIR)/windshaft_fds.conf
install -m 755 ../checkfds.sh $(MUNIN_PLUGINS_DIR)/windshaft_fds
install-munin-plugin-conf: windshaft.conf
install -m 644 $< $(MUNIN_PLUGINS_CONFIG_DIR)/windshaft.conf
install: install-munin-plugin
install-munin-plugin: windshaft
install -m 755 $< $(MUNIN_PLUGINS_DIR)/windshaft
install: install-munin-plugin install-munin-plugin-conf
clean:
rm -f windshaft_fds.conf
rm -f windshaft.conf

View File

@ -19,7 +19,7 @@ exit 0
fi
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
if test -z "$TILER_ENVIRONMENT"; then

View File

@ -1,5 +1,5 @@
# Configuration file for munin plugin
[windshaft_fds]
[windshaft]
user root
env.TILER_ENVIRONMENT @PWD@/../../config/environments/production.js