summaryrefslogtreecommitdiffstats
path: root/charts.d/apache.chart.sh
diff options
context:
space:
mode:
authorCosta Tsaousis (ktsaou) <costa@tsaousis.gr>2016-05-23 20:23:57 +0300
committerCosta Tsaousis (ktsaou) <costa@tsaousis.gr>2016-05-23 20:23:57 +0300
commit17053582ff88c91b5692e7a54ec85ee6973b86d9 (patch)
tree2d2c00568a53bfd1f10b42dd10e6458c58d8cb4d /charts.d/apache.chart.sh
parenteb35d9fb315b26850c27643e8e6bf8dadb3dae6e (diff)
support custom curl options in charts.d plugins
Diffstat (limited to 'charts.d/apache.chart.sh')
-rwxr-xr-xcharts.d/apache.chart.sh3
1 files changed, 2 insertions, 1 deletions
diff --git a/charts.d/apache.chart.sh b/charts.d/apache.chart.sh
index dbf14a4327..f4f7d0581b 100755
--- a/charts.d/apache.chart.sh
+++ b/charts.d/apache.chart.sh
@@ -2,6 +2,7 @@
# the URL to download apache status info
apache_url="http://127.0.0.1:80/server-status?auto"
+apache_curl_opts=
# _update_every is a special variable - it holds the number of seconds
# between the calls of the _update() function
@@ -94,7 +95,7 @@ apache_detect() {
apache_get() {
local oIFS="${IFS}" ret
- IFS=$':\n' apache_response=($(curl -Ss "${apache_url}"))
+ IFS=$':\n' apache_response=($(curl -Ss ${apache_curl_opts} "${apache_url}"))
ret=$?
IFS="${oIFS}"