fix(cluster): update Asterisk CLI health check command to core show uptime

This commit is contained in:
sorcier committed 2026-11-05 19:37:43 +01:00
1 parent b76490a4dc
commit 940ff800ad
3 files changed
+8 -8

No files matched your search

+1 -1
View File
@@ -65,7 +65,7 @@ case "$CMD" in
;;
check)
if pidof asterisk >/dev/null 2>&1 && /usr/sbin/asterisk -rx "core ping" 2>/dev/null | grep -q "Pong"; then
if pidof asterisk >/dev/null 2>&1 && /usr/sbin/asterisk -rx "core show uptime" 2>/dev/null | grep -qi "uptime"; then
echo "HEALTHY"
else
echo "DEGRADED"