[check_postgres] [commit] Minor tweak, thanks to Cédric Villemain
check_postgres at bucardo.org
check_postgres at bucardo.org
Wed Jan 7 15:18:57 UTC 2009
Committed by Greg Sabino Mullane <greg at endpoint.com>
=?utf-8?q?Minor=20tweak,=20thanks=20to=20C=C3=A9dric=20Villemain?=
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
---
check_postgres.pl | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/check_postgres.pl b/check_postgres.pl
index 51df720..fd4a5d7 100755
--- a/check_postgres.pl
+++ b/check_postgres.pl
@@ -926,7 +926,7 @@ sub run_command {
## Don't set any default values if a service is being used
- if (defined $opt{dbservice} and length $opt{dbservice}->[0]) {
+ if (defined $opt{dbservice} and defined $opt{dbservice}->[0] and length $opt{dbservice}->[0]) {
$conn->{dbname} = [];
$conn->{port} = [];
$conn->{dbuser} = [];
--
1.6.0.5
More information about the Check_postgres
mailing list