This is a small script that you can add in Nagios XI /libexec directory that will help you monitor cluster services in any Unix server via Nagios.
srvcnt=`sudo clustat | grep Online | grep rgmanager| grep -v “$progname” | wc -l`
if [ $srvcnt -ge 1 ]; then
echo “Cluster Service is running”
echo “Cluster Service is not running”