From: Greg Sabino Mullane Date: Sun, 3 Jul 2011 02:38:58 +0000 (-0400) Subject: Be clear that we are checking the pg_listener table. Per suggestion from Thomas Guettler. X-Git-Tag: 2.18.0~29 X-Git-Url: http://git.postgresql.org/gitweb/?a=commitdiff_plain;h=15140ad723d2f33c796f42522019a80807ed0aaa;p=check_postgres.git Be clear that we are checking the pg_listener table. Per suggestion from Thomas Guettler. Note the failure to work at versions >= 9.0 --- diff --git a/check_postgres.pl b/check_postgres.pl index fcd112188..8daef5756 100755 --- a/check_postgres.pl +++ b/check_postgres.pl @@ -8443,9 +8443,11 @@ last vacuumed or analyzed. The fourth line returns the name of the database and =head2 B -(C) Confirm that someone is listening for one or more specific strings. Only one of warning or critical is needed. The format -is a simple string representing the LISTEN target, or a tilde character followed by a string for a regular expression -check. +(C) Confirm that someone is listening for one or more +specific strings (using the LISTEN/NOTIFY system), by looking at the pg_listener table. +Only one of warning or critical is needed. The format is a simple string representing the +LISTEN target, or a tilde character followed by a string for a regular expression check. +Note that this check will not work on versions of Postgres 9.0 or higher. Example 1: Give a warning if nobody is listening for the string bucardo_mcp_ping on ports 5555 and 5556