From 3f16c3b9b974f008027f21b0a526a731e34b0a7f Mon Sep 17 00:00:00 2001 From: Victor Carlos Erenu Date: Wed, 27 May 2026 01:41:44 +0700 Subject: [PATCH] Change Wazuh manager healthcheck --- multi-node/docker-compose.yml | 11 ++++++----- single-node/docker-compose.yml | 3 ++- 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/multi-node/docker-compose.yml b/multi-node/docker-compose.yml index ddbca606..4fa8d8bf 100644 --- a/multi-node/docker-compose.yml +++ b/multi-node/docker-compose.yml @@ -9,10 +9,11 @@ services: wazuh1.indexer: condition: service_healthy 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 timeout: 5s retries: 5 + start_period: 60s ulimits: memlock: soft: -1 @@ -48,11 +49,11 @@ services: container_name: multi-node-wazuh.worker restart: always healthcheck: - test: [ "CMD-SHELL", "timeout 2 bash -c '/dev/null | grep -v apid | grep -q 'not running' && exit 1 || exit 0" ] + interval: 15s timeout: 5s - retries: 10 - start_period: 30s + retries: 5 + start_period: 60s ulimits: memlock: soft: -1 diff --git a/single-node/docker-compose.yml b/single-node/docker-compose.yml index b650d905..042162cb 100644 --- a/single-node/docker-compose.yml +++ b/single-node/docker-compose.yml @@ -9,10 +9,11 @@ services: wazuh.indexer: condition: service_healthy 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 timeout: 5s retries: 5 + start_period: 60s ulimits: memlock: soft: -1