diff options
author | Costa Tsaousis (ktsaou) <costa@tsaousis.gr> | 2016-05-23 20:23:57 +0300 |
---|---|---|
committer | Costa Tsaousis (ktsaou) <costa@tsaousis.gr> | 2016-05-23 20:23:57 +0300 |
commit | 17053582ff88c91b5692e7a54ec85ee6973b86d9 (patch) | |
tree | 2d2c00568a53bfd1f10b42dd10e6458c58d8cb4d /charts.d/apache.chart.sh | |
parent | eb35d9fb315b26850c27643e8e6bf8dadb3dae6e (diff) |
support custom curl options in charts.d plugins
Diffstat (limited to 'charts.d/apache.chart.sh')
-rwxr-xr-x | charts.d/apache.chart.sh | 3 |
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}" |