Ad Widget

Collapse

Using variables in zabbix_*.conf files?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • dkanbier
    Junior Member
    Zabbix Certified Specialist
    • Jul 2013
    • 13

    #1

    Using variables in zabbix_*.conf files?

    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:

    Code:
    <?php
    // Zabbix GUI configuration file
    global $DB;
    
    $DB['TYPE']     = 'MYSQL';
    $DB['SERVER']   = getenv('MYSQL_DB_HOST');
    $DB['PORT']     = getenv('MYSQL_DB_PORT');
    Can the same be done for zabbix_server.conf, because those files aren't handled by PHP?
Working...