summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGreg Sabino Mullane2008-12-16 21:19:35 +0000
committerGreg Sabino Mullane2008-12-16 21:19:35 +0000
commit7c39df7c25e74ee8b59e6a52b4b24e19a0675769 (patch)
treeaa8952d84953fede394b9debdf5faf2da255947b
parentb883abcd6ded565d7168307d059d56c17e9ec8d3 (diff)
Note superuser requirement
-rwxr-xr-xcheck_postgres.pl4
1 files changed, 3 insertions, 1 deletions
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<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