Rename munin plugin, put all under munin dir

remotes/origin/use_db_slaves
Sandro Santilli 12 years ago
parent 3101dbd433
commit c3f53a7987

2
.gitignore vendored

@ -1,4 +1,4 @@
node_modules
config/environments/*.js
.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
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

@ -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

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