1
0
Fork 0
mirror of https://github.com/munin-monitoring/contrib.git synced 2025-07-21 18:41:03 +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

@ -56,7 +56,7 @@ if [[ "$1" = "config" ]]; then
echo 'graph_vlabel jiffies used per ${graph_period}'
echo 'graph_info Shows jiffies used on each vserver.'
for i in $XIDS[@]; do
for i in $XIDS[@]; do
LABEL=$(sed -n '/NodeName/s/^NodeName:[[:space:]]*//p' /proc/virtual/$i/$NAMELOC)
LABEL=${LABEL%$STRIPDOMAIN}
NAME=${LABEL//./_}
@ -74,7 +74,7 @@ if [[ "$1" = "config" ]]; then
exit 0
fi
for i in $XIDS[@]; do
for i in $XIDS[@]; do
LABEL=$(sed -n '/NodeName/s/^NodeName:[[:space:]]*//p' /proc/virtual/$i/$NAMELOC)
LABEL=${LABEL%$STRIPDOMAIN}
NAME=${LABEL//./_}

View file

@ -23,14 +23,14 @@
#
# NOTE: If no configuration variables are set, the defaults will be used
# Example /etc/munin/plugin-conf.d/munin-node
# Example /etc/munin/plugin-conf.d/munin-node
#
# The first group monitors the vservers named "vserver1 vserver2
# vserver3 vserver4" and looks to see if the resource limit has been
# breached, if so it sends a message to nagios via send_nsca, and
# sends an email to notify that this has happened.
#
# The second monitors the vservers "vserver5 vserver6 vserver7" and
# The second monitors the vservers "vserver5 vserver6 vserver7" and
# has no limit notifications turned on.
#
# The third monitors all vservers on the system, in one graph, and it has
@ -73,7 +73,7 @@
# version 0.5 - 2008 Apr 12 - Chris Wilson <chris+munin@qwirx.com>
# - Changed to display limit hits instead of resource usage
# - Adapt to latest vserver kernel (lack of some variables in /proc/virtual)
# Note that your vserver names may change if the contents of
# Note that your vserver names may change if the contents of
# /etc/vservers/* do not match the nodenames. Also you must specify
# the vservers variable with context IDs (XIDs) rather than names.
@ -91,7 +91,7 @@ if [ "$1" = "config" ]; then
echo "graph_vlabel $resource limit hits"
echo 'graph_category virtualization'
echo "graph_info Shows number of hits on $resource limits by each vserver.'"
for vserver_xid in $vservers ; do
longname=`/usr/sbin/vuname --xid $vserver_xid NODENAME | cut -f2`
name=`echo $longname | cut -d. -f1`

View file

@ -23,7 +23,7 @@
#
# NOTE: If no configuration variables are set, the defaults will be used
# Example /etc/munin/plugin-conf.d/munin-node
# Example /etc/munin/plugin-conf.d/munin-node
#
# [vserver_limits_RSS]
# user root
@ -68,7 +68,7 @@ if [ "$1" = "config" ]; then
echo "graph_vlabel $resource limits"
echo 'graph_category virtualization'
echo "graph_info Shows current $resource limits for each vserver.'"
for vserver_xid in $vservers ; do
longname=`/usr/sbin/vuname --xid $vserver_xid NODENAME | cut -f2`
name=`echo $longname | cut -d. -f1`