mirror of
https://github.com/munin-monitoring/contrib.git
synced 2025-07-22 02:51:03 +00:00
Merge pull request #620 from exhuma/fix/postgres_space_
Plugin runs, even if no access to list DBs.
This commit is contained in:
commit
f444e600c9
1 changed files with 0 additions and 3 deletions
|
@ -67,9 +67,6 @@ if (exists $ARGV[0]) {
|
||||||
my (undef, undef, $dbname) = split (/_/, $0, 3);
|
my (undef, undef, $dbname) = split (/_/, $0, 3);
|
||||||
die "No dbname configured (did you make the proper symlink?)" unless $dbname;
|
die "No dbname configured (did you make the proper symlink?)" unless $dbname;
|
||||||
|
|
||||||
my @datasources = DBI->data_sources ('Pg')
|
|
||||||
or die ("Can't read any possible data sources: $?");
|
|
||||||
|
|
||||||
my $dsn = "DBI:Pg:dbname=$dbname";
|
my $dsn = "DBI:Pg:dbname=$dbname";
|
||||||
$dsn .= ";host=$dbhost" if $dbhost;
|
$dsn .= ";host=$dbhost" if $dbhost;
|
||||||
print "#$dsn\n" if $debug;
|
print "#$dsn\n" if $debug;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue