diff options
author | Greg Sabino Mullane | 2011-02-09 14:36:33 +0000 |
---|---|---|
committer | Greg Sabino Mullane | 2011-02-09 14:36:33 +0000 |
commit | ffb00529799a8dbb4e9f82e0d6c94b523e02161d (patch) | |
tree | 28b5803123c254dd77a0ff65d2e98560259149e1 /check_postgres.pl | |
parent | ba613fd32754767a1d53735ddd1bbeccba239112 (diff) |
Exclude idle in transaction from the query_time per bug #43.
Since we've just overhauled this check, seems like a good a time
as any to make this change.
Diffstat (limited to 'check_postgres.pl')
-rwxr-xr-x | check_postgres.pl | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/check_postgres.pl b/check_postgres.pl index 96314628b..7b5bb11dc 100755 --- a/check_postgres.pl +++ b/check_postgres.pl @@ -4922,7 +4922,7 @@ sub check_query_time { msg('queries'), msg('query-time'), 'query_start', - q{query_start IS NOT NULL}); + q{query_start IS NOT NULL AND current_query <> '<IDLE> in transaction'}); return; @@ -8441,9 +8441,9 @@ line lists the database. =head2 B<query_time> -(C<symlink: check_postgres_query_time>) Checks the length of running queries on one or more databases. There is -no need to run this more than once on the same database cluster. -Databases can be filtered +(C<symlink: check_postgres_query_time>) Checks the length of running queries on one or more databases. +There is no need to run this more than once on the same database cluster. Note that +this already excludes queries that are "idle in transaction". Databases can be filtered by using the I<--include> and I<--exclude> options. See the L</"BASIC FILTERING"> section for more details. You can also filter on the user running the query with the I<--includeuser> and I<--excludeuser> options. @@ -9018,6 +9018,8 @@ Items not specifically attributed are by Greg Sabino Mullane. Standardize and clean up all perfdata ouput (bug #52) + Exclude "idle in transaction" from the query_time check (bug #43) + Clean up the custom_query action a bit. =item B<Version 2.16.0> January 20, 2011 |