From e549cfdf82ec26f6a6f4b5baaa2f9eef36b86393 Mon Sep 17 00:00:00 2001 From: Jason Ertel Date: Thu, 2 Dec 2021 09:35:13 -0500 Subject: [PATCH] Reign in the Wazuh port check to only complain if a non-Docker process is listening on 55000. --- salt/wazuh/init.sls | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/salt/wazuh/init.sls b/salt/wazuh/init.sls index cf40f739a..9735c077e 100644 --- a/salt/wazuh/init.sls +++ b/salt/wazuh/init.sls @@ -97,7 +97,7 @@ wazuhmgrwhitelist: # Check to see if Wazuh API port is available wazuhportavailable: cmd.run: - - name: netstat -utanp | grep ":55000" | grep -qv docker && PROCESS=$(netstat -utanp | grep ":55000" | uniq) && echo "Another process ($PROCESS) appears to be using port 55000. Please terminate this process, or reboot to ensure a clean state so that the Wazuh API can start properly." && exit 1 || exit 0 + - name: netstat -utanp | grep ":55000" | grep "LISTEN" | grep -qv docker && PROCESS=$(netstat -utanp | grep ":55000" | uniq) && echo "Another process ($PROCESS) appears to be using port 55000. Please terminate this process, or reboot to ensure a clean state so that the Wazuh API can start properly." && exit 1 || exit 0 so-wazuh: docker_container.running: