This is on nagiosexchange.org yes?  It should be.

On Tue, 21 Aug 2007, Michael Best wrote:

> 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
>

l8*
        -lava (Brian A. Seklecki - Pittsburgh, PA, USA)
               http://www.spiritual-machines.org/

     "Guilty? Yeah. But he knows it. I mean, you're guilty.
     You just don't know it. So who's really in jail?"
     ~Maynard James Keenan

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

Reply via email to