#!/bin/bash

CFGTOOL="/usr/sbin/corosync-cfgtool"

output=`$CFGTOOL -s`
if [ $? -ne 0 ]; then
  echo "One or more network rings have a problem!"
  exit 2
fi

echo "Corosync network rings ok"
exit 0

