Skip to content

Commit

Permalink
Release 2.7 (#357)
Browse files Browse the repository at this point in the history
Release 2.7
  • Loading branch information
ioguix authored Sep 25, 2023
1 parent c1da501 commit d63377f
Show file tree
Hide file tree
Showing 7 changed files with 45 additions and 14 deletions.
18 changes: 18 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,24 @@
Changelog
=========

2023-09-25 v2.7:

* add: compatibility with PostgreSQL 15 and 16, Jehan-Guillaume de Rorthais, Thomas Reiss
* change: `stat_snapshot_age` is compatible from PostgreSQL v9.5 to v14, Benoit Lobréau
* change: simplify session accounting in `backends_status`, Thomas Reiss
* fix: compatibility of `backup_label_age` with PostgreSQL 15 and after, Thomas Reiss
* fix: in `pg_dump_backup`, error explicitly if `--path` is a directory, Christophe Courtois
* fix: `temp_files` on PG10 was counting all DB files, Christophe Courtois, Benoit Lobréau
* fix: make `check_archiver` output `oldest_ready_wal=0` when archive queue is empty, Thomas Reiss
* fix: make `check_archiver` work properly with PostgreSQL 10 without being superuser, Thomas Reiss
* fix: in `backends_status`, avoid "idle in transaction" false positive for PostgreSQL 9.2 and after, Thomas Reiss
* fix: issue with check_pgactivity missing lock file, Joern Ott, Julien Rouhaud, Jehan-Guillaume de Rorthais
* fix: in `btree_bloat`, adjust index tuple header size, Shangzi Xie, Jehan-Guillaume de Rorthais

Thanks to all contributors of this release for feedbacks, bug reports, patches
and patch reviews, etc.


2022-07-08 v2.6:

* add: new `session_stats` service to gather miscellaneous session statistics, Frédéric Yhuel
Expand Down
12 changes: 7 additions & 5 deletions README
Original file line number Diff line number Diff line change
Expand Up @@ -299,8 +299,9 @@ COMPATIBILITY
archiver process did not archive the oldest waiting WAL to be
archived since last call.

Required privileges: superuser (<v11), grant execute on function
pg_stat_file(text) for v11+.
Required privileges: superuser (<v10), <v10: superuser, v10:
nonsuper user but output will lack perfdata oldest_ready_wal or
superuser, v11+: grant execute on function pg_stat_file(text).

autovacuum (8.1+)
Check the autovacuum activity on the cluster.
Expand Down Expand Up @@ -385,7 +386,8 @@ COMPATIBILITY
Critical and Warning thresholds only accept an interval (eg.
1h30m25s).

Required privileges: unprivileged role (9.3+); superuser (<9.3)
Required privileges: grant execute on function pg_stat_file(text,
boolean) (pg12+); unprivileged role (9.3+); superuser (<9.3)

bgwriter (8.3+)
Check the percentage of pages written by backends since last check.
Expand Down Expand Up @@ -1064,7 +1066,7 @@ COMPATIBILITY

Required privileges: unprivileged role able to log in all databases

stat_snapshot_age (9.5+)
stat_snapshot_age (9.5 to 14 included)
Check the age of the statistics snapshot (statistics collector's
statistics). This probe helps to detect a frozen stats collector
process.
Expand Down Expand Up @@ -1295,7 +1297,7 @@ COMPATIBILITY
check_pgactivity -p 5433 -h slave --service hit_ratio --dbinclude importantone -w 90% -c 80%

VERSION
check_pgactivity version 2.6, released on Fri Jul 08 2022.
check_pgactivity version 2.7, released on Mon Sep 25 2023.

LICENSING
This program is open source, licensed under the PostgreSQL license. For
Expand Down
13 changes: 9 additions & 4 deletions README.pod
Original file line number Diff line number Diff line change
Expand Up @@ -337,7 +337,10 @@ waiting to be archived. They only accept a raw number of files.
Whatever the given threshold, a critical alert is raised if the archiver
process did not archive the oldest waiting WAL to be archived since last call.

Required privileges: superuser (<v11), grant execute on function pg_stat_file(text) for v11+.
Required privileges: superuser (<v10),
<v10: superuser,
v10: nonsuper user but output will lack perfdata oldest_ready_wal or superuser,
v11+: grant execute on function pg_stat_file(text).

=item B<autovacuum> (8.1+)

Expand Down Expand Up @@ -421,7 +424,9 @@ Perfdata returns the age of the backup_label file, -1 if not present.

Critical and Warning thresholds only accept an interval (eg. 1h30m25s).

Required privileges: unprivileged role (9.3+); superuser (<9.3)
Required privileges:
grant execute on function pg_stat_file(text, boolean) (pg12+);
unprivileged role (9.3+); superuser (<9.3)

=item B<bgwriter> (8.3+)

Expand Down Expand Up @@ -1096,7 +1101,7 @@ Critical and Warning thresholds accept a percentage of the sequence filled.

Required privileges: unprivileged role able to log in all databases

=item B<stat_snapshot_age> (9.5+)
=item B<stat_snapshot_age> (9.5 to 14 included)

Check the age of the statistics snapshot (statistics collector's statistics).
This probe helps to detect a frozen stats collector process.
Expand Down Expand Up @@ -1334,7 +1339,7 @@ pg_ls_waldir

=head1 VERSION

check_pgactivity version 2.6, released on Fri Jul 08 2022.
check_pgactivity version 2.7, released on Mon Sep 25 2023.

=head1 LICENSING

Expand Down
4 changes: 2 additions & 2 deletions check_pgactivity
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ delete $ENV{'LANGUAGE'};

$| = 1;

$VERSION = '2.6';
$VERSION = '2.7';
$PROGRAM = 'check_pgactivity';

my $PG_VERSION_MIN = 70400;
Expand Down Expand Up @@ -9405,7 +9405,7 @@ __END__
=head1 VERSION
check_pgactivity version 2.6, released on Fri Jul 08 2022.
check_pgactivity version 2.7, released on Mon Sep 25 2023.
=head1 LICENSING
Expand Down
7 changes: 5 additions & 2 deletions check_pgactivity.spec
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
%global _tag REL2_6
%global _tag REL2_7

Name: nagios-plugins-pgactivity
Version: 2.6
Version: 2.7
Release: 1
Summary: PostgreSQL monitoring plugin for Nagios
License: PostgreSQL
Expand Down Expand Up @@ -32,6 +32,9 @@ install -D -p -m 0755 check_pgactivity %{buildroot}/%{_libdir}/nagios/plugins/ch
%doc README LICENSE

%changelog
* Mon Sep 25 2023 Jehan-Guillaume de Rorthais <[email protected]> 2.7-1
- new major release 2.7

* Fri Jul 08 2022 Jehan-Guillaume de Rorthais <[email protected]> 2.6-1
- new major release 2.6

Expand Down
3 changes: 3 additions & 0 deletions contributors
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
The following contributors helped to bring check_pgactivity :

* Jehan-Guillaume de Rorthais
* Julien Rouhaud
* Thomas Reiss
Expand All @@ -18,6 +19,8 @@ The following contributors helped to bring check_pgactivity :
* macarbiter
* Frédéric Yhuel
* Julian Vanden Broeck
* Benoit Lobréau
* Shangzi Xie

And many users that reported issues. Thanks to all !

2 changes: 1 addition & 1 deletion t/01-pga_version.t
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ use Test::More tests => 18;

### Beginning of tests ###

my $good_version = '2.6';
my $good_version = '2.7';
my $bad_version = '0.0';
my $not_version = 'whatever';

Expand Down

0 comments on commit d63377f

Please sign in to comment.