vitrage/vitrage/datasources/collectd/collectd_vitrage
Hanxi Liu 5d287b916d Change parameter topic
Oslo.messaging has deprecated topic for long time and
used topics instead.

Change-Id: Ie7c96dcdf1418c63d55041dc30eb4befa2e04c83
2017-02-24 10:26:05 +08:00
..
__init__.py small changes 2017-01-11 14:30:23 +00:00
getsigchld.py add collectd datasource 2017-01-11 09:37:01 +00:00
plugin.py add collectd datasource 2017-01-11 09:37:01 +00:00
readme update the collectd readme 2017-01-15 09:43:49 +02:00
vitrageplugin.py Change parameter topic 2017-02-24 10:26:05 +08:00

readme

Configuring collectd to send notifications to Vitrage
=====================================================

1. Edit the collectd.conf file (e.g vim /etc/collectd/collectd.conf)

2. Enable the python plugin with the following:
   * Unmark the python plugin "LoadPlugin python"
   * Edit the Python plugin as followes:
      <Plugin python>
              ModulePath "/opt/stack/vitrage/vitrage/datasources/collectd/"
              LogTraces true
              Interactive false
              Import "collectd_vitrage.vitrageplugin"
              Import "collectd_vitrage.getsigchld"

              <Module "collectd_vitrage.vitrageplugin">
                      transport_url "rabbit://stackrabbit:password@127.0.0.1:5672/"
              </Module>
      </Plugin>

   * The MoudlePath should point to where the vitrage collectd datasource is
    installed e.g. [vitrtage install dir]/datasources/collectd
   *  The transport url should point to the transport url defined in vitrage
   .conf

3. Change the HostName to be the hostname of the machine (the default is localhost)

4. Enable other plugins you want collectd to use

5. restart the collectd to read the configuration file

6. add the collectd to the types list under datasources section in vitrage.conf