Giter Site home page Giter Site logo

check-pgbackrest's People

Contributors

disco-stu avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Forkers

janorn vox1984

check-pgbackrest's Issues

check_pgbackrest is returning success no matter if stanza is incorrect

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

....... < output cut> ....

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 !

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.