From: Greg Sabino Mullane check_postgres.pl - a Postgres monitoring script for Nagios, MRTG, and others
-This documents describes check_postgres.pl version 2.2.1
NAME
Example 1: Give a warning when our cluster has used up 76% of the free-space pageslots, with pg_freespacemap installed in database robert
- check_postgres_autovac_freeze --dbname=robert --warning="76%"+ check_postgres_fsm_pages --dbname=robert --warning="76%"
While you need to pass in the name of the database where pg_freespacemap is installed (and optionally a schema name if you have installed the module in a non-standard schema), you only need to run this check once per cluster. Also, checking this information does require obtaining special locks on the free-space-map, so it is recommend you do not run this check with short intervals.
-For MRTG output, returns the percent of free-space-map on the first line, the number of pages currently used on +
For MRTG output, returns the percent of free-space-map on the first line, and the number of pages currently used on the second line.
@@ -584,7 +584,7 @@ in the free-space-map is determined by looking in the pg_freespacemap_relations the warning and 95% for the critical.
Example 1: Give a warning when our cluster has used up 80% of the free-space relations, with pg_freespacemap installed in database dylan, in non-standard schema emma
- check_postgres_autovac_freeze --dbname=dylan --warning="75%" --schema=emma+ check_postgres_fsm_relations --dbname=dylan --warning="75%" --schema=emma
While you need to pass in the name of the database where pg_freespacemap is installed (and optionally a schema name if you have installed the module in a non-standard schema), you only need to run this check once per cluster. Also, checking this information does require obtaining special locks on the free-space-map, so it is recommend you do not @@ -1095,6 +1095,12 @@ feature requests, and commit notices, send email to HISTORY
Items not specifically attributed are by Greg Sabino Mullane.
+ Fixes for minor output and scoping problems.+
diff --git a/index.html b/index.html index 2c59a3ca4..21df63c07 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.2.1, and was released on September 28, 2008.
+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.2.2, and was released on September 30, 2008.
The latest development version can be downloaded via git: