[check_postgres] [commit] Better logic at finding groups of connections.
check_postgres at bucardo.org
check_postgres at bucardo.org
Mon Feb 9 16:29:22 UTC 2009
Committed by Greg Sabino Mullane <greg at endpoint.com>
Better logic at finding groups of connections.
---
check_postgres.pl | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/check_postgres.pl b/check_postgres.pl
index 47e42ed..598aa98 100755
--- a/check_postgres.pl
+++ b/check_postgres.pl
@@ -975,6 +975,8 @@ sub run_command {
$group{$vname} = $conn->{$vname};
}
+ last GROUP if ! $foundgroup and @target;
+
$gbin++;
## Now break the newly created group into individual targets
@@ -997,11 +999,11 @@ sub run_command {
push @target, \%temptarget;
$tbin++;
- redo;
+ redo TARGET;
} ## end TARGET
last GROUP if ! $foundgroup;
- redo;
+ redo GROUP;
} ## end GROUP
if (! @target) {
--
1.6.0.5
More information about the Check_postgres
mailing list