212f120
From 2b187cc34d9fabdbff932c297b75fc1bc835735b Mon Sep 17 00:00:00 2001
212f120
From: Greg Sabino Mullane <greg@turnstep.com>
212f120
Date: Wed, 5 Feb 2020 14:40:57 -0500
212f120
Subject: [PATCH 1/4] Update doc, and fix missing title close tag
212f120
212f120
---
212f120
 check_postgres.pl.html | 34 ++++++++++++++++++++++------------
212f120
 1 file changed, 22 insertions(+), 12 deletions(-)
212f120
212f120
diff --git a/check_postgres.pl.html b/check_postgres.pl.html
212f120
index ea3d710..a93ece0 100644
212f120
--- a/check_postgres.pl.html
212f120
+++ b/check_postgres.pl.html
212f120
@@ -2,7 +2,7 @@
212f120
 
212f120
 <html xmlns="http://www.w3.org/1999/xhtml">
212f120
 <head>
212f120
-<title>check_postgres.pl>
212f120
+<title>check_postgres.pl</title>
212f120
 <meta http-equiv="content-type" content="text/html; charset=utf-8" />
212f120
 
212f120
 </head>
212f120
@@ -229,11 +229,11 @@
212f120
 
--dbservice=NAME
212f120
 
212f120
 
212f120
-

The name of a service inside of the pg_service.conf file. Before version 9.0 of Postgres, this is a global file, usually found in /etc/pg_service.conf. If you are using version 9.0 or higher of Postgres, you can use the file ".pg_service.conf" in the home directory of the user running the script, e.g. nagios.

212f120
+

The name of a service inside of the pg_service.conf file. Before version 9.0 of Postgres, this is a global file, usually found in /etc/pg_service.conf. If you are using version 9.0 or higher of Postgres, you can use the file ".pg_service.conf" in the home directory of the user running the script, e.g. nagios.

212f120
 
212f120
 

This file contains a simple list of connection options. You can also pass additional information when using this option such as --dbservice="maindatabase sslmode=require"

212f120
 
212f120
-

The documentation for this file can be found at https://www.postgresql.org/docs/current/static/libpq-pgservice.html

212f120
+

The documentation for this file can be found at https://www.postgresql.org/docs/current/static/libpq-pgservice.html

212f120
 
212f120
 
212f120
 
212f120
@@ -792,7 +792,7 @@
212f120
 
212f120
 
  check_postgres_disk_space --port=5432 --warning='90%' --critical='90%'
212f120
 
212f120
-

Example 2: Check that all file systems starting with /dev/sda are smaller than 10 GB and 11 GB (warning and critical)

212f120
+

Example 2: Check that all file systems starting with /dev/sda are smaller than 10 GB and 11 GB (warning and critical)

212f120
 
212f120
 
  check_postgres_disk_space --port=5432 --warning='10 GB' --critical='11 GB' --include="~^/dev/sda"
212f120
 
212f120
@@ -976,11 +976,11 @@
212f120
 
212f120
 

new_version_bc

212f120
 
212f120
-

(symlink: check_postgres_new_version_bc) Checks if a newer version of the Bucardo program is available. The current version is obtained by running bucardo_ctl --version. If a major upgrade is available, a warning is returned. If a revision upgrade is available, a critical is returned. (Bucardo is a master to slave, and master to master replication system for Postgres: see https://bucardo.org/ for more information). See also the information on the --get_method option.

212f120
+

(symlink: check_postgres_new_version_bc) Checks if a newer version of the Bucardo program is available. The current version is obtained by running bucardo_ctl --version. If a major upgrade is available, a warning is returned. If a revision upgrade is available, a critical is returned. (Bucardo is a master to slave, and master to master replication system for Postgres: see https://bucardo.org/ for more information). See also the information on the --get_method option.

212f120
 
212f120
 

new_version_box

212f120
 
212f120
-

(symlink: check_postgres_new_version_box) Checks if a newer version of the boxinfo program is available. The current version is obtained by running boxinfo.pl --version. If a major upgrade is available, a warning is returned. If a revision upgrade is available, a critical is returned. (boxinfo is a program for grabbing important information from a server and putting it into a HTML format: see https://bucardo.org/Boxinfo/ for more information). See also the information on the --get_method option.

212f120
+

(symlink: check_postgres_new_version_box) Checks if a newer version of the boxinfo program is available. The current version is obtained by running boxinfo.pl --version. If a major upgrade is available, a warning is returned. If a revision upgrade is available, a critical is returned. (boxinfo is a program for grabbing important information from a server and putting it into a HTML format: see https://bucardo.org/Boxinfo/ for more information). See also the information on the --get_method option.

212f120
 
212f120
 

new_version_cp

212f120
 
212f120
@@ -992,7 +992,7 @@
212f120
 
212f120
 

new_version_tnm

212f120
 
212f120
-

(symlink: check_postgres_new_version_tnm) Checks if a newer version of the tail_n_mail program is available. The current version is obtained by running tail_n_mail --version. If a major upgrade is available, a warning is returned. If a revision upgrade is available, a critical is returned. (tail_n_mail is a log monitoring tool that can send mail when interesting events appear in your Postgres logs. See: https://bucardo.org/tail_n_mail/ for more information). See also the information on the --get_method option.

212f120
+

(symlink: check_postgres_new_version_tnm) Checks if a newer version of the tail_n_mail program is available. The current version is obtained by running tail_n_mail --version. If a major upgrade is available, a warning is returned. If a revision upgrade is available, a critical is returned. (tail_n_mail is a log monitoring tool that can send mail when interesting events appear in your Postgres logs. See: https://bucardo.org/tail_n_mail/ for more information). See also the information on the --get_method option.

212f120
 
212f120
 

pgb_pool_cl_active

212f120
 
212f120
@@ -1147,7 +1147,7 @@
212f120
 
212f120
 

same_schema

212f120
 
212f120
-

(symlink: check_postgres_same_schema) Verifies that two or more databases are identical as far as their schema (but not the data within). This is particularly handy for making sure your slaves have not been modified or corrupted in any way when using master to slave replication. Unlike most other actions, this has no warning or critical criteria - the databases are either in sync, or are not. If they are different, a detailed list of the differences is presented.

212f120
+

(symlink: check_postgres_same_schema) Verifies that two or more databases are identical as far as their schema (but not the data within). Unlike most other actions, this has no warning or critical criteria - the databases are either in sync, or are not. If they are different, a detailed list of the differences is presented.

212f120
 
212f120
 

You may want to exclude or filter out certain differences. The way to do this is to add strings to the --filter option. To exclude a type of object, use "noname", where 'name' is the type of object, for example, "noschema". To exclude objects of a certain type by a regular expression against their name, use "noname=regex". See the examples below for a better understanding.

212f120
 
212f120
@@ -1508,7 +1508,7 @@
212f120
 
212f120
 

FILES

212f120
 
212f120
-

In addition to command-line configurations, you can put any options inside of a file. The file .check_postgresrc in the current directory will be used if found. If not found, then the file ~/.check_postgresrc will be used. Finally, the file /etc/check_postgresrc will be used if available. The format of the file is option = value, one per line. Any line starting with a '#' will be skipped. Any values loaded from a check_postgresrc file will be overwritten by command-line options. All check_postgresrc files can be ignored by supplying a --no-checkpostgresrc argument.

212f120
+

In addition to command-line configurations, you can put any options inside of a file. The file .check_postgresrc in the current directory will be used if found. If not found, then the file ~/.check_postgresrc will be used. Finally, the file /etc/check_postgresrc will be used if available. The format of the file is option = value, one per line. Any line starting with a '#' will be skipped. Any values loaded from a check_postgresrc file will be overwritten by command-line options. All check_postgresrc files can be ignored by supplying a --no-checkpostgresrc argument.

212f120
 
212f120
 

ENVIRONMENT VARIABLES

212f120
 
212f120
@@ -1565,15 +1565,15 @@
212f120
 
212f120
 

Three mailing lists are available. For discussions about the program, bug reports, feature requests, and commit notices, send email to check_postgres@bucardo.org

212f120
 
212f120
-

https://mail.endcrypt.com/mailman/listinfo/check_postgres

212f120
+

https://mail.endcrypt.com/mailman/listinfo/check_postgres

212f120
 
212f120
 

A low-volume list for announcement of new versions and important notices is the 'check_postgres-announce' list:

212f120
 
212f120
-

https://mail.endcrypt.com/mailman/listinfo/check_postgres-announce

212f120
+

https://mail.endcrypt.com/mailman/listinfo/check_postgres-announce

212f120
 
212f120
 

Source code changes (via git-commit) are sent to the 'check_postgres-commit' list:

212f120
 
212f120
-

https://mail.endcrypt.com/mailman/listinfo/check_postgres-commit

212f120
+

https://mail.endcrypt.com/mailman/listinfo/check_postgres-commit

212f120
 
212f120
 

HISTORY

212f120
 
212f120
@@ -1581,6 +1581,16 @@
212f120
 
212f120
 
212f120
 
212f120
+
Version 2.25.0 Released February 3, 2020
212f120
+
212f120
+
212f120
+
  Allow same_schema objects to be included or excluded with --object and --skipobject
212f120
+    (Greg Sabino Mullane)
212f120
+
212f120
+  Fix to allow mixing service names and other connection parameters for same_schema
212f120
+    (Greg Sabino Mullane)
212f120
+
212f120
+
212f120
 
Version 2.24.0 Released May 30, 2018
212f120
 
212f120
 
212f120
-- 
212f120
2.26.2
212f120