From e594a642623a096b89eb289665dc45b6828d8d83 Mon Sep 17 00:00:00 2001 From: ward Date: Wed, 20 Apr 2011 20:36:16 +0200 Subject: [PATCH] Exclude tmpfs partitions from 'config'. --- plugins/other/df_with_nfs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/plugins/other/df_with_nfs b/plugins/other/df_with_nfs index 7be1d411..7a87c473 100755 --- a/plugins/other/df_with_nfs +++ b/plugins/other/df_with_nfs @@ -8,6 +8,9 @@ # autoconf (optional - used by munin-config) # # $Log$ +# Revision 1.5.2.5 2011/04/20 14:25:07 ward +# Exclude tmpfs partitions from 'config'. +# # Revision 1.5.2.4 2005/03/12 21:35:07 jimmyo # Correct history loss in linux/{df,df_inode}. # @@ -74,7 +77,7 @@ if [ "$1" = "config" ]; then echo 'graph_vlabel %' echo 'graph_category disk' echo 'graph_info This graph shows disk usage on the machine.' - df -T -P -x none -x unknown -x udf -x iso9660 -x romfs -x ramfs | sed 1d | grep -v "//" | sort | cut -d: -f2 | while read i; do + df -T -P -l -x none -x unknown -x udf -x iso9660 -x romfs -x ramfs -x tmpfs | sed 1d | grep -v "//" | sort | while read i; do name=`clean_name $i` echo -n "$name.label " echo $i | awk "{ @@ -91,7 +94,7 @@ if [ "$1" = "config" ]; then exit 0 fi -df -T -P -x none -x unknown -x udf -x iso9660 -x romfs -x ramfs -x tmpfs | sed 1d | cut -d: -f2 | grep -v "//" | while read i; do +df -T -P -l -x none -x unknown -x udf -x iso9660 -x romfs -x ramfs -x proc -x sysfs -x tmpfs -x udev | sed 1d | grep -v "//" | while read i; do name=`clean_name $i` echo -n "$name.value " echo $i | awk '{ print $6 }' | cut -f1 -d%