From 7c39df7c25e74ee8b59e6a52b4b24e19a0675769 Mon Sep 17 00:00:00 2001 From: Greg Sabino Mullane Date: Tue, 16 Dec 2008 16:19:35 -0500 Subject: [PATCH] Note superuser requirement --- check_postgres.pl | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/check_postgres.pl b/check_postgres.pl index 78182aa64..1b545b0e8 100755 --- a/check_postgres.pl +++ b/check_postgres.pl @@ -4061,10 +4061,12 @@ given. This choice does not use the B setting. Second, the percentage of available connections can be given. Third, a negative number can be given which represents the number of connections left until B is reached. The default values for I<--warning> and I<--critical> are '90%' and '95%'. -You can also specify I<--noidle> to return a count of non-idle processes. You can also filter the databases by use of the <--include> and I<--exclude> options. See the L section for more details. +To view only non-idle processes, you can use the I<--noidle> argument. Note that the +user you are connecting as must be a superuser for this to work properly. + Example 1: Give a warning when the number of connections on host quirm reaches 120, and a critical if it reaches 150. check_postgres_backends --host=quirm --warning=120 --critical=150 -- 2.30.2