summaryrefslogtreecommitdiffstats
path: root/charts.d
diff options
context:
space:
mode:
authorFederico Ceratto <federico.ceratto@gmail.com>2017-12-19 23:39:27 +0000
committerFederico Ceratto <federico.ceratto@gmail.com>2017-12-19 23:39:27 +0000
commit6abdfdead1326ccca98dc4cf415c216f1bf25400 (patch)
tree70b803bd499fd45e89627c1b45b90ddf20e8e959 /charts.d
parentRelease v. 1.8.0+dfsg-1 to Unstable (diff)
parentNew upstream version 1.9.0+dfsg (diff)
downloadnetdata-6abdfdead1326ccca98dc4cf415c216f1bf25400.tar.xz
netdata-6abdfdead1326ccca98dc4cf415c216f1bf25400.zip
Update upstream source from tag 'upstream/1.9.0+dfsg'
Update to upstream version '1.9.0+dfsg' with Debian dir 28b8242a05f9ad26cd1cdbcf078be754fc7d6251
Diffstat (limited to 'charts.d')
-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 b503e74e3..a8ac08014 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 b21504a0e..1c41c38f2 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 86fde4901..ffc98712f 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 15895c5e1..3aada1751 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 0ae7d6307..d0df460ac 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 a5ee0ad56..a3c69b6f0 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 125c925da..f21248da1 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 44a92c86e..4ea6ae683 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