Ad Widget

Collapse

Running Zabbix in Docker containers

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

    #1

    Running Zabbix in Docker containers

    If anyone is interested in running Zabbix in Docker containers, I've created Dockerfiles to do this easily and posted the code on github.

    There are more guides on the web to make Zabbix run in a container, but they usually put all processes in 1 container which isn't really the point of docker. The point is to have each process in a separate container, which I've done.

    Currently I've 3 Dockerfiles on github to build:
    • a container only running the zabbix_server process
    • a container running the mysqld_safe process
    • a container running an apache process


    You can easily clone the github repo's and build the images, and then link them together to create a working Zabbix environment in Docker containers.

    Detailed usage examples can be found in the README files on github:

    Container for zabbix_server process. Contribute to dkanbier/docker-zabbix-server development by creating an account on GitHub.


    I'm in the process of making more containers available, like a zabbix_agent and zabbix_java_gateway. I find them very handy for testing purposes.

    One thing to note if you're wondering why I packaged a zabbix_server binary for the Docker container. I need the zabbix_server process to run in the foreground, which can't be done with the official binary. However there is a patch to add this functionality which has been applied to the packaged binary.
    Last edited by dkanbier; 24-09-2014, 13:12.
  • timbo
    Member
    Zabbix Certified SpecialistZabbix Certified Professional
    • Sep 2013
    • 50

    #2
    I just wanted to say thank you for building, documenting and publishing this.

    The first thing I did after I saw Docker was search for some Zabbix implementations - I was surprised that I actually found a couple. But if I recall correctly, there were no truly process independent implementations such as yours.

    I very much look forward to trying your solution out.

    -Timbo

    Comment

    • dkanbier
      Junior Member
      Zabbix Certified Specialist
      • Jul 2013
      • 13

      #3
      Originally posted by timbo
      I just wanted to say thank you for building, documenting and publishing this.

      The first thing I did after I saw Docker was search for some Zabbix implementations - I was surprised that I actually found a couple. But if I recall correctly, there were no truly process independent implementations such as yours.

      I very much look forward to trying your solution out.

      -Timbo
      My pleasure, be sure to drop me a message here or on github if you need any help with it!

      Comment

      • qix
        Senior Member
        Zabbix Certified SpecialistZabbix Certified Professional
        • Oct 2006
        • 423

        #4
        Very nice, Dennis!

        It would be interesting to also have a container with the snmp trapper components.

        With kind regards,

        Raymond

        Comment

        Working...