There is a tool install.sh that can output the commandlines to execute
to install all plugins for a database (launch ./install.sh, it will tell you
what to do)


else :

Usage:

      Symlink into /etc/munin/plugins/ and add the monitored
      database to the filename. e.g.:

      ln -s /usr/share/munin/plugins/pg__locks \
        /etc/munin/plugins/pg_<databasename>_locks
      This should, however, be given through autoconf and suggest.

      If required, give username, password and/or Postgresql server
      host through environment variables.

      You must also activate Postgresql statistics. See
      http://www.postgresql.org/docs/8.1/interactive/monitoring-locks.html
      for how to enable this. Specifically, the following lines must
      exist in your postgresql.conf:

          stats_start_collector = true
          stats_block_level = true


Parameters:

      config   (required)

Config variables:

      dbhost     - Which database server to use. Defaults to
                   'localhost'.
      dbname     - Which database to use. Defaults to template1
      dbuser     - A Postgresql user account with read permission to
                   the given database. Defaults to
                   'postgres'. Anyway, Munin must be told which user
                   this plugin should be run as.
      dbpass     - The corresponding password, if
                   applicable. Default to undef. Remember that
                   pg_hba.conf must be configured accordingly.

The config variables need to be write like this :
[pg_foobase*]
user foouser
env.dbname foobase


