It's not clear why when 0 nodes are in sync and the SQL returns OK that 
this is not an error condition, so I made it an error condition in my 
script.

--- check_slony_cluster.sh_1.3 2007-08-21 15:50:45.000000000 -0600
+++ check_slony_cluster.sh     2007-08-21 15:44:12.000000000 -0600
@@ -69,7 +69,9 @@

  # and check the return status
  STATUS=`echo $CHECK | awk '{print $1}'`
-if [ $STATUS = "OK" ]
+NODESOK=`echo $CHECK | awk '{print $3}'`
+
+if [[ $STATUS = "OK" && $NODESOK != "0" ]]
  then
     exit 0
  else


-Mike


_______________________________________________
Slony1-general mailing list
[email protected]
http://gborg.postgresql.org/mailman/listinfo/slony1-general

Reply via email to