pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Edson Richter <edsonrichter@hotmail.com>
To: pgsql-general@postgresql.org
Subject: Async replication: how to get an alert on failure
Date: Wed, 1 Aug 2012 21:04:01 -0300
Message-ID: <BLU0-SMTP36295E42C95BA31416DD9C9CFCB0@phx.gbl> (raw)
In-Reply-To: <5019ADE5.4050800@simkorp.com.br>
References: <5019ADE5.4050800@simkorp.com.br>

I have few PostgreSQL servers established with replication.
Now, is there any way to receive an e-mail in case of error during 
synchronization?
I mean, is there an script (cron?) I can run (maybe every 5 minutes) 
that will check if replication is stolen, and send an e-mail in case of 
failure?

Thanks,

Edson Richter




view thread (6+ messages)  latest in thread

Message-ID: <BLU0-SMTP36295E42C95BA31416DD9C9CFCB0@phx.gbl>
Permalink:  ../BLU0-SMTP36295E42C95BA31416DD9C9CFCB0@phx.gbl/
Also on:    postgresql.org/message-id/BLU0-SMTP36295E42C95BA31416DD9C9CFCB0@phx.gbl

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-general@postgresql.org
  Cc: edsonrichter@hotmail.com
  Subject: Re: Async replication: how to get an alert on failure
  In-Reply-To: <BLU0-SMTP36295E42C95BA31416DD9C9CFCB0@phx.gbl>
  References: <5019ADE5.4050800@simkorp.com.br> <BLU0-SMTP36295E42C95BA31416DD9C9CFCB0@phx.gbl>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox