Chris Browne cbbrowne at lists.slony.info
Wed Aug 22 10:50:25 PDT 2007
Update of /home/cvsd/slony1/slony1-engine/tools
In directory main.slony.info:/tmp/cvs-serv29021

Modified Files:
	check_slony_cluster.sh 
Log Message:
Improvement to Nagios check - checks to see that there are nodes in the
listing.

 -- Michael Best <mbest at pendragon.org>


Index: check_slony_cluster.sh
===================================================================
RCS file: /home/cvsd/slony1/slony1-engine/tools/check_slony_cluster.sh,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** check_slony_cluster.sh	22 Mar 2005 17:30:10 -0000	1.3
--- check_slony_cluster.sh	22 Aug 2007 17:50:23 -0000	1.4
***************
*** 70,74 ****
  # and check the return status
  STATUS=`echo $CHECK | awk '{print $1}'`
! if [ $STATUS = "OK" ]
  then
     exit 0
--- 70,75 ----
  # and check the return status
  STATUS=`echo $CHECK | awk '{print $1}'`
! NODESOK=`echo $CHECK | awk '{print $3}'`
! if [[ $STATUS = "OK"  && $NODESOK != "0" ]]
  then
     exit 0



More information about the Slony1-commit mailing list