diff -Nuar --exclude '*~' munin-1.3.2.orig/node/node.d.linux/iostat_ios.in munin-1.3.2/node/node.d.linux/iostat_ios.in --- munin-1.3.2.orig/node/node.d.linux/iostat_ios.in 2005-04-15 13:29:18.000000000 -0700 +++ munin-1.3.2/node/node.d.linux/iostat_ios.in 2006-07-11 02:05:50.618754305 -0700 @@ -53,12 +53,16 @@ sub filter { my ($major, $minor, $tmpnam); - return 0 if ($major == 1); # RAM devices - return 0 if ($major == 9); # MD devices - return 0 if ($major == 58); # LVM devices - return 0 if ($major == 254); # LVM2 devices - return 0 if ($tmpnam =~ /part\d+$/); - return 0 if ($tmpnam =~ /^\s*(?:sd|hd)[a-z]\d+\s*$/); + if(defined($major)) { + return 0 if ($major == 1); # RAM devices + return 0 if ($major == 9); # MD devices + return 0 if ($major == 58); # LVM devices + return 0 if ($major == 254); # LVM2 devices + } + if(defined($tmpnam)) { + return 0 if ($tmpnam =~ /part\d+$/); + return 0 if ($tmpnam =~ /^\s*(?:sd|hd)[a-z]\d+\s*$/); + } return 1; }