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