Ad Widget

Collapse

Zabbix server configuation in Docker container is overwritten

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • nasu67
    Junior Member
    • Jan 2020
    • 2

    #1

    Zabbix server configuation in Docker container is overwritten

    Assumiing that /etc/zabbix/zabbix_server.conf in my Zabbix server Docker container contains the configuration used by the server, I can change the Timeout parameter and save it. However, after restarting my container, the changes are lost. Am I doing this the wrong way?
  • jad.baz
    Junior Member
    • Dec 2019
    • 13

    #2
    You're not supposed to touch the zabbix_server.conf file. This file is overridden by variables in your environment configuration
    I don't know which zabbix image you're using but they all work the same way
    Read the README again on zabbix-appliance for example

    Here's an example docker-compose file which sets HistoryCacheSize
    Code:
    version: '3.1'
    services:
      zabbix:
        image: zabbix/zabbix-appliance
        container_name: zabbix
        environment:
          - ZBX_HISTORYCACHESIZE=32M
        volumes:
          - zabbix_mysql:/var/lib/mysql
        ports:
          - 80:80
          - 10051:10051
        restart: always

    Comment

    • nasu67
      Junior Member
      • Jan 2020
      • 2

      #3
      Ah, thanks, I will use ZBX_TIMEOUT for this then.

      Comment

      Working...