[check_postgres] strange behavior : duplicate output
Greg Sabino Mullane
greg at endpoint.com
Mon Feb 9 16:30:02 UTC 2009
> I found that it came from a test which have been removed. (but WHY it had been
> removed?)
It was removed to allow default parameters to be used , e.g. if someone
wanted to use PGHOST and have no other specific database arguments.
However, this was creating a duplicate entry as you caught. The fix has
been pushed, and I'll roll out a minor revision soon. The patch in case
you need it sooner:
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++;
--
Greg Sabino Mullane greg at endpoint.com
End Point Corporation
PGP Key: 0x14964AC8
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 226 bytes
Desc: OpenPGP digital signature
Url : https://mail.endcrypt.com/pipermail/check_postgres/attachments/20090209/d2297c3c/attachment.bin
More information about the Check_postgres
mailing list