[check_postgres] negative result from hot_standby_delay action

Selena Deckelmann selena at chesnok.com
Wed Dec 19 00:45:58 UTC 2012


On Sun, Dec 16, 2012 at 2:23 PM, Guillaume Lelarge
<guillaume at lelarge.info>wrote:

> On Thu, 2012-11-15 at 19:48 +0100, Filip Rembiałkowski wrote:
> > Hello.
> >
> > hot_standby_delay sometimes returns negative value.
> >
> > I know the reason behind this - quite naturally the delay between
> querying
> > master ad slave can cause this.
> >
> > I think it makes sense to fix it in check_postgres.pl by something like
> > $result = 0 if $result < 0;
> > All in all, it is logically impossible that slave has processed more WAL
> > segments than master :-)
> >
>
> I guess you're right. If nobody objects, I'll commit a patch doing this
> this week.


Just ran into this today, so I'd appreciate the patch :)

-selena


-- 
http://chesnok.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.endcrypt.com/pipermail/check_postgres/attachments/20121218/410cd76b/attachment.html>


More information about the Check_postgres mailing list