Ad Widget

Collapse

How to config zabbix in docker container to monitor vmware

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Tec_francis
    Junior Member
    • Apr 2023
    • 1

    #1

    How to config zabbix in docker container to monitor vmware

    Hi guys!!

    I am trying zabbix 6.4 in Docker container and I would like monitor vmware but I do not know how edit "/etc/zabbix/zabbix_server.conf" and restart service.

    Thanks
  • Mrbibi
    Junior Member
    • May 2024
    • 2

    #2
    Hey,

    You need to configure this through the environment variables. Each zabbix_server.conf parameters can be configured this way

    From https://www.zabbix.com/documentation...ion/containers:
    All Zabbix component images provide environment variables to control configuration. These environment variables are listed in each component repository. These environment variables are options from Zabbix configuration files, but with different naming method. For example, ZBX_LOGSLOWQUERIES is equal to LogSlowQueries from Zabbix server and Zabbix proxy configuration files.
    In your case the following paramters of zabbix_server.conf
    Code:
    StartVMwareCollectors=3
    VMwareFrequency=60
    VMwarePerfFrequency=60
    VMwareCacheSize=32M
    VMwareTimeout=120
    Have to be passed as environment variables like bellow (docker-compose):
    Code:
    # VMware monitoring settings
    ZBX_STARTVMWARECOLLECTORS: 3
    ZBX_VMWAREFREQUENCY: 60
    ZBX_VMWAREPERFFREQUENCY: 60
    ZBX_VMWARECACHESIZE: 32M
    ZBX_VMWARETIMEOUT: 120
    Have a nice day.

    Comment


    • einsteinagogo
      einsteinagogo commented
      Editing a comment
      is this still valid in 2025 ?
  • Mrbibi
    Junior Member
    • May 2024
    • 2

    #3
    einsteinagogo, yes, I think so. Check the documentation to see if anything has changed, or perform a simple test. Then, inspect the zabbix_server.conf inside the container to verify if the changes have been applied correctly.

    Comment

    • einsteinagogo
      Junior Member
      • Feb 2025
      • 5

      #4
      Does not parse these variables into the container

      Comment

      • Brambo
        Senior Member
        • Jul 2023
        • 245

        #5
        See my post in this topic: https://www.zabbix.com/forum/zabbix-...055#post500055

        Comment

        Working...