From 558d5aa303a9bc04705e9185c84bbd09b52a4edf Mon Sep 17 00:00:00 2001 From: Alexandr Date: Mon, 29 Jun 2026 15:25:01 +0300 Subject: [PATCH] fix(ci): wait zabbix fix --- github-actions-tests/zbx_install.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/github-actions-tests/zbx_install.sh b/github-actions-tests/zbx_install.sh index 40a3902..2a6e651 100644 --- a/github-actions-tests/zbx_install.sh +++ b/github-actions-tests/zbx_install.sh @@ -40,7 +40,9 @@ docker-compose -f ./docker-compose.yml up -d echo "---> Waiting for Zabbix ..." WAITED=0 -until curl -sf http://localhost:80/ > /dev/null 2>&1; do +until curl -sf -X POST -H 'Content-Type: application/json' \ + -d '{"jsonrpc":"2.0","method":"apiinfo.version","params":[],"id":1}' \ + http://localhost:80/api_jsonrpc.php 2>/dev/null | grep -q '"result"'; do sleep 5 WAITED=$((WAITED + 5)) if [ $WAITED -ge 300 ]; then