def __init__(self, argv=(), env=None, debug=False):
MuninPlugin.__init__(self, argv, env, debug)<EOL>self.envRegisterFilter('<STR_LIT>', '<STR_LIT>')<EOL>self._host = self.envGet('<STR_LIT:host>')<EOL>self._port = self.envGet('<STR_LIT:port>', None, int)<EOL>self._database = self.envGet('<STR_LIT>')<EOL>self._user = self.envGet('<STR_LIT:user>')<EOL>self._password = self.envGet('<STR_LIT:password>')<EOL>self._category = '<STR_LIT>'<EOL>self._engines = None<EOL>self._genStats = None<EOL>self._genVars = None<EOL>self._dbList = None<EOL>self._dbconn = MySQLinfo(self._host, self._port, self._database, <EOL>self._user, self._password)<EOL>if self.graphEnabled('<STR_LIT>'):<EOL><INDENT>graph = MuninGraph('<STR_LIT>', <EOL>self._category,<EOL>info='<STR_LIT>',<EOL>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>'<STR_LIT>')<EOL>self.appendGraph('<STR_LIT>', graph)<EOL><DEDENT>if self.graphEnabled('<STR_LIT>'):<EOL><INDENT>graph = MuninGraph('<STR_LIT>', <EOL>self._category,<EOL>info='<STR_LIT>',<EOL>args='<STR_LIT>',<EOL>vlabel='<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>info="<STR_LIT>")<EOL>self.appendGraph('<STR_LIT>', graph)<EOL><DEDENT>if self.graphEnabled('<STR_LIT>'):<EOL><INDENT>graph = MuninGraph('<STR_LIT>', <EOL>self._category,<EOL>info='<STR_LIT>'<EOL>'<STR_LIT>',<EOL>args='<STR_LIT>')<EOL>graph.addField('<STR_LIT>', '<STR_LIT>', draw='<STR_LIT>', <EOL>type='<STR_LIT>', min=<NUM_LIT:0>)<EOL>self.appendGraph('<STR_LIT>', graph)<EOL><DEDENT>if self.graphEnabled('<STR_LIT>'):<EOL><INDENT>graph = MuninGraph('<STR_LIT>', <EOL>self._category,<EOL>info='<STR_LIT>',<EOL>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>self.appendGraph('<STR_LIT>', graph)<EOL><DEDENT>if self.graphEnabled('<STR_LIT>'):<EOL><INDENT>graph = MuninGraph('<STR_LIT>', <EOL>self._category,<EOL>info='<STR_LIT>',<EOL>args='<STR_LIT>')<EOL>for (field, desc) in (('<STR_LIT>', <EOL>'<STR_LIT>'),<EOL>('<STR_LIT:key>', <EOL>'<STR_LIT>'),<EOL>('<STR_LIT>', <EOL>'<STR_LIT>'),<EOL>('<STR_LIT>', <EOL>'<STR_LIT>'),<EOL>('<STR_LIT>', <EOL>'<STR_LIT>'),<EOL>('<STR_LIT>', <EOL>'<STR_LIT>'),):<EOL><INDENT>graph.addField(field, field, draw='<STR_LIT>', <EOL>type='<STR_LIT>', min=<NUM_LIT:0>, info=desc)<EOL><DEDENT>self.appendGraph('<STR_LIT>', graph)<EOL><DEDENT>if self.graphEnabled('<STR_LIT>'):<EOL><INDENT>graph = MuninGraph('<STR_LIT>', <EOL>self._category,<EOL>info='<STR_LIT>',<EOL>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>'<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>'<STR_LIT>')<EOL>self.appendGraph('<STR_LIT>', graph)<EOL><DEDENT>if self.graphEnabled('<STR_LIT>'):<EOL><INDENT>graph = MuninGraph('<STR_LIT>', <EOL>self._category,<EOL>info='<STR_LIT>',<EOL>args='<STR_LIT>')<EOL>graph.addField('<STR_LIT>', '<STR_LIT>', draw='<STR_LIT>', type='<STR_LIT>', <EOL>info="<STR_LIT>")<EOL>graph.addField('<STR_LIT>', '<STR_LIT>', draw='<STR_LIT>', type='<STR_LIT>', <EOL>info="<STR_LIT>")<EOL>graph.addField('<STR_LIT>', '<STR_LIT>', draw='<STR_LIT>', type='<STR_LIT>', <EOL>info="<STR_LIT>")<EOL>graph.addField('<STR_LIT>', '<STR_LIT>', draw='<STR_LIT>', type='<STR_LIT>', <EOL>colour='<STR_LIT>',<EOL>info="<STR_LIT>")<EOL>self.appendGraph('<STR_LIT>', graph)<EOL><DEDENT>if self.graphEnabled('<STR_LIT>'):<EOL><INDENT>graph = MuninGraph('<STR_LIT>', <EOL>self._category,<EOL>info='<STR_LIT>',<EOL>args='<STR_LIT>')<EOL>for (field, label, desc) in (<EOL>('<STR_LIT>', '<STR_LIT>', <EOL>'<STR_LIT>'),<EOL>('<STR_LIT>', '<STR_LIT>', <EOL>'<STR_LIT>'<EOL>'<STR_LIT>'),<EOL>('<STR_LIT>', '<STR_LIT>',<EOL>'<STR_LIT>'),<EOL>('<STR_LIT>', '<STR_LIT>',<EOL>'<STR_LIT>'<EOL>'<STR_LIT>'),<EOL>('<STR_LIT>', '<STR_LIT>',<EOL>'<STR_LIT>'<EOL>'<STR_LIT>'),<EOL>('<STR_LIT>', '<STR_LIT>',<EOL>'<STR_LIT>'<EOL>'<STR_LIT>'<EOL>'<STR_LIT>'), <EOL>('<STR_LIT>', '<STR_LIT>',<EOL>'<STR_LIT>'),<EOL>('<STR_LIT>', '<STR_LIT>',<EOL>'<STR_LIT>'<EOL>'<STR_LIT>'<EOL>'<STR_LIT>'),<EOL>('<STR_LIT>', '<STR_LIT>',<EOL>'<STR_LIT>'),<EOL>('<STR_LIT>', '<STR_LIT>',<EOL>'<STR_LIT>'),<EOL>('<STR_LIT>', '<STR_LIT>',<EOL>'<STR_LIT>'<EOL>'<STR_LIT>'),<EOL>('<STR_LIT>', '<STR_LIT>',<EOL>'<STR_LIT>'<EOL>'<STR_LIT>'),<EOL>('<STR_LIT:end>', '<STR_LIT:end>',<EOL>'<STR_LIT>'<EOL>'<STR_LIT>'),<EOL>('<STR_LIT>', '<STR_LIT>',<EOL>'<STR_LIT>'<EOL>'<STR_LIT>'),<EOL>('<STR_LIT>', '<STR_LIT>',<EOL>'<STR_LIT>'),<EOL>('<STR_LIT>', '<STR_LIT>',<EOL>'<STR_LIT>'),<EOL>('<STR_LIT>', '<STR_LIT>',<EOL>'<STR_LIT>'),):<EOL><INDENT>graph.addField(field, label, draw='<STR_LIT>', type='<STR_LIT>', <EOL>info=desc)<EOL><DEDENT>self.appendGraph('<STR_LIT>', graph)<EOL><DEDENT>if self.graphEnabled('<STR_LIT>'):<EOL><INDENT>if self._dbList is None:<EOL><INDENT>self._dbList = self._dbconn.getDatabases()<EOL>self._dbList.sort()<EOL><DEDENT>graph = MuninGraph('<STR_LIT>', <EOL>self._category,<EOL>info='<STR_LIT>',<EOL>args='<STR_LIT>', autoFixNames=True)<EOL>for db in self._dbList:<EOL><INDENT>graph.addField(db, db, draw='<STR_LIT>', type='<STR_LIT>', <EOL>info="<STR_LIT>" % db)<EOL><DEDENT>self.appendGraph('<STR_LIT>', graph)<EOL><DEDENT>if self.graphEnabled('<STR_LIT>'):<EOL><INDENT>graph = MuninGraph('<STR_LIT>', <EOL>self._category,<EOL>info='<STR_LIT>',<EOL>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>self.appendGraph('<STR_LIT>', graph)<EOL><DEDENT>if self.graphEnabled('<STR_LIT>'):<EOL><INDENT>graph = MuninGraph('<STR_LIT>', <EOL>self._category,<EOL>info='<STR_LIT>',<EOL>args='<STR_LIT>')<EOL>graph.addField('<STR_LIT>', '<STR_LIT>', draw='<STR_LIT>', type='<STR_LIT>', <EOL>info="<STR_LIT>")<EOL>graph.addField('<STR_LIT>', '<STR_LIT>', draw='<STR_LIT>', type='<STR_LIT>', <EOL>info="<STR_LIT>")<EOL>self.appendGraph('<STR_LIT>', graph)<EOL><DEDENT>if self.graphEnabled('<STR_LIT>'):<EOL><INDENT>graph = MuninGraph('<STR_LIT>', <EOL>self._category,<EOL>info='<STR_LIT>',<EOL>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>self.appendGraph('<STR_LIT>', graph)<EOL><DEDENT>if self.graphEnabled('<STR_LIT>'):<EOL><INDENT>graph = MuninGraph('<STR_LIT>', <EOL>self._category,<EOL>info='<STR_LIT>'<EOL>'<STR_LIT>',<EOL>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>'<STR_LIT>')<EOL>self.appendGraph('<STR_LIT>', graph)<EOL><DEDENT>if self.engineIncluded('<STR_LIT>'):<EOL><INDENT>if self.graphEnabled('<STR_LIT>'):<EOL><INDENT>graph = MuninGraph('<STR_LIT>', <EOL>self._category,<EOL>info='<STR_LIT>'<EOL>'<STR_LIT>',<EOL>args='<STR_LIT>')<EOL>graph.addField('<STR_LIT>', '<STR_LIT>', draw='<STR_LIT>', type='<STR_LIT>', <EOL>info="<STR_LIT>")<EOL>graph.addField('<STR_LIT>', '<STR_LIT>', draw='<STR_LIT>', type='<STR_LIT>', <EOL>info="<STR_LIT>")<EOL>graph.addField('<STR_LIT>', '<STR_LIT>', draw='<STR_LIT>', type='<STR_LIT>', <EOL>info="<STR_LIT>")<EOL>graph.addField('<STR_LIT>', '<STR_LIT>', draw='<STR_LIT>', type='<STR_LIT>', <EOL>colour='<STR_LIT>',<EOL>info="<STR_LIT>")<EOL>self.appendGraph('<STR_LIT>', graph)<EOL><DEDENT>if self.graphEnabled('<STR_LIT>'):<EOL><INDENT>graph = MuninGraph('<STR_LIT>', <EOL>self._category,<EOL>info='<STR_LIT>'<EOL>'<STR_LIT>',<EOL>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>'<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>'<STR_LIT>'<EOL>'<STR_LIT>')<EOL>self.appendGraph('<STR_LIT>', graph)<EOL><DEDENT><DEDENT>if self.engineIncluded('<STR_LIT>'):<EOL><INDENT>if self.graphEnabled('<STR_LIT>'):<EOL><INDENT>graph = MuninGraph('<STR_LIT>', <EOL>self._category,<EOL>info='<STR_LIT>',<EOL>args='<STR_LIT>')<EOL>graph.addField('<STR_LIT>', '<STR_LIT>', draw='<STR_LIT>', type='<STR_LIT>', <EOL>info="<STR_LIT>")<EOL>graph.addField('<STR_LIT>', '<STR_LIT>', draw='<STR_LIT>', type='<STR_LIT>', <EOL>info="<STR_LIT>")<EOL>graph.addField('<STR_LIT>', '<STR_LIT>', draw='<STR_LIT>', type='<STR_LIT>', <EOL>info="<STR_LIT>")<EOL>graph.addField('<STR_LIT>', '<STR_LIT>', draw='<STR_LIT>', type='<STR_LIT>', <EOL>info="<STR_LIT>")<EOL>graph.addField('<STR_LIT>', '<STR_LIT>', draw='<STR_LIT>', type='<STR_LIT>', <EOL>colour='<STR_LIT>',<EOL>info="<STR_LIT>")<EOL>self.appendGraph('<STR_LIT>', graph)<EOL><DEDENT>if self.graphEnabled('<STR_LIT>'):<EOL><INDENT>graph = MuninGraph('<STR_LIT>', <EOL>self._category,<EOL>info='<STR_LIT>'<EOL>'<STR_LIT>',<EOL>args='<STR_LIT>')<EOL>for (field, desc) in (('<STR_LIT>',<EOL>'<STR_LIT>'<EOL>'<STR_LIT>'),<EOL>('<STR_LIT>', <EOL>'<STR_LIT>'),<EOL>('<STR_LIT>', <EOL>'<STR_LIT>')):<EOL><INDENT>graph.addField(field, field, draw='<STR_LIT>', <EOL>type='<STR_LIT>', min=<NUM_LIT:0>, info=desc)<EOL><DEDENT>self.appendGraph('<STR_LIT>', graph)<EOL><DEDENT>if self.graphEnabled('<STR_LIT>'):<EOL><INDENT>graph = MuninGraph('<STR_LIT>', <EOL>self._category,<EOL>info='<STR_LIT>'<EOL>'<STR_LIT>',<EOL>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>'<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>'<STR_LIT>'<EOL>'<STR_LIT>')<EOL>self.appendGraph('<STR_LIT>', graph)<EOL><DEDENT>if self.graphEnabled('<STR_LIT>'):<EOL><INDENT>graph = MuninGraph('<STR_LIT>', <EOL>self._category,<EOL>info='<STR_LIT>'<EOL>'<STR_LIT>',<EOL>args='<STR_LIT>')<EOL>for field in ('<STR_LIT>', '<STR_LIT>', '<STR_LIT>', '<STR_LIT>'):<EOL><INDENT>graph.addField(field, field, draw='<STR_LIT>', <EOL>type='<STR_LIT>', min=<NUM_LIT:0>,<EOL>info="<STR_LIT>" % field)<EOL><DEDENT>self.appendGraph('<STR_LIT>', graph)<EOL><DEDENT><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)