Whitespace cleanup

* remove trailing whitespace
* remove empty lines at the end of files
This commit is contained in:
Lars Kruse 2018-08-02 02:03:42 +02:00
parent ef851f0c34
commit 17f784270a
604 changed files with 2927 additions and 2945 deletions

View File

@ -81,8 +81,3 @@ done
echo "threads.value `echo $((SUM / $COUNT))`"

View File

@ -42,5 +42,3 @@ os_memory_vm.label os vmem committed
os_memory_vm.jmxObjectName java.lang:type=OperatingSystem
os_memory_vm.jmxAttributeName CommittedVirtualMemorySize
os_memory_vm.graph no

View File

@ -10,5 +10,3 @@ java_thread_count.jmxAttributeName ThreadCount
java_thread_count_peak.label peak
java_thread_count_peak.jmxObjectName java.lang:type=Threading
java_thread_count_peak.jmxAttributeName PeakThreadCount

View File

@ -27,5 +27,3 @@ catalina_proc_tpr.cdef catalina_request_count,0,EQ,0,catalina_proc_time,catalina
catalina_max_time.label peak
catalina_max_time.jmxObjectName Catalina:name=http-8080,type=GlobalRequestProcessor
catalina_max_time.jmxAttributeName maxTime

View File

@ -126,7 +126,7 @@ ${JAVA_HOME}/bin/jstat -gc ${PidNum} | tail -1 | awk \
EC = $5; \
EU = $6; \
OC = $7; \
OU = $8;
OU = $8; \
PC = $9; \
PU = $10; \
YGC = $11; \

View File

@ -137,7 +137,7 @@ ${JAVA_HOME}/bin/jstat -gc ${PidNum} | tail -1 | awk \
EC = $5; \
EU = $6; \
OC = $7; \
OU = $8;
OU = $8; \
PC = $9; \
PU = $10; \
\

View File

@ -55,5 +55,3 @@ for id in ids:
# print """Domain: %s, %s state (%s), %d CPUs, %d seconds, %d milliseconds, mem/max (%d/%d) """ \
# % (nodeName, ostype, state, numVirtCpu, cpuTime/float(1000000000), cpuTime/float(1000000), memory, maxMem )
print "%s.value %d" % (nodeName, cpuTime/float(1000000))

View File

@ -64,8 +64,7 @@ if [ "$1" = "config" ]; then
echo 'graph_category cpu'
for guest_name in $guest_names;
do
for guest_name in $guest_names; do
guest="$(clean_fieldname $guest_name)"
echo 'cpu_user_'$guest'.label '$guest_name': User'
echo 'cpu_user_'$guest'.type DERIVE'
@ -77,8 +76,7 @@ if [ "$1" = "config" ]; then
exit 0
fi
for guest_name in $guest_names;
do
for guest_name in $guest_names; do
guest="$(clean_fieldname $guest_name)"
tmp_g=`$f_comm -n $guest_name cpuacct.stat | grep user`

View File

@ -98,8 +98,7 @@ if [ "$1" = "config" ]; then
echo 'graph_category processes'
for guest_name in $guest_names;
do
for guest_name in $guest_names; do
guest="$(clean_fieldname $guest_name)"
echo 'lxc_proc_'$guest'.label '$guest_name': processes'
echo 'lxc_proc_'$guest'.type GAUGE'
@ -108,8 +107,7 @@ if [ "$1" = "config" ]; then
exit 0
fi
for guest_name in $guest_names;
do
for guest_name in $guest_names; do
guest="$(clean_fieldname $guest_name)"
count_processes $guest_name

View File

@ -99,7 +99,6 @@ while (<SERVICE>) {
# if (/^rate exceeded:\s*(\d*)/) {
# $queries += $1;
# }
}
close(SERVICE);

View File

@ -49,7 +49,7 @@ if (defined $ARGV[0] and $ARGV[0] eq "config")
}
print "temperature.label temperature\n";
exit 0
exit 0;
}
$telnet = new Net::Telnet (Telnetmode => 0);