I was wondering if it's possible to use environment variables in zabbix config files.
For the frontend this is easily done like this for example:
Can the same be done for zabbix_server.conf, because those files aren't handled by PHP?
For the frontend this is easily done like this for example:
Code:
<?php
// Zabbix GUI configuration file
global $DB;
$DB['TYPE'] = 'MYSQL';
$DB['SERVER'] = getenv('MYSQL_DB_HOST');
$DB['PORT'] = getenv('MYSQL_DB_PORT');