From: Greg Sabino Mullane Date: Thu, 3 Jul 2014 11:22:39 +0000 (-0400) Subject: Merge branch 'master' of https://github.com/terrorobe/check_postgres X-Git-Tag: 2.22.0~29 X-Git-Url: http://git.postgresql.org/gitweb/?a=commitdiff_plain;h=fada3d6281110bdbe17aa8811d300102fcd5fe0f;p=check_postgres.git Merge branch 'master' of https://github.com/terrorobe/check_postgres Conflicts: check_postgres.pl --- fada3d6281110bdbe17aa8811d300102fcd5fe0f diff --cc check_postgres.pl index 9759f1c77,0314c5599..f3de959b8 --- a/check_postgres.pl +++ b/check_postgres.pl @@@ -8848,35 -8812,15 +8848,36 @@@ and the name of the database on the fou =head2 B (C) Checks the streaming replication lag by computing the delta - between the xlog position of a master server and the one of the slaves connected to it, and/or the - last transaction timestamp received by the slave. The slave server must be in hot_standby (e.g. read - only) mode, therefore the minimum version to use this action is Postgres 9.0. To support transaction - timestamps the minimum version is Postgres 9.1. - - The I<--warning> and I<--critical> options are either the delta between xlog positions in bytes, - units of time to compare timestamps, or both. + between the current xlog position of a master server and the replay location of a slave connected + to it. The slave server must be in hot_standby (e.g. read only) mode, therefore the minimum version to use + this action is Postgres 9.0. The I<--warning> and I<--critical> options are the delta between the xlog + locations. Since these values are byte offsets in the WAL they should match the expected transaction volume + of your application to prevent false postives or negatives. + + The first "--dbname", "--host", and "--port", etc. options are considered the + master; the second belongs to the slave. +Byte values should be based on the volume of transactions needed to have the streaming replication +disconnect from the master because of too much lag, determined by the Postgres configuration variable +B. For units of time, valid units are 'seconds', 'minutes', 'hours', or 'days'. +Each may be written singular or abbreviated to just the first letter. When specifying both, in the +form 'I and I