[check_postgres] [commit] Fix missing arg problem in msg() calls. Remove debug line.
check_postgres at bucardo.org
check_postgres at bucardo.org
Fri Feb 20 14:49:59 UTC 2009
Committed by Greg Sabino Mullane <greg at endpoint.com>
Fix missing arg problem in msg() calls. Remove debug line.
---
check_postgres.pl | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/check_postgres.pl b/check_postgres.pl
index 8f4c9d3..f49f00f 100755
--- a/check_postgres.pl
+++ b/check_postgres.pl
@@ -718,7 +718,8 @@ sub msg {
my $x=1;
{
- last unless $msg =~ s/\$$x/$_[$x-1]/ge;
+ my $val = $_[$x-1];
+ last unless $msg =~ s/\$$x/$val/g;
$x++;
redo;
}
@@ -2115,7 +2116,6 @@ sub check_backends {
for $db (@{$info->{db}}) {
my ($limit,$total,$grandtotal) = (0,0,0);
- warn $db->{slurp};
SLURP: while ($db->{slurp} =~ /(\d+) \| (\d+)\s+\|\s+(\w+)\s*/gsm) {
$grandtotal++;
$limit ||= $2;
--
1.6.0.5
More information about the Check_postgres
mailing list