diff options
author | Costa Tsaousis (ktsaou) <costa@tsaousis.gr> | 2016-04-21 02:03:59 +0300 |
---|---|---|
committer | Costa Tsaousis (ktsaou) <costa@tsaousis.gr> | 2016-04-21 02:03:59 +0300 |
commit | db16450bd8ef9e93cd557d75e92cba5a87c1fb73 (patch) | |
tree | d2166b2f8b019be72b928d69909e37c922442cfd /charts.d/nginx.chart.sh | |
parent | 37cb08efe88d63174877ebaa1868298e862caafd (diff) |
added option -Ss to curl so that errors are logged
Diffstat (limited to 'charts.d/nginx.chart.sh')
-rwxr-xr-x | charts.d/nginx.chart.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/charts.d/nginx.chart.sh b/charts.d/nginx.chart.sh index a6795415b4..91f269be2f 100755 --- a/charts.d/nginx.chart.sh +++ b/charts.d/nginx.chart.sh @@ -19,7 +19,7 @@ nginx_reading=0 nginx_writing=0 nginx_waiting=0 nginx_get() { - nginx_response=($(curl -s "${nginx_url}")) + nginx_response=($(curl -Ss "${nginx_url}")) [ $? -ne 0 -o "${#nginx_response[@]}" -eq 0 ] && return 1 if [ "${nginx_response[0]}" != "Active" \ |