1
0
Fork 0
mirror of https://github.com/munin-monitoring/contrib.git synced 2025-07-24 09:57:09 +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

@ -24,7 +24,7 @@ env.exclude - Removing containers from graphs, default: empty
This plugin reads a "lxc.network.veth.pair" setting from "config" file of each container,
because lxc-start command creates a random named veth device without the setting.
If your xen config (/var/lib/lxc/GUEST_NAME/config does not contain this parameter,
If your xen config (/var/lib/lxc/GUEST_NAME/config does not contain this parameter,
then you have to fill it, because if every guest restart generate new device name, then the graph will be useless
( example config : lxc.network.veth.pair = vethsamba )
@ -56,7 +56,7 @@ if [ "$1" = "autoconf" ]; then
echo "no ($lxcdir is not present)"
exit 0
fi
echo yes
fi
@ -86,7 +86,7 @@ if [ "$1" = "config" ]; then
echo "graph_vlabel bits in (-) / out (+) per ${graph_period}"
echo "graph_category network"
echo "graph_info This graph shows the traffic of active LXC containers."
for guestname in $actives; do
guest=$(clean_fieldname $guestname)
device=$(eval 'echo $dev_'$guest)
@ -95,7 +95,7 @@ if [ "$1" = "config" ]; then
bps=$(cat /sys/class/net/$device/speed)
bps=$(($bps * 1000 * 1000))
fi
echo "${guest}_down.label $guestname"
echo "${guest}_down.type DERIVE"
echo "${guest}_down.graph no"
@ -120,12 +120,12 @@ for guest in $actives; do
line=`grep "^ *$device_re:" /proc/net/dev`
echo -n "${guest}_down.value "
echo $line | awk '{
split($0, a, /: */);
split($0, a, /: */);
print $2;
}'
echo -n "${guest}_up.value "
echo $line | awk '{
split($0, a, /: */);
print $10;
split($0, a, /: */);
print $10;
}'
done