]> arthur.barton.de Git - netdata.git/blobdiff - charts.d/nginx.chart.sh
prevent a cat command on each iteration
[netdata.git] / charts.d / nginx.chart.sh
index 450aa94b30cb066baf7902bd31a6a21cad36c781..9b75c2c5e68ae67ecf663b167e401ef470df22a2 100755 (executable)
@@ -4,6 +4,7 @@
 # must start with X_
 
 nginx_url="http://127.0.0.1:80/stub_status"
+nginx_curl_opts=""
 
 # _update_every is a special variable - it holds the number of seconds
 # between the calls of the _update() function
@@ -19,7 +20,7 @@ nginx_reading=0
 nginx_writing=0
 nginx_waiting=0
 nginx_get() {
-       nginx_response=($(curl -Ss "${nginx_url}"))
+       nginx_response=($(curl -Ss ${nginx_curl_opts} "${nginx_url}"))
        [ $? -ne 0 -o "${#nginx_response[@]}" -eq 0 ] && return 1
 
        if [ "${nginx_response[0]}" != "Active" \