[check_postgres] [commit] Note superuser requirement
check_postgres at bucardo.org
check_postgres at bucardo.org
Tue Dec 16 21:19:48 UTC 2008
Committed by Greg Sabino Mullane <greg at endpoint.com>
Note superuser requirement
---
check_postgres.pl | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
diff --git a/check_postgres.pl b/check_postgres.pl
index 78182aa..1b545b0 100755
--- a/check_postgres.pl
+++ b/check_postgres.pl
@@ -4061,10 +4061,12 @@ given. This choice does not use the B<max_connections> 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<max_connections>
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</"BASIC FILTERING"> 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
--
1.5.5.4
More information about the Check_postgres
mailing list