From 45044703cc1222c17de59b9916adf4799cd412a1 Mon Sep 17 00:00:00 2001 From: Greg Sabino Mullane Date: Wed, 4 Feb 2009 12:36:42 -0500 Subject: [PATCH] Version bump, update docs. --- check_postgres.pl.html | 36 ++++++++++++++++++++++++------------ index.html | 8 ++++---- 2 files changed, 28 insertions(+), 16 deletions(-) diff --git a/check_postgres.pl.html b/check_postgres.pl.html index 702ee2257..e9815beca 100644 --- a/check_postgres.pl.html +++ b/check_postgres.pl.html @@ -2,8 +2,7 @@ -check_postgres.pl - a Postgres monitoring script for Nagios, MRTG, Cacti, and others - + @@ -92,8 +91,8 @@


NAME

-

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


@@ -196,32 +195,35 @@ other actions, using --simple is enough to make Cacti happy.


DATABASE CONNECTION OPTIONS

-

All actions accept a common set of database options. At least one is required.

+

All actions accept a common set of database options.

-H NAME or --host=NAME

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 the PGHOST environment variable or no host at all +(which indicates using a local Unix socket). You may also use "--dbhost".

-p PORT or --port=PORT

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 the PGPORT environment variable. If +that is not set, it defaults to 5432. You may also use "--dbport"

-db NAME or --dbname=NAME

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 the PGDATABASE environment variable. +If that is not set, it defaults to 'postgres' if psql is version 8 or greater, and 'template1' otherwise.

-u USERNAME or --dbuser=USERNAME

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 the PGUSER environment variable, otherwise +it defaults to 'postgres'.

--dbpass=PASSWORD
@@ -758,7 +760,7 @@ and relation as the fourth line.

Checks how long it has been since vacuum (or analyze) was last run on each table in one or more databases. Use of these actions requires that the target database is version 8.3 or greater, or that the version is 8.2 and the -configuration variable stats_row_level is enabled. Tables can be filtered with the +configuration variable stats_row_level has been enabled. Tables can be filtered with the --include and --exclude options. See the BASIC FILTERING section for more details. Tables can also be filtered by their owner by use of the @@ -773,6 +775,9 @@ are giving you problems, make sure that they have dead rows to vacuum, or just exclude them from the test.

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 HISTORY
 

Items not specifically attributed are by Greg Sabino Mullane.

+
Version 2.7.0 (?? 2009)
+ +
+
+  Do not require a connection argument, but use defaults and ENV variables when 
+    possible: PGHOST, PGPORT, PGUSER, PGDATABASE.
+
Version 2.6.1 (February 4, 2009)
   Only require Date::Parse to be loaded if using the checkpoint action.
-
Version 2.6.0 (January 26, 2009)
+
Version 2.6.0 (January 26, 2009)
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