33 lines
570 B
Plaintext
33 lines
570 B
Plaintext
# Database host name
|
|
# Default is localhost
|
|
|
|
DBHost=localhost
|
|
|
|
# Database name
|
|
# SQLite3 note: path to database file must be provided. DBUser and DBPassword are ignored.
|
|
{
|
|
my $dbname = ${'zabbix-proxy'}{'DbName'} || 'zabbix';
|
|
my $dbuser = ${'zabbix-proxy'}{'DbUser'} || 'zabbix';
|
|
my $dbpass = ${'zabbix-proxy'}{'DbPassword'} || 'secret';
|
|
|
|
$OUT .=<<"HERE";
|
|
|
|
DBName=$dbname
|
|
|
|
# Database user
|
|
|
|
DBUser=$dbuser
|
|
|
|
# Database password
|
|
# Comment this line if no password used
|
|
|
|
DBPassword=$dbpass
|
|
HERE
|
|
|
|
}
|
|
|
|
# Connect to MySQL using Unix socket?
|
|
|
|
DBSocket=/var/lib/mysql/mysql.sock
|
|
|