We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents c9c3609 + 558d5aa commit 53626c5Copy full SHA for 53626c5
1 file changed
github-actions-tests/zbx_install.sh
@@ -40,7 +40,9 @@ docker-compose -f ./docker-compose.yml up -d
40
41
echo "---> Waiting for Zabbix ..."
42
WAITED=0
43
-until curl -sf http://localhost:80/ > /dev/null 2>&1; do
+until curl -sf -X POST -H 'Content-Type: application/json' \
44
+ -d '{"jsonrpc":"2.0","method":"apiinfo.version","params":[],"id":1}' \
45
+ http://localhost:80/api_jsonrpc.php 2>/dev/null | grep -q '"result"'; do
46
sleep 5
47
WAITED=$((WAITED + 5))
48
if [ $WAITED -ge 300 ]; then
0 commit comments