Change Wazuh manager healthcheck

This commit is contained in:
Victor Carlos Erenu
2026-05-27 01:41:44 +07:00
parent 96308e55ce
commit 3f16c3b9b9
2 changed files with 8 additions and 6 deletions
+6 -5
View File
@@ -9,10 +9,11 @@ services:
wazuh1.indexer: wazuh1.indexer:
condition: service_healthy condition: service_healthy
healthcheck: healthcheck:
test: [ "CMD-SHELL", "curl -k -s -o /dev/null https://localhost:55000 || exit 1" ] test: [ "CMD-SHELL", "/var/wazuh-manager/bin/wazuh-manager-control status 2>/dev/null | grep -q 'not running' && exit 1 || exit 0" ]
interval: 15s interval: 15s
timeout: 5s timeout: 5s
retries: 5 retries: 5
start_period: 60s
ulimits: ulimits:
memlock: memlock:
soft: -1 soft: -1
@@ -48,11 +49,11 @@ services:
container_name: multi-node-wazuh.worker container_name: multi-node-wazuh.worker
restart: always restart: always
healthcheck: healthcheck:
test: [ "CMD-SHELL", "timeout 2 bash -c '</dev/tcp/localhost/1514' || exit 1" ] test: [ "CMD-SHELL", "/var/wazuh-manager/bin/wazuh-manager-control status 2>/dev/null | grep -v apid | grep -q 'not running' && exit 1 || exit 0" ]
interval: 5s interval: 15s
timeout: 5s timeout: 5s
retries: 10 retries: 5
start_period: 30s start_period: 60s
ulimits: ulimits:
memlock: memlock:
soft: -1 soft: -1
+2 -1
View File
@@ -9,10 +9,11 @@ services:
wazuh.indexer: wazuh.indexer:
condition: service_healthy condition: service_healthy
healthcheck: healthcheck:
test: [ "CMD-SHELL", "curl -k -s -o /dev/null https://localhost:55000 || exit 1" ] test: [ "CMD-SHELL", "/var/wazuh-manager/bin/wazuh-manager-control status 2>/dev/null | grep -q 'not running' && exit 1 || exit 0" ]
interval: 15s interval: 15s
timeout: 5s timeout: 5s
retries: 5 retries: 5
start_period: 60s
ulimits: ulimits:
memlock: memlock:
soft: -1 soft: -1