pgstef / check_pgbackrest

pgBackRest backup check plugin for Nagios
PostgreSQL License
35 stars 14 forks source link

archives service will not work if the WAL files are not compressed #26

Closed jpguerard closed 2 years ago

jpguerard commented 2 years ago

When running check_pgbackrest with the archives services on an uncompressed WAL (--compress-type=none), the WAL files will not be found.

This could be fixed by replacing:

my $suffix = "\.(gz|lz4|zst|xz|bz2)";

By:

my $suffix = "(\.(gz|lz4|zst|xz|bz2))?";

pgstef commented 2 years ago

Hi,

This was indeed in the documented behavior:

Archives must be compressed. If needed, use "compress-level=0" instead of "compress=n".

The change you suggest being pretty simple and doesn't seem to break any regression test, I've pushed it.

Thanks for your suggestion, Kind regards

pgstef commented 2 years ago

Hi,

Closing this issue since this feature has been released in version 2.2.

Kind Regards