mirror of
https://github.com/alibaba/canal.git
synced 2026-11-04 00:30:15 +08:00
13 lines
286 B
Bash
Executable File
13 lines
286 B
Bash
Executable File
#!/bin/sh
|
|
CHECK_URL="http://127.0.0.1:8080/metrics"
|
|
CHECK_POINT="success"
|
|
CHECK_COUNT=`curl -s --connect-timeout 7 --max-time 7 $CHECK_URL | grep -c $CHECK_POINT`
|
|
if [ $CHECK_COUNT -eq 0 ]; then
|
|
echo "[FAILED]"
|
|
status=0
|
|
error=1
|
|
else
|
|
echo "[ OK ]"
|
|
status=1
|
|
error=0
|
|
fi |