aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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>