credativ / check-pgbackrest Goto Github PK
View Code? Open in Web Editor NEWLicense: MIT License
License: MIT License
Hello,
I'm trying to setup check_pgbackrest in Icinga2 and I'm testing the output on a backup server.
My stanza is pgsql-db, see below:
[postgres@backup check-pgbackrest]$ pgbackrest info --stanza pgsql-db
stanza: pgsql-db
status: ok
cipher: none
db (current)
wal archive min/max (10-1): 0000002400000043000000B3/000000260000004400000059
full backup: 20190529-123249F
timestamp start/stop: 2019-05-29 12:32:49 / 2019-05-29 12:50:07
wal start/stop: 0000002600000043000000EA / 0000002600000043000000EC
database size: 38.5GB, backup size: 38.5GB
repository size: 6.1GB, repository backup size: 6.1GB
incr backup: 20190529-123249F_20190529-125030I
timestamp start/stop: 2019-05-29 12:50:30 / 2019-05-29 12:54:06
wal start/stop: 0000002600000043000000EE / 0000002600000043000000EE
database size: 38.5GB, backup size: 4.4GB
repository size: 6.1GB, repository backup size: 748.6MB
backup reference list: 20190529-123249F
incr backup: 20190529-123249F_20190529-125917I
timestamp start/stop: 2019-05-29 12:59:17 / 2019-05-29 13:03:26
wal start/stop: 0000002600000043000000F0 / 0000002600000043000000F0
database size: 38.5GB, backup size: 4.4GB
repository size: 6.1GB, repository backup size: 748.0MB
backup reference list: 20190529-123249F, 20190529-123249F_20190529-125030I
With check_pgbackrest I'm having the following issue:
[postgres@backup check-pgbackrest]$ ./check_pgbackrest -s pgsql-db
PGBACKREST OK - full_backups is 0 | diff_backups=0 full_backups=0 incr_backups=0 newest_diff_age=0 newest_full_age=0 newest_incr_age=0 oldest_diff_age=0 oldest_full_age=0 oldest_incr_age=0
[postgres@backup check-pgbackrest]$ ./check_pgbackrest -s pgsql-db1
PGBACKREST OK - full_backups is 0 | diff_backups=0 full_backups=0 incr_backups=0 newest_diff_age=0 newest_full_age=0 newest_incr_age=0 oldest_diff_age=0 oldest_full_age=0 oldest_incr_age=0
[postgres@backup check-pgbackrest]$
The return is OK no matter if stanza is correct or not.
Thank you !
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.