Code

collection3: fix multiple hosts selection issue
authorJerome Oufella <jerome.oufella@savoirfairelinux.com>
Wed, 1 Sep 2010 18:35:58 +0000 (14:35 -0400)
committerFlorian Forster <octo@huhu.verplant.org>
Sat, 4 Sep 2010 20:30:58 +0000 (22:30 +0200)
commitc111c711510ee3903a01df61db0fdf74ad27297f
tree886f3da90ec8aa975083b163db8f949f25c0c971
parente8de3553e10b89417e93af7f0929c08eced84dd4
collection3: fix multiple hosts selection issue

When selecting multiple hosts in collection3's hosts list, and with some
plugins only (the ones that use a specific resource name such as memory
or tcpconns), the resulting graph list will be limited to one single
graph (instead of one per host).

This patch addresses this issue by modifying the name of the hash key
in the group_files_by_plugin_instance function, making it less prone
to name collisions by prefixing it by the host name.

Comments and enhancements will be welcome.

Signed-off-by: Jerome Oufella <jerome.oufella@savoirfairelinux.com>
Signed-off-by: Florian Forster <octo@huhu.verplant.org>
contrib/collection3/lib/Collectd/Graph/Common.pm