From d43ad47e33812565dab1d126a6ed26356f1eb3e5 Mon Sep 17 00:00:00 2001 From: Petko Bordjukov Date: Wed, 4 Nov 2015 17:50:52 +0200 Subject: [PATCH] wlstats-gather: Make the hostname and interval configurable --- monitoring/collectd/scripts/wlstats-gather/wlstats-gather.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/monitoring/collectd/scripts/wlstats-gather/wlstats-gather.sh b/monitoring/collectd/scripts/wlstats-gather/wlstats-gather.sh index 9f554e8..5d4f371 100644 --- a/monitoring/collectd/scripts/wlstats-gather/wlstats-gather.sh +++ b/monitoring/collectd/scripts/wlstats-gather/wlstats-gather.sh @@ -13,8 +13,8 @@ # Changelog: 2015.05.25 - Initial version # Variable Definition -_HOSTNAME='testhost' -_PERIOD=60 # in seconds +_HOSTNAME="${COLLECTD_HOSTNAME:-localhost}" +_PERIOD="${COLLECTD_INTERVAL:-60}" _PLUGIN='wlstats' # Binaries