@@ -1340,10 +1340,9 @@ <h2><a name="replicate_row"><strong>replicate_row</strong></a></h2>
1340
1340
< p > (< code > symlink: check_postgres_replicate_row</ code > ) Checks that
1341
1341
master-slave replication is working to one or more slaves.
1342
1342
1343
- The slaves are specified the same as the normal databases, except with the
1344
- number 2 at the end of them, so "--port2" instead of
1345
- "--port", 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
1347
1346
provided (no defaults). Valid units are 'seconds', 'minutes', 'hours', or
1348
1347
'days'. Each may be written singular or abbreviated to just the first letter.
1349
1348
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>
1364
1363
warning if the replication does not happen within 10 seconds.</ p >
1365
1364
1366
1365
< 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 >
1369
1368
1370
1369
< p > Example 2: Bucardo is replicating a table named 'receipt' from host 'green'
1371
1370
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>
1376
1375
on all three slaves within 5 seconds.</ p >
1377
1376
1378
1377
< 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
1380
1379
--critical=5 --repinfo=receipt,receipt_id,9,zone,north,south</ pre >
1381
1380
1382
1381
< p > For MRTG output, returns on the first line the time in seconds the
0 commit comments