From be94dd08375adc0fd1747e3f9dd556b363ee4c28 Mon Sep 17 00:00:00 2001 From: Christoph Berg Date: Wed, 18 Sep 2013 17:04:38 +0200 Subject: Sort lock types so the output ordering is predicatable --- check_postgres.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'check_postgres.pl') 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}) -- cgit v1.2.3