Edit docs to match other actions better
authorJoshua Tolley <[email protected]>
Mon, 30 Aug 2010 16:26:35 +0000 (10:26 -0600)
committerJoshua Tolley <[email protected]>
Mon, 30 Aug 2010 16:26:35 +0000 (10:26 -0600)
check_postgres.pl

index d003c9ed1c7346964f7a58c66a1eba55626b29be..0b17a87e65082e091be5bdd6367ed3fef5d4e8cc 100755 (executable)
@@ -8091,59 +8091,38 @@ For MRTG output, returns a 1 or 0 indicating success of failure of the checksum
 checksum must be provided as the C<--mrtg> argument. The fourth line always gives the 
 current checksum.
 
-=head2 B<pgbouncer pool checks>
+=head2 B<pgb_pool_cl_active>
 
-=over 4
-
-=item pgb_pool_cl_active
-
-(C<symlink:check_postgres_pgb_pool_cl_active>) Connections from clients that
-are currently associated with a connection to the database
-
-=item pgb_pool_cl_waiting
-
-(C<symlink:check_postgres_pgb_pool_cl_waiting>) Connections from clients that are
-waiting for a database connection
-
-=item pgb_pool_sv_active
+=head2 B<pgb_pool_cl_waiting>
 
-(C<symlink:check_postgres_pgb_pool_sv_active>) PostgreSQL connections currently
-associated with a client
+=head2 B<pgb_pool_sv_active>
 
-=item pgb_pool_sv_idle
+=head2 B<pgb_pool_sv_idle>
 
-(C<symlink:check_postgres_pgb_pool_sv_idle>) PostgreSQL connections ready to be
-associated with an incoming client
+=head2 B<pgb_pool_sv_used>
 
-=item pgb_pool_sv_used
+=head2 B<pgb_pool_sv_tested>
 
-(C<symlink:check_postgres_pgb_pool_sv_used>) PostgreSQL connections just
-unlinked from a client and not yet returned to the idle pool
+=head2 B<pgb_pool_sv_login>
 
-=item pgb_pool_sv_tested
+=head2 B<pgb_pool_maxwait>
 
-(C<symlink:check_postgres_pgb_pool_sv_tested>) PostgreSQL connections currently
-being tested
-
-=item pgb_pool_sv_login
-
-(C<symlink:check_postgres_pgb_pool_sv_login>) PostgreSQL connections currently
-in the login process
-
-=item pgb_pool_maxwait
-
-(C<symlink:check_postgres_pgb_pool_maxwait>) Time in seconds that the oldest
-client in the waiting pool has been waiting for a connection
-
-=back
+(symlinks: C<check_postgres_pgb_pool_cl_active>, C<check_postgres_pgb_pool_cl_waiting>,
+C<check_postgres_pgb_pool_sv_active>, C<check_postgres_pgb_pool_sv_idle>,
+C<check_postgres_pgb_pool_sv_used>, C<check_postgres_pgb_pool_sv_tested>,
+C<check_postgres_pgb_pool_sv_login>, and C<check_postgres_pgb_pool_maxwait>)
 
 Examines pgbouncer's pool statistics. Each pool has a set of "client"
 connections, referring to connections from external clients, and "server"
 connections, referring to connections to PostgreSQL itself. The related
 check_postgres actions are prefixed by "cl_" and "sv_", respectively. Active
-client connections are those connections currently associated with an active
-server connection. Client connections may also be "waiting", meaning they have
-not yet been allocated a server connection.
+client connections are those connections currently linked with an active server
+connection. Client connections may also be "waiting", meaning they have not yet
+been allocated a server connection. Server connections are "active" (linked to
+a client), "idle" (standing by for a client connection to link with), "used"
+(just unlinked from a client, and not yet returned to the idle pool), and
+"login" (in the process of logging in). The maxwait value shows how long in
+seconds the oldest waiting client connection has been waiting. 
 
 =head2 B<prepared_txns>