Package: munin-node Version: 1.2.0-1 Severity: normal Tags: patch The plugin /usr/share/munin/plugins/df_inode doesn't convert "-" characters in device names to "_". Device names happen to have "-" if using logical volumes. These devices currently aren't displayed via df_inode.
The following patch resolves this, and also avoids logging of CDROM/DVD (iso9660 file systems) and tmpfs filesystems, which is of no interest (at least for me :-)). --- /usr/share/munin/plugins/df_inode 2005/02/20 23:22:54 1.1.1.1 +++ /usr/share/munin/plugins/df_inode 2005/03/07 14:45:55 @@ -54,9 +66,9 @@ } print_values() { - df -P -l -i -x none -x unknown | sed 1d | grep -v "//" | awk '$5 ~ /[0-9]%/ {print}' | while read i; do + df -P -l -i -x tmpfs -x iso9660 -x none -x unknown | sed 1d | grep -v "//" | awk '$5 ~ /[0-9]%/ {print}' | while read i; do if [ "`fs $i`" = "reiserfs" ] ; then continue ; fi - name=`echo $i | sed 's/[\/.]/_/g'| awk '{ print $1 ".value " }'` + name=`echo $i | sed 's/[\/.-]/_/g'| awk '{ print $1 ".value " }'` echo -n "$name " echo $i | awk '{ print $5 }' | cut -f1 -d% done @@ -78,10 +90,10 @@ echo 'graph_vlabel %' echo 'graph_category disk' echo 'graph_info This graph shows the inode usage for the partitions of types that use inodes.' - df -P -l -i -x unknown -x none -T| sed 1d | grep -v "//" | sort | awk '$6 ~ /[0-9]%/ {print}' | awk " + df -P -l -i -x tmpfs -x iso9660 -x unknown -x none -T| sed 1d | grep -v "//" | sort | awk '$6 ~ /[0-9]%/ {print}' | awk " \$2 !~ /reiserfs/ { dir=\$7 - name=\$1; gsub(/[\/.]/, \"_\", name); + name=\$1; gsub(/[\/.-]/, \"_\", name); if (length(dir) <= $MAXLABEL) print name \".label \" dir else -- 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]