summaryrefslogtreecommitdiff
path: root/check_postgres.pl
diff options
context:
space:
mode:
authorChristoph Berg2013-09-18 15:04:38 +0000
committerChristoph Berg2013-09-18 15:04:38 +0000
commitbe94dd08375adc0fd1747e3f9dd556b363ee4c28 (patch)
tree77029fc975551135338e51ef8b9fbb6c3b5c63d5 /check_postgres.pl
parent927f4aa3f76431cea820ab69c66a3bc95af159f7 (diff)
Sort lock types so the output ordering is predicatable
Diffstat (limited to 'check_postgres.pl')
-rwxr-xr-xcheck_postgres.pl2
1 files changed, 1 insertions, 1 deletions
diff --git a/check_postgres.pl b/check_postgres.pl
index b7c8417d0..5de33d524 100755
--- a/check_postgres.pl
+++ b/check_postgres.pl
@@ -5131,7 +5131,7 @@ sub check_locks {
## If not specific errors, just use the total
my $ok = 1;
- for my $type (keys %totallock) {
+ for my $type (sort keys %totallock) {
if ($critical and exists $critical->{$type} and $totallock{$type} >= $critical->{$type}) {
($type eq 'total')
? add_critical msg('locks-msg2', $totallock{total})