You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
15 lines
321 B
Bash
15 lines
321 B
Bash
#!/bin/sh
|
|
|
|
curl=`which curl`
|
|
url='http://streampulse:5052/check?url='
|
|
|
|
response=`$curl --max-time 30 --silent "$url"`
|
|
|
|
if echo $response | grep -q "^\[500"; then
|
|
echo "OK: Stream Pulse application UP; response $response"
|
|
exit 0
|
|
else
|
|
echo "FAILED: Stream Pulse application might be DOWN; response $response"
|
|
exit 2
|
|
fi
|