14 lines
444 B
Bash
14 lines
444 B
Bash
|
|
#!/bin/bash
|
||
|
|
# Scriptname = check_broadcastbot.sh
|
||
|
|
export IONUHOME="/ionu"
|
||
|
|
|
||
|
|
bottest=`/sequencelogic/bin/robot.sh com.ionu.nikki.TestBot --user=testbot --password=madman12 --health-check=urn:sl:000000:00000006:: --no-console | grep "\[OK\] Health of urn:sl:000000:00000006:: is good" | sed 's/\[//' | sed 's/]//' | awk '{print$1}'`
|
||
|
|
|
||
|
|
if [ "$bottest" = "OK" ]; then
|
||
|
|
echo "broadcastbot is happy"
|
||
|
|
exit 0
|
||
|
|
else
|
||
|
|
echo "Broadcastbot is unhappy"
|
||
|
|
exit 1
|
||
|
|
fi
|