Skip to content

Commit 86d8fdf

Browse files
committed
fix documentation of slave specification, according to check_postgres.pl
1 parent 48ea6e0 commit 86d8fdf

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

check_postgres.pl.html

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1340,10 +1340,9 @@ <h2><a name="replicate_row"><strong>replicate_row</strong></a></h2>
13401340
<p>(<code>symlink: check_postgres_replicate_row</code>) Checks that
13411341
master-slave replication is working to one or more slaves.
13421342

1343-
The slaves are specified the same as the normal databases, except with the
1344-
number 2 at the end of them, so &quot;--port2&quot; instead of
1345-
&quot;--port&quot;, etc. The values or the <em>--warning</em> and
1346-
<em>--critical</em> options are units of time, and at least one must be
1343+
The first "--dbname", "--host", and "--port", etc. options are considered the
1344+
master; subsequent uses are the slaves. The values or the <em>--warning</em>
1345+
and <em>--critical</em> options are units of time, and at least one must be
13471346
provided (no defaults). Valid units are 'seconds', 'minutes', 'hours', or
13481347
'days'. Each may be written singular or abbreviated to just the first letter.
13491348
If no units are given, the units are assumed to be seconds.</p>
@@ -1364,8 +1363,8 @@ <h2><a name="replicate_row"><strong>replicate_row</strong></a></h2>
13641363
warning if the replication does not happen within 10 seconds.</p>
13651364

13661365
<pre>
1367-
check_postgres_replicate_row --host=alpha --dbname=sales --host2=beta
1368-
--dbname2=sales --warning=10 --repinfo=orders,id,3,salesrep,slon,nols</pre>
1366+
check_postgres_replicate_row --host=alpha --dbname=sales --host=beta
1367+
--dbname=sales --warning=10 --repinfo=orders,id,3,salesrep,slon,nols</pre>
13691368

13701369
<p>Example 2: Bucardo is replicating a table named 'receipt' from host 'green'
13711370
to hosts 'red', 'blue', and 'yellow'. The database for both sides is 'public'.
@@ -1376,7 +1375,7 @@ <h2><a name="replicate_row"><strong>replicate_row</strong></a></h2>
13761375
on all three slaves within 5 seconds.</p>
13771376

13781377
<pre>
1379-
check_postgres_replicate_row --host=green --port2=5455 --host2=red,blue,yellow
1378+
check_postgres_replicate_row --host=green --port=5455 --host=red,blue,yellow
13801379
--critical=5 --repinfo=receipt,receipt_id,9,zone,north,south</pre>
13811380

13821381
<p>For MRTG output, returns on the first line the time in seconds the

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy