def __init__(self, argv=(), env=None, debug=False):
MuninPlugin.__init__(self, argv, env, debug)<EOL>self._host = self.envGet('<STR_LIT:host>')<EOL>self._port = self.envGet('<STR_LIT:port>', None, int)<EOL>self._socket_file = self.envGet('<STR_LIT>', None)<EOL>self._category = '<STR_LIT>'<EOL>self._stats = None<EOL>self._prev_stats = self.restoreState()<EOL>if self._prev_stats is None:<EOL><INDENT>serverInfo = MemcachedInfo(self._host,  self._port, <EOL>self._socket_file)<EOL>self._stats = serverInfo.getStats()<EOL>stats = self._stats<EOL><DEDENT>else:<EOL><INDENT>stats = self._prev_stats<EOL><DEDENT>if stats is None:<EOL><INDENT>raise Exception("<STR_LIT>")<EOL><DEDENT>if (self.graphEnabled('<STR_LIT>')  <EOL>and stats.has_key('<STR_LIT>')):<EOL><INDENT>graph = MuninGraph('<STR_LIT>', self._category,<EOL>info='<STR_LIT>',<EOL>vlabel='<STR_LIT>', args='<STR_LIT>')<EOL>graph.addField('<STR_LIT>', '<STR_LIT>', draw='<STR_LIT>', type='<STR_LIT>')<EOL>self.appendGraph('<STR_LIT>', graph)<EOL><DEDENT>if (self.graphEnabled('<STR_LIT>')<EOL>and stats.has_key('<STR_LIT>')):<EOL><INDENT>graph = MuninGraph('<STR_LIT>', self._category,<EOL>info='<STR_LIT>',<EOL>vlabel='<STR_LIT>', args='<STR_LIT>')<EOL>graph.addField('<STR_LIT>', '<STR_LIT>', draw='<STR_LIT>', type='<STR_LIT>')<EOL>self.appendGraph('<STR_LIT>', graph)<EOL><DEDENT>if (self.graphEnabled('<STR_LIT>')<EOL>and stats.has_key('<STR_LIT>')):<EOL><INDENT>graph = MuninGraph('<STR_LIT>', self._category,<EOL>info='<STR_LIT>',<EOL>vlabel='<STR_LIT>',<EOL>args='<STR_LIT>')<EOL>graph.addField('<STR_LIT>', '<STR_LIT>', draw='<STR_LIT>', type='<STR_LIT>')<EOL>self.appendGraph('<STR_LIT>', graph)<EOL><DEDENT>if (self.graphEnabled('<STR_LIT>')<EOL>and stats.has_key('<STR_LIT>')):<EOL><INDENT>graph = MuninGraph('<STR_LIT>', <EOL>self._category,<EOL>info='<STR_LIT>',<EOL>vlabel='<STR_LIT>',<EOL>args='<STR_LIT>')<EOL>graph.addField('<STR_LIT>', '<STR_LIT>', draw='<STR_LIT>', type='<STR_LIT>', min=<NUM_LIT:0>)<EOL>self.appendGraph('<STR_LIT>', graph)<EOL><DEDENT>if (self.graphEnabled('<STR_LIT>')<EOL>and stats.has_key('<STR_LIT>') and stats.has_key('<STR_LIT>')):<EOL><INDENT>graph = MuninGraph('<STR_LIT>', self._category,<EOL>info='<STR_LIT>',<EOL>vlabel='<STR_LIT>',<EOL>args='<STR_LIT>')<EOL>graph.addField('<STR_LIT>', '<STR_LIT>', draw='<STR_LIT>', type='<STR_LIT>', <EOL>min=<NUM_LIT:0>, graph=False)<EOL>graph.addField('<STR_LIT>', '<STR_LIT>', draw='<STR_LIT>', type='<STR_LIT>', <EOL>min=<NUM_LIT:0>, negative='<STR_LIT>')<EOL>self.appendGraph('<STR_LIT>', graph)<EOL><DEDENT>if (self.graphEnabled('<STR_LIT>')<EOL>and stats.has_key('<STR_LIT>')<EOL>and stats.has_key('<STR_LIT>')):<EOL><INDENT>graph = MuninGraph('<STR_LIT>', <EOL>self._category,<EOL>info='<STR_LIT>',<EOL>vlabel='<STR_LIT>', args='<STR_LIT>')<EOL>for (fname,fstat,fstr) in (('<STR_LIT>', '<STR_LIT>', '<STR_LIT>'),<EOL>('<STR_LIT>', '<STR_LIT>', '<STR_LIT>'),<EOL>('<STR_LIT>', '<STR_LIT>', '<STR_LIT>'),<EOL>('<STR_LIT>', '<STR_LIT>', '<STR_LIT>'),<EOL>('<STR_LIT>', '<STR_LIT>', '<STR_LIT>'),<EOL>('<STR_LIT>', '<STR_LIT>', '<STR_LIT>')):<EOL><INDENT>if stats.has_key(fstat):<EOL><INDENT>graph.addField(fname, fname, draw='<STR_LIT>', type='<STR_LIT>', <EOL>min=<NUM_LIT:0>, <EOL>info='<STR_LIT>' % fstr)<EOL><DEDENT><DEDENT>self.appendGraph('<STR_LIT>', graph)<EOL><DEDENT>if (self.graphEnabled('<STR_LIT>')<EOL>and stats.has_key('<STR_LIT>')):<EOL><INDENT>graph = MuninGraph('<STR_LIT>', <EOL>self._category,<EOL>info='<STR_LIT>',<EOL>vlabel='<STR_LIT>', args='<STR_LIT>')<EOL>graph.addField('<STR_LIT>', '<STR_LIT>', draw='<STR_LIT>', type='<STR_LIT>', min=<NUM_LIT:0>, <EOL>info='<STR_LIT>')<EOL>graph.addField('<STR_LIT>', '<STR_LIT>', draw='<STR_LIT>', type='<STR_LIT>', min=<NUM_LIT:0>, <EOL>info='<STR_LIT>')<EOL>graph.addField('<STR_LIT>', '<STR_LIT>', draw='<STR_LIT>', type='<STR_LIT>', min=<NUM_LIT:0>,<EOL>colour='<STR_LIT>', <EOL>info='<STR_LIT>')<EOL>self.appendGraph('<STR_LIT>', graph)<EOL><DEDENT>if (self.graphEnabled('<STR_LIT>')<EOL>and stats.has_key('<STR_LIT>')):<EOL><INDENT>graph = MuninGraph('<STR_LIT>', <EOL>self._category,<EOL>info='<STR_LIT>', <EOL>vlabel='<STR_LIT>', args='<STR_LIT>')<EOL>graph.addField('<STR_LIT>', '<STR_LIT>', draw='<STR_LIT>', type='<STR_LIT>', min=<NUM_LIT:0>, <EOL>info='<STR_LIT>')<EOL>graph.addField('<STR_LIT>', '<STR_LIT>', draw='<STR_LIT>', type='<STR_LIT>', min=<NUM_LIT:0>, <EOL>info='<STR_LIT>')<EOL>graph.addField('<STR_LIT>', '<STR_LIT>', draw='<STR_LIT>', type='<STR_LIT>', min=<NUM_LIT:0>,<EOL>colour='<STR_LIT>', <EOL>info='<STR_LIT>')<EOL>self.appendGraph('<STR_LIT>', graph)<EOL><DEDENT>if (self.graphEnabled('<STR_LIT>')<EOL>and stats.has_key('<STR_LIT>')):<EOL><INDENT>graph = MuninGraph('<STR_LIT>', <EOL>self._category,<EOL>info='<STR_LIT>',<EOL>vlabel='<STR_LIT>', args='<STR_LIT>')<EOL>graph.addField('<STR_LIT>', '<STR_LIT>', draw='<STR_LIT>', type='<STR_LIT>', min=<NUM_LIT:0>, <EOL>info='<STR_LIT>')<EOL>graph.addField('<STR_LIT>', '<STR_LIT>', draw='<STR_LIT>', type='<STR_LIT>', min=<NUM_LIT:0>, <EOL>info='<STR_LIT>')<EOL>graph.addField('<STR_LIT>', '<STR_LIT>', draw='<STR_LIT>', type='<STR_LIT>', min=<NUM_LIT:0>,<EOL>colour='<STR_LIT>', <EOL>info='<STR_LIT>')<EOL>self.appendGraph('<STR_LIT>', graph)<EOL><DEDENT>if (self.graphEnabled('<STR_LIT>')<EOL>and stats.has_key('<STR_LIT>')):<EOL><INDENT>graph = MuninGraph('<STR_LIT>', <EOL>self._category,<EOL>info='<STR_LIT>',<EOL>vlabel='<STR_LIT>', args='<STR_LIT>')<EOL>graph.addField('<STR_LIT>', '<STR_LIT>', draw='<STR_LIT>', type='<STR_LIT>', min=<NUM_LIT:0>, <EOL>info='<STR_LIT>')<EOL>graph.addField('<STR_LIT>', '<STR_LIT>', draw='<STR_LIT>', type='<STR_LIT>', min=<NUM_LIT:0>, <EOL>info='<STR_LIT>')<EOL>graph.addField('<STR_LIT>', '<STR_LIT>', draw='<STR_LIT>', <EOL>type='<STR_LIT>', min=<NUM_LIT:0>, <EOL>info='<STR_LIT>')<EOL>graph.addField('<STR_LIT>', '<STR_LIT>', draw='<STR_LIT>', type='<STR_LIT>', min=<NUM_LIT:0>,<EOL>colour='<STR_LIT>', <EOL>info='<STR_LIT>')<EOL>self.appendGraph('<STR_LIT>', graph)<EOL><DEDENT>if (self.graphEnabled('<STR_LIT>')<EOL>and stats.has_key('<STR_LIT>')<EOL>and stats.has_key('<STR_LIT>')):<EOL><INDENT>graph = MuninGraph('<STR_LIT>', <EOL>self._category,<EOL>info='<STR_LIT>',<EOL>vlabel='<STR_LIT>', args='<STR_LIT>')<EOL>graph.addField('<STR_LIT>', '<STR_LIT>', draw='<STR_LIT>', <EOL>type='<STR_LIT>', min=<NUM_LIT:0>, <EOL>info='<STR_LIT>')<EOL>graph.addField('<STR_LIT>', '<STR_LIT>', draw='<STR_LIT>', <EOL>type='<STR_LIT>', min=<NUM_LIT:0>, <EOL>info='<STR_LIT>')<EOL>graph.addField('<STR_LIT>', '<STR_LIT>', draw='<STR_LIT>', <EOL>type='<STR_LIT>', min=<NUM_LIT:0>, <EOL>info='<STR_LIT>')<EOL>graph.addField('<STR_LIT>', '<STR_LIT>', draw='<STR_LIT>', <EOL>type='<STR_LIT>', min=<NUM_LIT:0>, <EOL>info='<STR_LIT>')<EOL>graph.addField('<STR_LIT>', '<STR_LIT>', draw='<STR_LIT>', type='<STR_LIT>', min=<NUM_LIT:0>,<EOL>colour='<STR_LIT>', <EOL>info='<STR_LIT>')<EOL>self.appendGraph('<STR_LIT>', graph)<EOL><DEDENT>if (self.graphEnabled('<STR_LIT>')<EOL>and stats.has_key('<STR_LIT>')):<EOL><INDENT>graph = MuninGraph('<STR_LIT>', <EOL>self._category,<EOL>info='<STR_LIT>',<EOL>vlabel='<STR_LIT>', args='<STR_LIT>')<EOL>graph.addField('<STR_LIT>', '<STR_LIT>', draw='<STR_LIT>', type='<STR_LIT>', min=<NUM_LIT:0>, <EOL>info='<STR_LIT>')<EOL>if stats.has_key('<STR_LIT>'):<EOL><INDENT>graph.addField('<STR_LIT>', '<STR_LIT>', draw='<STR_LIT>', type='<STR_LIT>', <EOL>min=<NUM_LIT:0>, <EOL>info='<STR_LIT>')<EOL><DEDENT>self.appendGraph('<STR_LIT>', graph)<EOL><DEDENT>if (self.graphEnabled('<STR_LIT>')<EOL>and stats.has_key('<STR_LIT>')):<EOL><INDENT>graph = MuninGraph('<STR_LIT>', <EOL>self._category,<EOL>info='<STR_LIT>',<EOL>vlabel='<STR_LIT>', args='<STR_LIT>')<EOL>graph.addField('<STR_LIT>', '<STR_LIT>', draw='<STR_LIT>', type='<STR_LIT>', min=<NUM_LIT:0>, <EOL>info='<STR_LIT>')<EOL>graph.addField('<STR_LIT>', '<STR_LIT>', draw='<STR_LIT>', type='<STR_LIT>', min=<NUM_LIT:0>, <EOL>info='<STR_LIT>')<EOL>self.appendGraph('<STR_LIT>', graph)<EOL><DEDENT>if (self.graphEnabled('<STR_LIT>')<EOL>and stats.has_key('<STR_LIT>')<EOL>and stats.has_key('<STR_LIT>')):<EOL><INDENT>graph = MuninGraph('<STR_LIT>', self._category,<EOL>info='<STR_LIT>',<EOL>vlabel='<STR_LIT:%>', args='<STR_LIT>')<EOL>graph.addField('<STR_LIT>', '<STR_LIT>', draw='<STR_LIT>', type='<STR_LIT>', <EOL>info='<STR_LIT>')<EOL>for (fname,fstat,fstr) in (('<STR_LIT>', '<STR_LIT>', '<STR_LIT>'),<EOL>('<STR_LIT>', '<STR_LIT>', '<STR_LIT>'),<EOL>('<STR_LIT>', '<STR_LIT>', '<STR_LIT>'),<EOL>('<STR_LIT>', '<STR_LIT>', '<STR_LIT>'),<EOL>('<STR_LIT>', '<STR_LIT>', '<STR_LIT>')):<EOL><INDENT>if stats.has_key(fstat):<EOL><INDENT>graph.addField(fname, fname, draw='<STR_LIT>', type='<STR_LIT>', <EOL>info='<STR_LIT>' % fstr)<EOL><DEDENT><DEDENT>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)