Révision 91710873
Added support for mysqlconfig in munin-node.conf
| plugins/newznab/nn_ | ||
|---|---|---|
| 46 | 46 |
#-- CONFIG --# |
| 47 | 47 |
|
| 48 | 48 |
my %config = ( |
| 49 |
'dsn' => 'dbi:mysql:newznab', |
|
| 50 |
'user' => 'test', |
|
| 51 |
'password' => 'test', |
|
| 49 |
'dsn' => $env{'mysqlconnection'} || 'dbi:mysql:newznab',
|
|
| 50 |
'user' => $env{'mysqluser'} || 'test',
|
|
| 51 |
'password' => $env{'mysqlpassword'} || 'test',
|
|
| 52 | 52 |
); |
| 53 |
#my %config = ( |
|
| 54 |
# 'dsn' => $env{'mysqlconnection'} || 'dbi:mysql:newznab',
|
|
| 55 |
# 'user' => $env{'mysqluser'} || 'root',
|
|
| 56 |
# 'password' => $env{'mysqlpassword'} || '*****',
|
|
| 57 |
#); |
|
| 58 | 53 |
|
| 59 | 54 |
my %defaults = ( |
| 60 | 55 |
global_attrs => {
|
Formats disponibles : Unified diff