From: Greg Sabino Mullane check_postgres.pl - a Postgres monitoring script for Nagios, MRTG, Cacti, and others
-This documents describes check_postgres.pl version 2.6.0
NAME
(symlink: check_postgres_checkpoint) Determines how long since the last checkpoint has
-been run. This must run on the same server as the database that is being checked. The
-data directory must be set, either by the environment variable PGDATA, or passing
+been run. This must run on the same server as the database that is being checked. This check is
+meant to run on a ``warm standby'' server that is actively processing shipped WAL files, and is meant
+to check that your warm standby is truly 'warm'. The data directory must be set, either by the
+environment variable PGDATA, or passing
the --datadir argument. It returns the number of seconds since the last checkpoint
was run, as determined by parsing the call to pg_controldata. Because of this, the
pg_controldata executable must be available in the current path.
At least one warning or critical argument must be set.
+This action requires the Date::Parse module.
For MRTG or simple output, returns the number of seconds.
@@ -755,7 +758,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_rows_level is enabled. Tables can be filtered with the +configuration variable stats_row_level is 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 @@ -1200,6 +1203,7 @@ instead of symlinks, so that the plugin only gets compiled one time.
The settings_checksum action requires the Digest::MD5 module.
+The checkpoint action requires the Date::Parse module.
Some actions require access to external programs. If psql is not explicitly
specified, the command which is used to find it. The program /bin/df
is needed by the disk_space action.
Items not specifically attributed are by Greg Sabino Mullane.
+ Only require Date::Parse to be loaded if using the checkpoint action.+
- Add the pitr_lag check.+ Add the 'checkpoint' action.
@@ -1252,7 +1262,7 @@ feature requests, and commit notices, send email to Version 2.5.1 (December 11, 2008) +
@@ -1261,7 +1271,7 @@ feature requests, and commit notices, send email to Version 2.5.0 (December 4, 2008) +