aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMaryam Tahhan <maryam.tahhan@intel.com>2017-02-07 16:04:56 +0000
committerGerrit Code Review <gerrit@opnfv.org>2017-02-07 16:04:56 +0000
commit8b04002d9a9151d165e7edd4b970df3261e89902 (patch)
treed8be55dca4ee4f9c9be9e6597af4fc68032b8391
parent565a3ff352faeb57269732590b70e5335f6c2e8d (diff)
parent90b8d4d57c9df37c91b306808c35bde42bb1b53c (diff)
Merge "src: Update exec plugin configuration"
-rw-r--r--docs/userguide/collectd.userguide.rst5
-rw-r--r--src/collectd/collectd_sample_configs/exec.conf2
2 files changed, 6 insertions, 1 deletions
diff --git a/docs/userguide/collectd.userguide.rst b/docs/userguide/collectd.userguide.rst
index 42fe308d..b54b1afc 100644
--- a/docs/userguide/collectd.userguide.rst
+++ b/docs/userguide/collectd.userguide.rst
@@ -82,6 +82,11 @@ is /opt/collectd.
Sample configuration files can be found in '/opt/collectd/etc/collectd.conf.d'
+**Note**: Exec plugin requires non-root user to execute scripts. By default,
+`collectd_exec` user is used. Barometer scripts do *not* create this user. It
+needs to be manually added or exec plugin configuration has to be changed to use
+other, existing user before starting collectd service.
+
Please note if you are using any Open vSwitch plugins you need to run:
.. code:: bash
diff --git a/src/collectd/collectd_sample_configs/exec.conf b/src/collectd/collectd_sample_configs/exec.conf
index 5b11fd94..f62d2e7a 100644
--- a/src/collectd/collectd_sample_configs/exec.conf
+++ b/src/collectd/collectd_sample_configs/exec.conf
@@ -16,5 +16,5 @@
LoadPlugin exec
<Plugin exec>
# Exec "user:group" "/path/to/exec"
- NotificationExec "" "write_notification.sh"
+ NotificationExec "collectd_exec" "/opt/collectd/etc/collectd.conf.d/write_notification.sh"
</Plugin>