def __init__(self, argv=(), env=None, debug=False):
        """Populate Munin Plugin with MuninGraph instances.
        
        @param argv:  List of command line arguments.
        @param env:   Dictionary of environment variables.
        @param debug: Print debugging messages if True. (Default: False)
        
        """
        MuninPlugin.__init__(self, argv, env, debug)
        self._category = 'Disk IO'

        self._info = DiskIOinfo()
        
        self._labelDelim = { 'fs': '/', 'lv': '-'}
        
        self._diskList = self._info.getDiskList()
        if self._diskList:
            self._diskList.sort()
            self._configDevRequests('disk', 'Disk', self._diskList)
            self._configDevBytes('disk', 'Disk', self._diskList)
            self._configDevActive('disk', 'Disk', self._diskList)
            
        self._mdList = self._info.getMDlist()
        if self._mdList:
            self._mdList.sort()
            self._configDevRequests('md', 'MD', self._mdList)
            self._configDevBytes('md', 'MD', self._mdList)
            self._configDevActive('md', 'MD', self._mdList)
            
        devlist = self._info.getPartitionList()
        if devlist:
            devlist.sort()
            self._partList = [x[1] for x in devlist]
            self._configDevRequests('part', 'Partition', self._partList)
            self._configDevBytes('part', 'Partition', self._partList)
            self._configDevActive('part', 'Partition', self._partList)
        else:
            self._partList = None
            
        self._lvList = self._info.getLVnameList()
        if self._lvList:
            self._lvList.sort()
            self._configDevRequests('lv', 'LV', self._lvList)
            self._configDevBytes('lv', 'LV', self._lvList)
            self._configDevActive('lv', 'LV', self._lvList)
        else:
            self._lvList = None
        
        self._fsList = self._info.getFilesystemList()
        self._fsList.sort()
        self._configDevRequests('fs', 'Filesystem', self._fsList)
        self._configDevBytes('fs', 'Filesystem', self._fsList)
        self._configDevActive('fs', 'Filesystem', self._fsList)
def __init__ ( self , argv = ( ) , env = None , debug = False ) : MuninPlugin . __init__ ( self , argv , env , debug ) self . _category = 'Disk IO' self . _info = DiskIOinfo ( ) self . _labelDelim = { 'fs' : '/' , 'lv' : '-' } self . _diskList = self . _info . getDiskList ( ) if self . _diskList : self . _diskList . sort ( ) self . _configDevRequests ( 'disk' , 'Disk' , self . _diskList ) self . _configDevBytes ( 'disk' , 'Disk' , self . _diskList ) self . _configDevActive ( 'disk' , 'Disk' , self . _diskList ) self . _mdList = self . _info . getMDlist ( ) if self . _mdList : self . _mdList . sort ( ) self . _configDevRequests ( 'md' , 'MD' , self . _mdList ) self . _configDevBytes ( 'md' , 'MD' , self . _mdList ) self . _configDevActive ( 'md' , 'MD' , self . _mdList ) devlist = self . _info . getPartitionList ( ) if devlist : devlist . sort ( ) self . _partList = [ x [ 1 ] for x in devlist ] self . _configDevRequests ( 'part' , 'Partition' , self . _partList ) self . _configDevBytes ( 'part' , 'Partition' , self . _partList ) self . _configDevActive ( 'part' , 'Partition' , self . _partList ) else : self . _partList = None self . _lvList = self . _info . getLVnameList ( ) if self . _lvList : self . _lvList . sort ( ) self . _configDevRequests ( 'lv' , 'LV' , self . _lvList ) self . _configDevBytes ( 'lv' , 'LV' , self . _lvList ) self . _configDevActive ( 'lv' , 'LV' , self . _lvList ) else : self . _lvList = None self . _fsList = self . _info . getFilesystemList ( ) self . _fsList . sort ( ) self . _configDevRequests ( 'fs' , 'Filesystem' , self . _fsList ) self . _configDevBytes ( 'fs' , 'Filesystem' , self . _fsList ) self . _configDevActive ( 'fs' , 'Filesystem' , self . _fsList )
Populate Munin Plugin with MuninGraph instances.
        
        @param argv:  List of command line arguments.
        @param env:   Dictionary of environment variables.
        @param debug: Print debugging messages if True. (Default: False)