03-10-2008 01:32 PM
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 ?
03-10-2008 11:20 PM
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.
03-12-2008 01:11 PM
Excellent.
It works nicely, thank you !
03-17-2008 07:32 PM
:D
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide