4 Commits

Author SHA256 Message Date
9ffe068b97 Accepting request 1077892 from home:mnhauke:monitoring
- Update to version 2.26.0
  * Add new action "pgbouncer_maxwait".
  * For the bloat check, add option to populate all known databases,
    as well as includsion and exclusion regexes.
  * Add Partman premake check.
  * Add --role flag to explicitly set the role of the user after
    connecting.
  * Fix check_replication_slots on recently promoted servers.
  * Allow the check_disk_space action to handle relative
    log_directory paths.
  * Fix MINPAGES and MINIPAGES in the "check_bloat" action.
  * Replace 'which' with 'command -v'.
  * Fix check_replication_slots on recently promoted servers.
  * Fix undefined variable warning.
  * In the tests, force log_destination to stderr.
  * Add to docs how to exclude all items in the 'pg_temp_nnn'
    per-session temporary schemas.
  * Various improvements to the tests.

OBS-URL: https://build.opensuse.org/request/show/1077892
OBS-URL: https://build.opensuse.org/package/show/server:monitoring/check_postgres?expand=0&rev=24
2023-04-11 18:26:33 +00:00
Lars Vogdt
8ad8aaeb94 - added /etc/nrpe.d/check_postgres.cfg, containing some pre-configured
nrpe checks for the different check options

OBS-URL: https://build.opensuse.org/package/show/server:monitoring/check_postgres?expand=0&rev=22
2022-03-08 17:16:45 +00:00
Lars Vogdt
6295e12c04 Accepting request 770059 from home:mnhauke:monitoring
- Update to version 2.25.0
  * Allow same_schema objects to be included or excluded with
    --object and --skipobject
  * Fix to allow mixing service names and other connection
    parameters for same_schema

OBS-URL: https://build.opensuse.org/request/show/770059
OBS-URL: https://build.opensuse.org/package/show/server:monitoring/check_postgres?expand=0&rev=20
2020-02-05 17:21:14 +00:00
Lars Vogdt
c2bfbec246 Accepting request 689480 from home:mnhauke:monitoring
- Update to version 2.24.0
  * Support new_version_pg for PG10
  * Option to skip CYCLE sequences in action sequence
  * Output per-database perfdata for pgbouncer pool checks
  * German message translations
  * Consider only client backends in query_time and friends
- Use github Source URL

OBS-URL: https://build.opensuse.org/request/show/689480
OBS-URL: https://build.opensuse.org/package/show/server:monitoring/check_postgres?expand=0&rev=18
2019-04-03 19:26:06 +00:00
5 changed files with 125 additions and 14 deletions

View File

@@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:93cdbe92bb451525219b131a6810d9da0525000f6795160f70751b105c858615
size 200985

View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:13ccf02708041400492f88c07ff5a5d6facf977e5ad99a9b8c27799855a4337d
size 214543

60
check_postgres.cfg Normal file
View File

@@ -0,0 +1,60 @@
command[check_postgres_archive_ready]=/usr/lib/nagios/plugins/check_postgres_archive_ready -t 30
command[check_postgres_autovac_freeze]=/usr/lib/nagios/plugins/check_postgres_autovac_freeze -t 30
command[check_postgres_backends]=/usr/lib/nagios/plugins/check_postgres_backends -t 30
command[check_postgres_bloat]=/usr/lib/nagios/plugins/check_postgres_bloat -t 30
command[check_postgres_checkpoint]=/usr/lib/nagios/plugins/check_postgres_checkpoint -t 30
command[check_postgres_cluster_id]=/usr/lib/nagios/plugins/check_postgres_cluster_id -t 30
command[check_postgres_commitratio]=/usr/lib/nagios/plugins/check_postgres_commitratio -t 30
command[check_postgres_connection]=/usr/lib/nagios/plugins/check_postgres_connection -t 30
command[check_postgres_custom_query]=/usr/lib/nagios/plugins/check_postgres_custom_query -t 30
command[check_postgres_database_size]=/usr/lib/nagios/plugins/check_postgres_database_size -t 30
command[check_postgres_dbstats]=/usr/lib/nagios/plugins/check_postgres_dbstats -t 30
command[check_postgres_disabled_triggers]=/usr/lib/nagios/plugins/check_postgres_disabled_triggers -t 30
command[check_postgres_disk_space]=/usr/lib/nagios/plugins/check_postgres_disk_space -t 30
command[check_postgres_fsm_pages]=/usr/lib/nagios/plugins/check_postgres_fsm_pages -t 30
command[check_postgres_fsm_relations]=/usr/lib/nagios/plugins/check_postgres_fsm_relations -t 30
command[check_postgres_hitratio]=/usr/lib/nagios/plugins/check_postgres_hitratio -t 30
command[check_postgres_hot_standby_delay]=/usr/lib/nagios/plugins/check_postgres_hot_standby_delay -t 30
command[check_postgres_index_size]=/usr/lib/nagios/plugins/check_postgres_index_size -t 30
command[check_postgres_indexes_size]=/usr/lib/nagios/plugins/check_postgres_indexes_size -t 30
command[check_postgres_last_analyze]=/usr/lib/nagios/plugins/check_postgres_last_analyze -t 30
command[check_postgres_last_autoanalyze]=/usr/lib/nagios/plugins/check_postgres_last_autoanalyze -t 30
command[check_postgres_last_autovacuum]=/usr/lib/nagios/plugins/check_postgres_last_autovacuum -t 30
command[check_postgres_last_vacuum]=/usr/lib/nagios/plugins/check_postgres_last_vacuum -t 30
command[check_postgres_listener]=/usr/lib/nagios/plugins/check_postgres_listener -t 30
command[check_postgres_locks]=/usr/lib/nagios/plugins/check_postgres_locks -t 30
command[check_postgres_logfile]=/usr/lib/nagios/plugins/check_postgres_logfile -t 30
command[check_postgres_new_version_bc]=/usr/lib/nagios/plugins/check_postgres_new_version_bc -t 30
command[check_postgres_new_version_box]=/usr/lib/nagios/plugins/check_postgres_new_version_box -t 30
command[check_postgres_new_version_cp]=/usr/lib/nagios/plugins/check_postgres_new_version_cp -t 30
command[check_postgres_new_version_pg]=/usr/lib/nagios/plugins/check_postgres_new_version_pg -t 30
command[check_postgres_new_version_tnm]=/usr/lib/nagios/plugins/check_postgres_new_version_tnm -t 30
command[check_postgres_pgagent_jobs]=/usr/lib/nagios/plugins/check_postgres_pgagent_jobs -t 30
command[check_postgres_pgb_pool_cl_active]=/usr/lib/nagios/plugins/check_postgres_pgb_pool_cl_active -t 30
command[check_postgres_pgb_pool_cl_waiting]=/usr/lib/nagios/plugins/check_postgres_pgb_pool_cl_waiting -t 30
command[check_postgres_pgb_pool_maxwait]=/usr/lib/nagios/plugins/check_postgres_pgb_pool_maxwait -t 30
command[check_postgres_pgb_pool_sv_active]=/usr/lib/nagios/plugins/check_postgres_pgb_pool_sv_active -t 30
command[check_postgres_pgb_pool_sv_idle]=/usr/lib/nagios/plugins/check_postgres_pgb_pool_sv_idle -t 30
command[check_postgres_pgb_pool_sv_login]=/usr/lib/nagios/plugins/check_postgres_pgb_pool_sv_login -t 30
command[check_postgres_pgb_pool_sv_tested]=/usr/lib/nagios/plugins/check_postgres_pgb_pool_sv_tested -t 30
command[check_postgres_pgb_pool_sv_used]=/usr/lib/nagios/plugins/check_postgres_pgb_pool_sv_used -t 30
command[check_postgres_pgbouncer_backends]=/usr/lib/nagios/plugins/check_postgres_pgbouncer_backends -t 30
command[check_postgres_pgbouncer_checksum]=/usr/lib/nagios/plugins/check_postgres_pgbouncer_checksum -t 30
command[check_postgres_prepared_txns]=/usr/lib/nagios/plugins/check_postgres_prepared_txns -t 30
command[check_postgres_query_runtime]=/usr/lib/nagios/plugins/check_postgres_query_runtime -t 30
command[check_postgres_query_time]=/usr/lib/nagios/plugins/check_postgres_query_time -t 30
command[check_postgres_relation_size]=/usr/lib/nagios/plugins/check_postgres_relation_size -t 30
command[check_postgres_replicate_row]=/usr/lib/nagios/plugins/check_postgres_replicate_row -t 30
command[check_postgres_replication_slots]=/usr/lib/nagios/plugins/check_postgres_replication_slots -t 30
command[check_postgres_same_schema]=/usr/lib/nagios/plugins/check_postgres_same_schema -t 30
command[check_postgres_sequence]=/usr/lib/nagios/plugins/check_postgres_sequence -t 30
command[check_postgres_settings_checksum]=/usr/lib/nagios/plugins/check_postgres_settings_checksum -t 30
command[check_postgres_slony_status]=/usr/lib/nagios/plugins/check_postgres_slony_status -t 30
command[check_postgres_table_size]=/usr/lib/nagios/plugins/check_postgres_table_size -t 30
command[check_postgres_timesync]=/usr/lib/nagios/plugins/check_postgres_timesync -t 30
command[check_postgres_total_relation_size]=/usr/lib/nagios/plugins/check_postgres_total_relation_size -t 30
command[check_postgres_txn_idle]=/usr/lib/nagios/plugins/check_postgres_txn_idle -t 30
command[check_postgres_txn_time]=/usr/lib/nagios/plugins/check_postgres_txn_time -t 30
command[check_postgres_txn_wraparound]=/usr/lib/nagios/plugins/check_postgres_txn_wraparound -t 30
command[check_postgres_version]=/usr/lib/nagios/plugins/check_postgres_version -t 30
command[check_postgres_wal_files]=/usr/lib/nagios/plugins/check_postgres_wal_files -t 30

View File

@@ -1,3 +1,51 @@
-------------------------------------------------------------------
Fri Apr 7 14:24:27 UTC 2023 - Martin Hauke <mardnh@gmx.de>
- Update to version 2.26.0
* Add new action "pgbouncer_maxwait".
* For the bloat check, add option to populate all known databases,
as well as includsion and exclusion regexes.
* Add Partman premake check.
* Add --role flag to explicitly set the role of the user after
connecting.
* Fix check_replication_slots on recently promoted servers.
* Allow the check_disk_space action to handle relative
log_directory paths.
* Fix MINPAGES and MINIPAGES in the "check_bloat" action.
* Replace 'which' with 'command -v'.
* Fix check_replication_slots on recently promoted servers.
* Fix undefined variable warning.
* In the tests, force log_destination to stderr.
* Add to docs how to exclude all items in the 'pg_temp_nnn'
per-session temporary schemas.
* Various improvements to the tests.
-------------------------------------------------------------------
Tue Mar 8 17:14:04 UTC 2022 - Lars Vogdt <lars@linux-schulserver.de>
- added /etc/nrpe.d/check_postgres.cfg, containing some pre-configured
nrpe checks for the different check options
-------------------------------------------------------------------
Tue Feb 4 17:34:30 UTC 2020 - Martin Hauke <mardnh@gmx.de>
- Update to version 2.25.0
* Allow same_schema objects to be included or excluded with
--object and --skipobject
* Fix to allow mixing service names and other connection
parameters for same_schema
-------------------------------------------------------------------
Thu Mar 28 20:54:59 UTC 2019 - Martin Hauke <mardnh@gmx.de>
- Update to version 2.24.0
* Support new_version_pg for PG10
* Option to skip CYCLE sequences in action sequence
* Output per-database perfdata for pgbouncer pool checks
* German message translations
* Consider only client backends in query_time and friends
- Use github Source URL
-------------------------------------------------------------------
Wed Mar 21 10:43:56 UTC 2018 - lars@linux-schulserver.de

View File

@@ -1,7 +1,7 @@
#
# spec file for package check_postgres
#
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
# Copyright (c) 2023 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -12,21 +12,21 @@
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
Name: check_postgres
Version: 2.23.0
Version: 2.26.0
Release: 0
Summary: Postgres monitoring script
License: GPL-2.0+
License: GPL-2.0-or-later
Group: System/Monitoring
Url: http://bucardo.org/wiki/Check_postgres
# https://github.com/bucardo/check_postgres/releases
Source0: %{name}-%{version}.tar.gz
URL: http://bucardo.org/wiki/Check_postgres
Source: https://github.com/bucardo/%{name}/archive/%{version}.tar.gz#/%{name}-%{version}.tar.gz
Source1: nagios-commands-postgres.cfg
Source2: create_manpage.pl
Source3: check_postgres.cfg
BuildRequires: nagios-rpm-macros
BuildRequires: perl-macros
BuildRequires: perl(Cwd)
@@ -61,8 +61,8 @@ and outputs the results in one of three formats: Nagios, MRTG, or simple.
%package -n monitoring-plugins-postgres
Summary: Postgres monitoring script using check_postgres.pl
Group: System/Monitoring
# FIXME: use proper Requires(pre/post/preun/...)
Group: System/Monitoring
PreReq: %{name} = %{version}
Provides: nagios-plugins-postgres = %{version}-%{release}
Obsoletes: nagios-plugins-postgres < %{version}-%{release}
@@ -74,6 +74,7 @@ monitoring plugins way.
%prep
%setup -q
install -m 0644 %{SOURCE1} nagios-commands-postgres.cfg
sed -i 's|#!/usr/bin/env perl|#!/usr/bin/perl|g' check_postgres.pl
%build
perl Makefile.PL
@@ -101,22 +102,24 @@ popd
# create man page
mkdir -p %{buildroot}/%{_mandir}/man1
perl %{SOURCE2} "%{version}" "1" check_postgres.pl > %{buildroot}/%{_mandir}/man1/check_postgres.pl.1
# install nrpe snipplets
install -D -m0644 %{SOURCE3} %{buildroot}%{nrpe_sysconfdir}/check_postgres.cfg
%files -f %{name}.files
%defattr(-,root,root)
%doc MANIFEST README* TODO nagios-commands-postgres.cfg check_postgres.pl.html
%if 0%{?suse_version} > 1315
%license LICENSE
%else
%doc LICENSE
%endif
%{_mandir}/man1/check_postgres.pl.1*
%{_mandir}/man1/check_postgres.pl.1%{?ext_man}
%files -n monitoring-plugins-postgres
%defattr(-,root,root)
# avoid build dependecy of nagios - own the dirs
%dir %{nagios_libdir}
%dir %{nagios_plugindir}
%dir %{nrpe_sysconfdir}
%config(noreplace) %{nrpe_sysconfdir}/check_postgres.cfg
%{nagios_plugindir}/*
%changelog