src: Update exec plugin configuration 01/28201/1
authorPrzemyslaw Szczerbik <przemyslawx.szczerbik@intel.com>
Thu, 2 Feb 2017 11:16:54 +0000 (11:16 +0000)
committerPrzemyslaw Szczerbik <przemyslawx.szczerbik@intel.com>
Tue, 7 Feb 2017 09:42:43 +0000 (09:42 +0000)
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>
docs/userguide/collectd.userguide.rst
src/collectd/collectd_sample_configs/exec.conf

index 42fe308..b54b1af 100644 (file)
@@ -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
index 5b11fd9..f62d2e7 100644 (file)
@@ -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>