From 45044703cc1222c17de59b9916adf4799cd412a1 Mon Sep 17 00:00:00 2001
From: Greg Sabino Mullane
check_postgres.pl - a Postgres monitoring script for Nagios, MRTG, Cacti, and others -This document describes check_postgres.pl version 2.6.1
+check_postgres.pl - a Postgres monitoring script for Nagios, MRTG, Cacti, and others
+This documents describes check_postgres.pl version 2.7.0
All actions accept a common set of database options. At least one is required.
+All actions accept a common set of database options.
Connect to the host indicated by NAME. Can be a comma-separated list of names. Multiple host arguments -are allowed. If no host is given, defaults to a local Unix socket. You may also use "--dbhost".
+are allowed. If no host is given, defaults to thePGHOST environment variable or no host at all
+(which indicates using a local Unix socket). You may also use "--dbhost".
Connects using the specified PORT number. Can be a comma-separated list of port numbers, and multiple -port arguments are allowed. If no port number is given, the default is 5432. You may also use "--dbport"
+port arguments are allowed. If no port number is given, defaults to thePGPORT environment variable. If
+that is not set, it defaults to 5432. You may also use "--dbport"
Specifies which database to connect to. Can be a comma-separated list of names, and multiple dbname -arguments are allowed. If no dbname option is provided, defaults to 'postgres' if psql -is version 8 or greater, and 'template1' otherwise.
+arguments are allowed. If no dbname option is provided, defaults to thePGDATABASE environment variable.
+If that is not set, it defaults to 'postgres' if psql is version 8 or greater, and 'template1' otherwise.
The name of the database user to connect as. Can be a comma-separated list of usernames, and multiple -dbuser arguments are allowed. If this is not provided, the default is 'postgres'.
+dbuser arguments are allowed. If this is not provided, it defaults to thePGUSER environment variable, otherwise
+it defaults to 'postgres'.
The schema named 'information_schema' is excluded from this test, as the only tables it contains are small and do not change.
+Note that the non-'auto' versions will also check on the auto versions as well. In other words, +using last_vacuum will report on the last vacuum, whether it was a normal vacuum, or +one run by the autovacuum daemon.
Example 1: Warn if any table has not been vacuumed in 3 days, and give a critical at a week, for host wormwood
@@ -1230,13 +1235,20 @@ feature requests, and commit notices, send email to HISTORYItems not specifically attributed are by Greg Sabino Mullane.
+ Do not require a connection argument, but use defaults and ENV variables when + possible: PGHOST, PGPORT, PGUSER, PGDATABASE.+
Only require Date::Parse to be loaded if using the checkpoint action.
diff --git a/index.html b/index.html
index 77e419586..094c1dedf 100644
--- a/index.html
+++ b/index.html
@@ -21,14 +21,14 @@ h1 {
check_postgres.pl
-check_postgres.pl is a script for checking the state of one or more Postgres databases and reporting back in a Nagios-friendly manner. It was developed by Greg Sabino Mullane of End Point Corporation and is BSD-licensed. The latest version is 2.6.1, and was released on February 04, 2009.
+check_postgres.pl is a script for checking the state of one or more Postgres databases and reporting back in a Nagios-friendly manner. It was developed by Greg Sabino Mullane of End Point Corporation and is BSD-licensed. The latest version is 2.7.0, and was released on February 04, 2009.
The latest development version can be downloaded via git:
-- 2.39.5