Skip to content

Commit 81b13a3

Browse files
committed
docs: fixed description of pg_probackup plugin
1 parent 4f5a006 commit 81b13a3

File tree

2 files changed

+5
-6
lines changed

2 files changed

+5
-6
lines changed

mamonsu/plugins/system/linux/pg_probackup.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,8 @@ def run(self, zbx):
6161
else:
6262
zbx.send(self.key_dir_size.format('[' + _dir + ']'), dir_size)
6363

64+
# Search for backups with bad status is done by running
65+
# "pg_probackup show -B backup_dir" command
6466
command = [config_pg_probackup_path, 'show', '-B', _dir, '--format=json']
6567
process = subprocess.Popen(command, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
6668
stdout, stderr = process.communicate()

packaging/conf/example.conf

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -187,12 +187,9 @@ interval = 500
187187
max_prepared_transaction_time = 60
188188
interval = 60
189189

190-
# Get size of backup catalogs, which using pg_probackup to store all WAL and backup files
191-
# and get error if some backup has bad status (ERROR,CORRUPT,ORPHAN).
192-
# how it works: mamonsu run command: pg_probackup show -B backup_dir1.
193-
# when status is ERROR,CORRUPT,ORPHAN,
194-
# как это работает: mamonsu запускает команду pg_probackup show -B backup_dir1,
195-
# если в выводе, в колонке status присутствует ERROR,CORRUPT,ORPHAN, срабатывает триггер.
190+
# Get size of backup catalogs stroring all WAL and backup files using pg_probackup
191+
# S(https://github.com/postgrespro/pg_probackup)
192+
# Trigger fires if some backup has bad status e.g. (ERROR,CORRUPT,ORPHAN).
196193
[pgprobackup]
197194
enabled = false
198195
interval = 300

0 commit comments

Comments
 (0)