1
0
Fork 0
mirror of https://github.com/munin-monitoring/contrib.git synced 2025-07-21 10:39:53 +00:00

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))`" 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.jmxObjectName java.lang:type=OperatingSystem
os_memory_vm.jmxAttributeName CommittedVirtualMemorySize os_memory_vm.jmxAttributeName CommittedVirtualMemorySize
os_memory_vm.graph no 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.label peak
java_thread_count_peak.jmxObjectName java.lang:type=Threading java_thread_count_peak.jmxObjectName java.lang:type=Threading
java_thread_count_peak.jmxAttributeName PeakThreadCount 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.label peak
catalina_max_time.jmxObjectName Catalina:name=http-8080,type=GlobalRequestProcessor catalina_max_time.jmxObjectName Catalina:name=http-8080,type=GlobalRequestProcessor
catalina_max_time.jmxAttributeName maxTime catalina_max_time.jmxAttributeName maxTime

View file

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

View file

@ -137,7 +137,7 @@ ${JAVA_HOME}/bin/jstat -gc ${PidNum} | tail -1 | awk \
EC = $5; \ EC = $5; \
EU = $6; \ EU = $6; \
OC = $7; \ OC = $7; \
OU = $8; OU = $8; \
PC = $9; \ PC = $9; \
PU = $10; \ 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) """ \ # 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 ) # % (nodeName, ostype, state, numVirtCpu, cpuTime/float(1000000000), cpuTime/float(1000000), memory, maxMem )
print "%s.value %d" % (nodeName, cpuTime/float(1000000)) print "%s.value %d" % (nodeName, cpuTime/float(1000000))

View file

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

View file

@ -16,7 +16,7 @@ Unfortunately, SNMPv3 is not fully supported on all NetApp equipments.
For this reason, this plugin will use SNMPv2 by default, which is For this reason, this plugin will use SNMPv2 by default, which is
insecure because it doesn't encrypt the community string. insecure because it doesn't encrypt the community string.
The following parameters will help you get this plugin working : The following parameters will help you get this plugin working:
[snmp_*] [snmp_*]
env.community MyCommunity env.community MyCommunity

View file

@ -16,7 +16,7 @@ Counts the in/out bandwidth used by each projects/vhost. [Logtail](https://www.f
## Installation ## Installation
The setup is pretty straight forward. First you need to configure the plugin: The setup is pretty straight forward. First you need to configure the plugin:
In your munin plugin configuration file (for example, a new dedicated /etc/munin/plugin-conf.d/nginx_byprojects), configure the plugins : In your munin plugin configuration file (for example, a new dedicated /etc/munin/plugin-conf.d/nginx_byprojects), configure the plugins:
[byprojects_*] [byprojects_*]
env.logtail /usr/local/bin/logtail env.logtail /usr/local/bin/logtail

View file

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

View file

@ -10,7 +10,7 @@
mktempfile () { mktempfile () {
mktemp -t mktemp -t
} }
MAIL_LOG=${logfile:-/var/log/mail.log} MAIL_LOG=${logfile:-/var/log/mail.log}

View file

@ -10,7 +10,7 @@
mktempfile () { mktempfile () {
mktemp -t mktemp -t
} }
MAIL_LOG=${logfile:-/var/log/mail.log} MAIL_LOG=${logfile:-/var/log/mail.log}

View file

@ -24,7 +24,7 @@
# #
mktempfile () { mktempfile () {
mktemp -t mktemp -t
} }
MAIL_LOG=${logfile:-/var/log/mail.info} MAIL_LOG=${logfile:-/var/log/mail.info}

View file

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