/root/.my.cnf
に記載
# cat /root/.my.cnf
[client]
password="{$PASSWORD}"
/etc/zabbix/zabbix_server.conf
と/etc/zabbix/web/zabbix.conf.php
に記載
# cat /etc/zabbix/zabbix_server.conf
(省略)
### Option: DBUser
# Database user.
#
# Mandatory: no
# Default:
# DBUser=
DBUser=zabbix
### Option: DBPassword
# Database password.
# Comment this line if no password is used.
#
# Mandatory: no
# Default:
# DBPassword=
DBPassword={$PASSWORD}
(省略)
# cat /etc/zabbix/web/zabbix.co.f.php
(省略)
$DB['DATABASE'] = 'zabbix';
$DB['USER'] = 'zabbix';
$DB['PASSWORD'] = '{$PASSWORD}';
(省略)