Fix typo
Ruben Sainiuc committed
Nov 16, 2017 at 09:43 UTC
149ff9eee20635368a632576d74114894a8735ba
8 files changed
+18
-18
charts.d/apache.chart.sh
+2
-2
@@ -114,7 +114,7 @@ apache_get() {
114
115
apache_accesses="${apache_response[${apache_key_accesses}]}"
116
apache_kbytes="${apache_response[${apache_key_kbytes}]}"
117
-
117
+
118
float2int "${apache_response[${apache_key_reqpersec}]}" ${apache_decimal_detail}
119
apache_reqpersec=${FLOAT2INT_RESULT}
120
@@ -201,7 +201,7 @@ EOF2
201
return 0
202
}
203
204
-# _update is called continiously, to collect the values
204
+# _update is called continuously, to collect the values
205
apache_update() {
206
local reqs net
207
# the first argument to this function is the microseconds since last update
charts.d/cpufreq.chart.sh
+1
-1
@@ -72,7 +72,7 @@ cpufreq_create() {
72
return 0
73
}
74
75
-# _update is called continiously, to collect the values
75
+# _update is called continuously, to collect the values
76
cpufreq_update() {
77
# the first argument to this function is the microseconds since last update
78
# pass this parameter to the BEGIN statement (see bellow).
charts.d/example.chart.sh
+1
-1
@@ -96,7 +96,7 @@ EOF
96
return 0
97
}
98
99
-# _update is called continiously, to collect the values
99
+# _update is called continuously, to collect the values
100
example_update() {
101
# the first argument to this function is the microseconds since last update
102
# pass this parameter to the BEGIN statement (see bellow).
charts.d/hddtemp.chart.sh
+2
-2
@@ -43,7 +43,7 @@ hddtemp_create() {
43
return 0
44
}
45
46
-# _update is called continiously, to collect the values
46
+# _update is called continuously, to collect the values
47
hddtemp_last=0
48
hddtemp_count=0
49
hddtemp_update() {
@@ -56,7 +56,7 @@ hddtemp_update() {
56
IFS=$OLD_IFS
57
58
# check if there is some data
59
- if [ -z "${all[3]}" ]; then
59
+ if [ -z "${all[3]}" ]; then
60
return 1
61
fi
62
charts.d/nginx.chart.sh
+1
-1
@@ -107,7 +107,7 @@ EOF
107
return 0
108
}
109
110
-# _update is called continiously, to collect the values
110
+# _update is called continuously, to collect the values
111
nginx_update() {
112
# the first argument to this function is the microseconds since last update
113
# pass this parameter to the BEGIN statement (see bellow).
charts.d/phpfpm.chart.sh
+8
-8
@@ -72,7 +72,7 @@ phpfpm_get() {
72
else
73
phpfpm_slow_requests="-1"
74
fi
75
-
75
+
76
if [[ -z "${phpfpm_pool}" \
77
|| -z "${phpfpm_start_time}" \
78
|| -z "${phpfpm_start_since}" \
@@ -99,7 +99,7 @@ phpfpm_check() {
99
if [ ${#phpfpm_urls[@]} -eq 0 ]; then
100
phpfpm_urls[local]="http://localhost/status"
101
fi
102
-
102
+
103
local m
104
for m in "${!phpfpm_urls[@]}"
105
do
@@ -110,12 +110,12 @@ phpfpm_check() {
110
continue
111
fi
112
done
113
-
113
+
114
if [ ${#phpfpm_urls[@]} -eq 0 ]; then
115
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"
116
return 1
117
fi
118
-
118
+
119
# this should return:
120
# - 0 to enable the chart
121
# - 1 to disable the chart
@@ -145,11 +145,11 @@ EOF
145
echo "DIMENSION slow 'slow requests' absolute 1 1"
146
fi
147
done
148
-
148
+
149
return 0
150
}
151
152
-# _update is called continiously, to collect the values
152
+# _update is called continuously, to collect the values
153
phpfpm_update() {
154
# the first argument to this function is the microseconds since last update
155
# pass this parameter to the BEGIN statement (see bellow).
@@ -165,7 +165,7 @@ phpfpm_update() {
165
if [ $? -ne 0 ]; then
166
continue
167
fi
168
-
168
+
169
# write the result of the work.
170
cat <<EOF
171
BEGIN phpfpm_$m.connections $1
@@ -185,7 +185,7 @@ EOF
185
fi
186
echo "END"
187
done
188
-
188
+
189
return 0
190
}
191
charts.d/sensors.chart.sh
+1
-1
@@ -234,7 +234,7 @@ sensors_create() {
234
return 0
235
}
236
237
-# _update is called continiously, to collect the values
237
+# _update is called continuously, to collect the values
238
sensors_update() {
239
# the first argument to this function is the microseconds since last update
240
# pass this parameter to the BEGIN statement (see bellow).
charts.d/tomcat.chart.sh
+2
-2
@@ -46,7 +46,7 @@ tomcat_check() {
46
fi
47
if [ -z "${tomcat_user}" ]; then
48
# check backwards compatibility
49
- if [ -z "${tomcatUser}" ]; then
49
+ if [ -z "${tomcatUser}" ]; then
50
error "tomcat user is unset or set to the empty string"
51
return 1
52
else
@@ -114,7 +114,7 @@ EOF
114
return 0
115
}
116
117
-# _update is called continiously, to collect the values
117
+# _update is called continuously, to collect the values
118
tomcat_update() {
119
local reqs net
120
# the first argument to this function is the microseconds since last update