summaryrefslogtreecommitdiffstats
path: root/charts.d
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--charts.d/apache.chart.sh4
-rw-r--r--charts.d/cpufreq.chart.sh2
-rw-r--r--charts.d/example.chart.sh2
-rw-r--r--charts.d/hddtemp.chart.sh4
-rw-r--r--charts.d/nginx.chart.sh2
-rw-r--r--charts.d/phpfpm.chart.sh16
-rw-r--r--charts.d/sensors.chart.sh2
-rw-r--r--charts.d/tomcat.chart.sh4
8 files changed, 18 insertions, 18 deletions
diff --git a/charts.d/apache.chart.sh b/charts.d/apache.chart.sh
index b503e74e..a8ac0801 100644
--- a/charts.d/apache.chart.sh
+++ b/charts.d/apache.chart.sh
@@ -114,7 +114,7 @@ apache_get() {
apache_accesses="${apache_response[${apache_key_accesses}]}"
apache_kbytes="${apache_response[${apache_key_kbytes}]}"
-
+
float2int "${apache_response[${apache_key_reqpersec}]}" ${apache_decimal_detail}
apache_reqpersec=${FLOAT2INT_RESULT}
@@ -201,7 +201,7 @@ EOF2
return 0
}
-# _update is called continiously, to collect the values
+# _update is called continuously, to collect the values
apache_update() {
local reqs net
# the first argument to this function is the microseconds since last update
diff --git a/charts.d/cpufreq.chart.sh b/charts.d/cpufreq.chart.sh
index b21504a0..1c41c38f 100644
--- a/charts.d/cpufreq.chart.sh
+++ b/charts.d/cpufreq.chart.sh
@@ -72,7 +72,7 @@ cpufreq_create() {
return 0
}
-# _update is called continiously, to collect the values
+# _update is called continuously, to collect the values
cpufreq_update() {
# the first argument to this function is the microseconds since last update
# pass this parameter to the BEGIN statement (see bellow).
diff --git a/charts.d/example.chart.sh b/charts.d/example.chart.sh
index 86fde490..ffc98712 100644
--- a/charts.d/example.chart.sh
+++ b/charts.d/example.chart.sh
@@ -96,7 +96,7 @@ EOF
return 0
}
-# _update is called continiously, to collect the values
+# _update is called continuously, to collect the values
example_update() {
# the first argument to this function is the microseconds since last update
# pass this parameter to the BEGIN statement (see bellow).
diff --git a/charts.d/hddtemp.chart.sh b/charts.d/hddtemp.chart.sh
index 15895c5e..3aada175 100644
--- a/charts.d/hddtemp.chart.sh
+++ b/charts.d/hddtemp.chart.sh
@@ -43,7 +43,7 @@ hddtemp_create() {
return 0
}
-# _update is called continiously, to collect the values
+# _update is called continuously, to collect the values
hddtemp_last=0
hddtemp_count=0
hddtemp_update() {
@@ -56,7 +56,7 @@ hddtemp_update() {
IFS=$OLD_IFS
# check if there is some data
- if [ -z "${all[3]}" ]; then
+ if [ -z "${all[3]}" ]; then
return 1
fi
diff --git a/charts.d/nginx.chart.sh b/charts.d/nginx.chart.sh
index 0ae7d630..d0df460a 100644
--- a/charts.d/nginx.chart.sh
+++ b/charts.d/nginx.chart.sh
@@ -107,7 +107,7 @@ EOF
return 0
}
-# _update is called continiously, to collect the values
+# _update is called continuously, to collect the values
nginx_update() {
# the first argument to this function is the microseconds since last update
# pass this parameter to the BEGIN statement (see bellow).
diff --git a/charts.d/phpfpm.chart.sh b/charts.d/phpfpm.chart.sh
index a5ee0ad5..a3c69b6f 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
}
diff --git a/charts.d/sensors.chart.sh b/charts.d/sensors.chart.sh
index 125c925d..f21248da 100644
--- a/charts.d/sensors.chart.sh
+++ b/charts.d/sensors.chart.sh
@@ -234,7 +234,7 @@ sensors_create() {
return 0
}
-# _update is called continiously, to collect the values
+# _update is called continuously, to collect the values
sensors_update() {
# the first argument to this function is the microseconds since last update
# pass this parameter to the BEGIN statement (see bellow).
diff --git a/charts.d/tomcat.chart.sh b/charts.d/tomcat.chart.sh
index 44a92c86..4ea6ae68 100644
--- a/charts.d/tomcat.chart.sh
+++ b/charts.d/tomcat.chart.sh
@@ -46,7 +46,7 @@ tomcat_check() {
fi
if [ -z "${tomcat_user}" ]; then
# check backwards compatibility
- if [ -z "${tomcatUser}" ]; then
+ if [ -z "${tomcatUser}" ]; then
error "tomcat user is unset or set to the empty string"
return 1
else
@@ -114,7 +114,7 @@ EOF
return 0
}
-# _update is called continiously, to collect the values
+# _update is called continuously, to collect the values
tomcat_update() {
local reqs net
# the first argument to this function is the microseconds since last update