projects
/
check_postgres.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e85ba2f
)
Sometimes our own query does not occur, so simply assume a max of 0 and ignore no...
author
Greg Sabino Mullane
<
[email protected]
>
Mon, 2 Jun 2008 16:22:24 +0000
(12:22 -0400)
committer
Greg Sabino Mullane
<
[email protected]
>
Mon, 2 Jun 2008 16:22:24 +0000
(12:22 -0400)
check_postgres.pl
patch
|
blob
|
blame
|
history
diff --git
a/check_postgres.pl
b/check_postgres.pl
index 0a8596a96353ebf5f6aee9c7b4fb378e164dacc0..8d882255422bb8be86c395944de34f7a1b29b872 100755
(executable)
--- a/
check_postgres.pl
+++ b/
check_postgres.pl
@@
-2193,17
+2193,13
@@
sub check_query_time {
next;
}
- my $max =
-1
;
+ my $max =
0
;
SLURP: while ($db->{slurp} =~ /(.+?)\s+\|\s+(\d+)\s*/gsm) {
my ($dbname,$current) = ($1,$2);
next SLURP if skip_item($dbname);
$max = $current if $current > $max;
}
$db->{perf} .= " maxtime:$max";
- if ($max < 0) {
- add_unknown 'T-EXCLUDE-DB';
- next;
- }
my $msg = qq{longest query: ${max}s};
if (length $critical and $max >= $critical) {