Sleds/utils/nagios-conf/check_broadcastbot.sh

14 lines
444 B
Bash
Raw Normal View History

2025-03-13 21:28:38 +00:00
#!/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