def __init__(self, argv=(), env=None, debug=False):
MuninPlugin.__init__(self, argv, env, debug)<EOL>self._category = '<STR_LIT>'<EOL>self._sysinfo = SystemInfo()<EOL>self._loadstats = None<EOL>self._cpustats = None<EOL>self._memstats = None<EOL>self._procstats = None<EOL>self._vmstats = None<EOL>if self.graphEnabled('<STR_LIT>'):<EOL><INDENT>graph = MuninGraph('<STR_LIT>', self._category,<EOL>info='<STR_LIT>',<EOL>args='<STR_LIT>')<EOL>graph.addField('<STR_LIT>', '<STR_LIT>', type='<STR_LIT>', draw='<STR_LIT>')<EOL>graph.addField('<STR_LIT>', '<STR_LIT>', type='<STR_LIT>', draw='<STR_LIT>')<EOL>graph.addField('<STR_LIT>', '<STR_LIT>', type='<STR_LIT>', draw='<STR_LIT>')<EOL>self.appendGraph('<STR_LIT>', graph)<EOL><DEDENT>if self.graphEnabled('<STR_LIT>'):<EOL><INDENT>self._cpustats = self._sysinfo.getCPUuse()<EOL>graph = MuninGraph('<STR_LIT>', self._category,<EOL>info='<STR_LIT>',<EOL>args='<STR_LIT>')<EOL>for field in ['<STR_LIT>', '<STR_LIT:user>', '<STR_LIT>', '<STR_LIT>', '<STR_LIT>', <EOL>'<STR_LIT>', '<STR_LIT>', '<STR_LIT>', '<STR_LIT>']:<EOL><INDENT>if self._cpustats.has_key(field):<EOL><INDENT>graph.addField(field, field, type='<STR_LIT>', min=<NUM_LIT:0>, <EOL>cdef='<STR_LIT>' % field, draw='<STR_LIT>')<EOL><DEDENT><DEDENT>self.appendGraph('<STR_LIT>', graph)<EOL><DEDENT>if self.graphEnabled('<STR_LIT>'):<EOL><INDENT>if self._memstats is None:<EOL><INDENT>self._memstats = self._sysinfo.getMemoryUse()<EOL><DEDENT>self._memstats['<STR_LIT>'] = self._memstats['<STR_LIT>']<EOL>for field in ['<STR_LIT>', '<STR_LIT>', '<STR_LIT>', '<STR_LIT>']:<EOL><INDENT>if self._memstats.has_key(field):<EOL><INDENT>self._memstats['<STR_LIT>'] -= self._memstats[field]<EOL><DEDENT><DEDENT>self._memstats['<STR_LIT>'] = (self._memstats['<STR_LIT>'] <EOL>- self._memstats['<STR_LIT>'])<EOL>graph = MuninGraph('<STR_LIT>', self._category,<EOL>info='<STR_LIT>',<EOL>args='<STR_LIT>')<EOL>for field in ['<STR_LIT>', '<STR_LIT>', '<STR_LIT>', '<STR_LIT>', <EOL>'<STR_LIT>', '<STR_LIT>']:<EOL><INDENT>if self._memstats.has_key(field):<EOL><INDENT>graph.addField(field, field, type='<STR_LIT>', draw='<STR_LIT>')<EOL><DEDENT><DEDENT>self.appendGraph('<STR_LIT>', graph)<EOL><DEDENT>if self.graphEnabled('<STR_LIT>'):<EOL><INDENT>if self._memstats is None:<EOL><INDENT>self._memstats = self._sysinfo.getMemoryUse()<EOL><DEDENT>if self._memstats.has_key('<STR_LIT>'):<EOL><INDENT>self._memstats['<STR_LIT>'] = (self._memstats['<STR_LIT>'] <EOL>* self._memstats['<STR_LIT>']) <EOL><DEDENT>self._memstats['<STR_LIT>'] = self._memstats['<STR_LIT>']<EOL>for field in ['<STR_LIT>', '<STR_LIT>', '<STR_LIT>', '<STR_LIT>']:<EOL><INDENT>if self._memstats.has_key(field):<EOL><INDENT>self._memstats['<STR_LIT>'] -= self._memstats[field]<EOL><DEDENT><DEDENT>graph = MuninGraph('<STR_LIT>', <EOL>self._category,<EOL>info='<STR_LIT>',<EOL>args='<STR_LIT>')<EOL>for field in ['<STR_LIT>', '<STR_LIT>', '<STR_LIT>', '<STR_LIT>', <EOL>'<STR_LIT>']:<EOL><INDENT>if self._memstats.has_key(field):<EOL><INDENT>graph.addField(field, field, type='<STR_LIT>', draw='<STR_LIT>')<EOL><DEDENT><DEDENT>self.appendGraph('<STR_LIT>', graph)<EOL><DEDENT>if self.graphEnabled('<STR_LIT>'):<EOL><INDENT>if self._memstats is None:<EOL><INDENT>self._memstats = self._sysinfo.getMemoryUse()<EOL><DEDENT>if (self._memstats.has_key('<STR_LIT>') <EOL>and self._memstats['<STR_LIT>'] > <NUM_LIT:0>):<EOL><INDENT>graph = MuninGraph('<STR_LIT>', <EOL>self._category,<EOL>info='<STR_LIT>',<EOL>args='<STR_LIT>')<EOL>for field in ['<STR_LIT>', '<STR_LIT>', '<STR_LIT>']:<EOL><INDENT>fkey = '<STR_LIT>' + field<EOL>if self._memstats.has_key(fkey):<EOL><INDENT>graph.addField(field, field, type='<STR_LIT>', <EOL>draw='<STR_LIT>')<EOL><DEDENT><DEDENT>self.appendGraph('<STR_LIT>', graph)<EOL><DEDENT><DEDENT>if self.graphEnabled('<STR_LIT>'):<EOL><INDENT>graph = MuninGraph('<STR_LIT>', self._category,<EOL>info='<STR_LIT>',<EOL>args='<STR_LIT>')<EOL>graph.addField('<STR_LIT>', '<STR_LIT>', type='<STR_LIT>', draw='<STR_LIT>')<EOL>graph.addField('<STR_LIT>', '<STR_LIT>', type='<STR_LIT>', draw='<STR_LIT>')<EOL>self.appendGraph('<STR_LIT>', graph)<EOL><DEDENT>if self.graphEnabled('<STR_LIT>'):<EOL><INDENT>graph = MuninGraph('<STR_LIT>', self._category,<EOL>info='<STR_LIT>',<EOL>args='<STR_LIT>')<EOL>graph.addField('<STR_LIT>', '<STR_LIT>', type='<STR_LIT>', min=<NUM_LIT:0>, draw='<STR_LIT>')<EOL>self.appendGraph('<STR_LIT>', graph)<EOL><DEDENT>if self.graphEnabled('<STR_LIT>'):<EOL><INDENT>if self._procstats is None:<EOL><INDENT>self._procstats = self._sysinfo.getProcessStats()<EOL><DEDENT>graph = MuninGraph('<STR_LIT>', <EOL>self._category,<EOL>info='<STR_LIT>',<EOL>args='<STR_LIT>')<EOL>labels = ['<STR_LIT>', '<STR_LIT>', '<STR_LIT>']<EOL>infos = ['<STR_LIT>',<EOL>'<STR_LIT>',<EOL>'<STR_LIT>']<EOL>idx = <NUM_LIT:0><EOL>for field in ['<STR_LIT>', '<STR_LIT>', '<STR_LIT>']:<EOL><INDENT>if self._procstats.has_key(field):<EOL><INDENT>graph.addField(field, labels[idx], type='<STR_LIT>', min=<NUM_LIT:0>,<EOL>draw='<STR_LIT>', info=infos[idx])<EOL>idx += <NUM_LIT:1><EOL><DEDENT><DEDENT>self.appendGraph('<STR_LIT>', graph)<EOL><DEDENT>if self.graphEnabled('<STR_LIT>'):<EOL><INDENT>graph = MuninGraph('<STR_LIT>', self._category,<EOL>info='<STR_LIT>',<EOL>args='<STR_LIT>',<EOL>vlabel='<STR_LIT>')<EOL>graph.addField('<STR_LIT>', '<STR_LIT>', type='<STR_LIT>', min=<NUM_LIT:0>, draw='<STR_LIT>', <EOL>graph=False)<EOL>graph.addField('<STR_LIT>', '<STR_LIT>', type='<STR_LIT>', min=<NUM_LIT:0>, draw='<STR_LIT>', <EOL>negative='<STR_LIT>')<EOL>self.appendGraph('<STR_LIT>', graph)<EOL><DEDENT>if self.graphEnabled('<STR_LIT>'):<EOL><INDENT>graph = MuninGraph('<STR_LIT>', self._category,<EOL>info='<STR_LIT>',<EOL>args='<STR_LIT>',<EOL>vlabel='<STR_LIT>')<EOL>graph.addField('<STR_LIT>', '<STR_LIT>', type='<STR_LIT>', min=<NUM_LIT:0>, draw='<STR_LIT>', <EOL>graph=False)<EOL>graph.addField('<STR_LIT>', '<STR_LIT>', type='<STR_LIT>', min=<NUM_LIT:0>, draw='<STR_LIT>', <EOL>negative='<STR_LIT>')<EOL>self.appendGraph('<STR_LIT>', graph)<EOL><DEDENT>
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)