Cannot Execute Script Plugin

Hi,

I have installed “Execute Script Plugin” from

I have a script on /root/xxx.sh, after installed this plugin, I created notification and set the bash command as
sh /root/xxx.sh
55 PM

but it is not working. Does anyone have an example/ have a suggest ?

Thanks!!!

Are there any error messages in the logs of your Graylog node(s)?
:arrow_right: http://docs.graylog.org/en/2.3/pages/configuration/file_location.html

My SWAG is that the system user running Graylog doesn’t have sufficient permissions to run the script in /root (which only root has, naturally).
Try copying the script to another location (e. g. /usr/local/bin/) and set proper file permissions (e. g. 0755, which translates to everyone is allowed to read and execute the file).

2 Likes

It works!!
Many thanks.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.