aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPrzemyslaw Szczerbik <przemyslawx.szczerbik@intel.com>2017-02-02 11:16:54 +0000
committerPrzemyslaw Szczerbik <przemyslawx.szczerbik@intel.com>2017-02-07 09:42:43 +0000
commit90b8d4d57c9df37c91b306808c35bde42bb1b53c (patch)
treee01c8be8548dd772da927ea27f6bbf13eb33612d
parent26fcc6ce073e875cdd23c0d6310f38ac76b86b7b (diff)
src: Update exec plugin configuration
Change write_notification.sh script path to absolute. Set default user for exec plugin to collectd_exec. Update user guide. Change-Id: I57fba31d42e0a267d0ea05750fcb4eef49f6e79e Signed-off-by: Przemyslaw Szczerbik <przemyslawx.szczerbik@intel.com>
-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>