This is a very simple script, since the cluster I made this for only has a floating IP resource. I might build a more complicated one at a later date.
Note: This is for CentOS
MSG="Testing Quorom and Floating IP of Galera Cluster"
# Get PCS Status
pcs status >> $pcslog
quorum="$(cat $pcslog | grep "with quorum")"
vip="$(cat $pcslog | grep IPaddr2 | grep Started)"
if [ -z "$quorum" ] || [ -z "$vip1" ]
# Leave the rest of script alone
# Tell Xymon about it
$XYMON $XYMSRV "status $MACHINE.$COLUMN $COLOR `date`
chown xymon:xymon /usr/share/xymon-client/ext/ha.sh
chmod 777 /usr/share/xymon-client/ext/ha.sh
cat << 'EOL' >/etc/xymon-client/client.d/ha.cfg