Changeset 89

Show
Ignore:
Timestamp:
02/02/04 17:53:53 (6 years ago)
Author:
jimmyo
Message:

Make the iostat plugin work properly.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/ChangeLog

    • Property cvs2svn:cvs-rev changed from 1.35 to 1.36
    r88 r89  
    99  * Remove dependency on pgrep (use process groups instead). (SF#881049) 
    1010  * Documentation updates. 
     11  * Make the iostat plugin work properly. 
    1112 
    1213munin (1.0.0pre2) 
  • trunk/node/node.d.linux/iostat.in

    • Property cvs2svn:cvs-rev changed from 1.2 to 1.3
    r56 r89  
    1111# 
    1212# $Log$ 
     13# Revision 1.3  2004/02/02 16:53:53  jimmyo 
     14# Make the iostat plugin work properly. 
     15# 
    1316# Revision 1.2  2004/01/31 19:24:52  jimmyo 
    1417# Rewrite of linux/iostat by Mike Fedyk (Deb##223373,224113). 
     
    161164                                my $tmpnam = $2; 
    162165                                my $major  = $1; 
    163                                 $tmpnam =~ s/\//:/g; 
     166                                next if ($major ==   1); # RAM devices 
     167                                next if ($major ==   9); # MD devices 
     168                                next if ($major ==  58); # LVM devices 
     169                                next if ($major == 254); # LVM2 devices 
     170                                next if ($tmpnam =~ /part\d+$/); 
     171 
    164172                                $tmpnam =~ s/:[[:alpha:]]+(\d+)/:$1/g; 
     173                                $tmpnam =~ s/^([^\/]+)\//$1/; 
     174                                $tmpnam =~ s/:disc$//; 
    165175 
    166176                                $devs{"dev".$major."_".&get_disk_count($major)} =