2018/10/31 10:54:22 ossec-integratord: DEBUG: file /tmp/slack-1540994062--270073136.alert was written.2018/10/31 10:54:22 ossec-integratord: DEBUG: Running: /var/ossec/integrations/slack '/tmp/slack-1540994062--270073136.alert' '' 'https://hooks.slack.com/services/REDACTED' > /dev/null 2>&12018/10/31 10:54:23 ossec-integratord: ERROR: Unable to run integration for slack -> /var/ossec/integrations/slackchown root:ossec /var/ossec/integrations/slack
chmod 750 /var/ossec/integrations/slack
systemctl restart wazuh-managerps aux | grep integratord
root@servername:/var/ossec/integrations# ls -la
total 28
drwxr-x--- 2 root ossec 4096 Oct 31 13:59 .
drwxr-x--- 22 root ossec 4096 Oct 29 11:24 ..
-rwxr-x--- 1 root ossec 1343 Sep 7 12:06 pagerduty
-rwxr-x--- 1 root ossec 3389 Oct 31 13:59 slack
-rwxr-x--- 1 root ossec 6354 Sep 7 12:06 virustotal
root@servername:/var/ossec/integrations# chmod 750 slack
root@servername:/var/ossec/integrations# ls -la
total 28
drwxr-x--- 2 root ossec 4096 Oct 31 13:59 .
drwxr-x--- 22 root ossec 4096 Oct 29 11:24 ..
-rwxr-x--- 1 root ossec 1343 Sep 7 12:06 pagerduty
-rwxr-x--- 1 root ossec 3389 Oct 31 13:59 slack
-rwxr-x--- 1 root ossec 6354 Sep 7 12:06 virustotal
root@servername:/var/ossec/integrations# chown root:ossec /var/ossec/integrations/slack
root@servername:/var/ossec/integrations# systemctl restart wazuh-manager
root@servername:/var/ossec/integrations# ps aux | grep integratord
ossecm 3165 0.0 0.0 28092 2772 ? S 15:06 0:00 /var/ossec/bin/ossec-integratord
root 3527 0.0 0.0 14224 972 pts/0 S+ 15:06 0:00 grep --color=auto integratord
root@servername:/var/ossec/integrations# groups ossecm
ossecm : ossec
grep -P 'https://hooks.slack.*(?=<)' /var/ossec/etc/ossec.conf -o | xargs -I % /var/ossec/integrations/slack '/tmp/slack.alert' '' '%'wget https://raw.githubusercontent.com/wazuh/wazuh/3.6/integrations/slack -O /var/ossec/integrations/slack && chmod 750 /var/ossec/integrations/slack && chown root:ossec /var/ossec/integrations/slackI have resolved these issues.. it seems upon further investigation that the log file for integrations.log had the wrong permissions and was causing the module to fail.I resolved the permissions and all is working as expected.
Thanks everyone.