Package: munin-node
Version: 1.2.0-1
Severity: normal
Tags: patch
Munin allows long device names now, but df_abs still generates
abbreviated ones, so that ambiguous values may be transferred if two
long-named devices have the same endings.
The patch below also excludes iso9660 and tmpfs filesystems from being
logged, which is (at least for me) of no interest.
--- /usr/share/munin/plugins/df_abs 2005/02/20 23:22:54 1.1
+++ /usr/share/munin/plugins/df_abs 2005/03/07 15:22:21
@@ -27,7 +33,6 @@
#%# capabilities=autoconf
MAXLABEL=20
-MAXNAME=15
if [ "$1" = "autoconf" ]; then
echo yes
@@ -35,12 +40,7 @@
fi
clean_name() {
- echo $1 | sed 's/[\/.-]/_/g; s/^_dev\(_mapper\)\?_//'| awk "{
- if (length(\$1) > $MAXNAME)
- print substr(\$1, length(\$1)-$MAXNAME+1)
- else
- print \$1
- }"
+ echo $1 | sed 's/[\/.-]/_/g; s/^_dev\(_mapper\)\?_//'
}
if [ "$1" = "config" ]; then
@@ -50,7 +50,7 @@
echo 'graph_vlabel bytes'
echo 'graph_category disk'
echo 'graph_total Total'
- df -P -l -x none -x unknown | sed 1d | grep -v "//" | while read i; do
+ df -P -l -x none -x unknown -x iso9660 -x tmpfs | sed 1d | grep -v "//"
| while read i; do
name=`clean_name $i`
echo -n "$name.label "
echo $i | awk "{
@@ -68,7 +68,7 @@
exit 0
fi
-df -P -l -x unknown -x none| sed 1d | grep -v "//" | while read i; do
+df -P -l -x unknown -x none -x iso9660 -x tmpfs | sed 1d | grep -v "//" |
while read i; do
name=`clean_name $i`
echo -n "$name.value "
echo $i | awk '{ print $3 }'
-- System Information:
Debian Release: 3.1
APT prefers testing
APT policy: (990, 'testing'), (500, 'unstable')
Architecture: i386 (i686)
Kernel: Linux 2.6.7-1-k7
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8)
Versions of packages munin-node depends on:
ii libnet-server-perl 0.87-2 An extensible, general perl server
ii perl 5.8.4-6 Larry Wall's Practical Extraction
ii procps 1:3.2.1-2 The /proc file system utilities
-- no debconf information
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]