diff options
author | Ruben Sainiuc <ruben.sainiuc@gmail.com> | 2017-11-16 09:43:52 +0200 |
---|---|---|
committer | Ruben Sainiuc <ruben.sainiuc@gmail.com> | 2017-11-16 09:43:52 +0200 |
commit | 149ff9eee20635368a632576d74114894a8735ba (patch) | |
tree | 0bbc8549236d8f25a77b4f74bb0a24ce21f876a6 /charts.d/phpfpm.chart.sh | |
parent | fb78a3f099cc73de79c5e5aedc56036b9ec63ef8 (diff) |
Fix typo
Diffstat (limited to 'charts.d/phpfpm.chart.sh')
-rw-r--r-- | charts.d/phpfpm.chart.sh | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/charts.d/phpfpm.chart.sh b/charts.d/phpfpm.chart.sh index a5ee0ad561..a3c69b6f02 100644 --- a/charts.d/phpfpm.chart.sh +++ b/charts.d/phpfpm.chart.sh @@ -72,7 +72,7 @@ phpfpm_get() { else phpfpm_slow_requests="-1" fi - + if [[ -z "${phpfpm_pool}" \ || -z "${phpfpm_start_time}" \ || -z "${phpfpm_start_since}" \ @@ -99,7 +99,7 @@ phpfpm_check() { if [ ${#phpfpm_urls[@]} -eq 0 ]; then phpfpm_urls[local]="http://localhost/status" fi - + local m for m in "${!phpfpm_urls[@]}" do @@ -110,12 +110,12 @@ phpfpm_check() { continue fi done - + if [ ${#phpfpm_urls[@]} -eq 0 ]; then error "no phpfpm servers found. Please set phpfpm_urls[name]='url' to whatever needed to get status to the phpfpm server, in $confd/phpfpm.conf" return 1 fi - + # this should return: # - 0 to enable the chart # - 1 to disable the chart @@ -145,11 +145,11 @@ EOF echo "DIMENSION slow 'slow requests' absolute 1 1" fi done - + return 0 } -# _update is called continiously, to collect the values +# _update is called continuously, to collect the values phpfpm_update() { # the first argument to this function is the microseconds since last update # pass this parameter to the BEGIN statement (see bellow). @@ -165,7 +165,7 @@ phpfpm_update() { if [ $? -ne 0 ]; then continue fi - + # write the result of the work. cat <<EOF BEGIN phpfpm_$m.connections $1 @@ -185,7 +185,7 @@ EOF fi echo "END" done - + return 0 } |