How to automate 'clustercheck'

Unanswered Question
Mar 10th, 2008

Is there any way to automate the 'clustercheck' ? Today I was troubleshooting a problem for hours before I realized that my cluster was not properly in sync :?

I really would like to get alerted if the cluster configuration for any reason is not consistent. Have anyone found a way to do that ?

  • 1
  • 2
  • 3
  • 4
  • 5
Overall Rating: 0 (0 ratings)
Loading.
shannon.hagan Mon, 03/10/2008 - 23:20

If you have a box that can ssh in via trusted keys:
echo "clustermode cluster;clustercheck"|ssh -t machinename

Then you could mailx to yourself.
echo "clustermode cluster;clustercheck"|ssh -t machinename|mailx -s "Cluster information" -r postmaster@mydomain usertosendto@mydomain

You could make a bash script that could check for a result that did not include "No inconsistencies found" and only mail if that was the case.

Actions

This Discussion