The module as it currently stands cannot support reporting for multiple sites. eg. If a server has a number of Drupal sites installed, it is not possible to show stats for each on of them.

The reason for this is that the "category" defined in the _munin_api_get_config() drush function hardcodes the category to be 'Drupal'. The outcome is that multiple sites all output their data to the same category, making it impossible to distinguish between the sites.

A solution to this problem is to define the category according to the absolute URL of the site. I will post a patch which does this.

CommentFileSizeAuthor
#1 munin_multiple_sites_2077559_1.patch2.71 KBmurrayw

Comments

murrayw’s picture

StatusFileSize
new2.71 KB

I have added a category_name variable. An update hook sets this to be "Drupal" maintaining backward compatibility with current installs. New installs can leave the value blank to default to the absolute URL. The user can tweak the value if they want to set it to something pretty.

murrayw’s picture

Hi again - hold tight on committing that patch :) I'm in the process of making a few more additions and tweaks to the interface. I'll wrap them up in a bigger patch rather than sending them through in dribs and drabs.

murrayw’s picture

Status: Active » Closed (fixed)

No relevant anymore. Sorry for the noise.