Ad Widget

Collapse

New test-setup docker compose - agent not running.

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Sambzap
    Junior Member
    • Jan 2020
    • 15

    #1

    New test-setup docker compose - agent not running.

    I'm new to Zabbix, I used it some yars ago for some simple ping-monitoring only.

    So now its time again and I run it on Ubuntu in docker with the docker-compose-file:
    "docker-compose_v3_ubuntu_mysql_latest.yaml"

    After setup I get an error telling me "Zabbix agent is not available":
    Click image for larger version

Name:	image.png
Views:	3967
Size:	9.1 KB
ID:	465134

    It is in the compose-file.


    Code:
    $ docker compose -f zabbix-docker/docker-compose_v3_ubuntu_mysql_latest.yaml up -d
    
    [+] Building 0.0s (0/0)                                                                                                                                                                                        
    [+] Running 7/7
     ✔ Network zabbix-docker_zbx_net_frontend            Created                                                                                                                                              0.1s
     ✔ Network zabbix-docker_zbx_net_backend             Created                                                                                                                                              0.0s
     ✔ Network zabbix-docker_default                     Created                                                                                                                                              0.1s
     ✔ Container zabbix-docker-db_data_mysql-1           Started                                                                                                                                              0.7s
     ✔ Container zabbix-docker-mysql-server-1            Started                                                                                                                                              0.6s
     ✔ Container zabbix-docker-zabbix-server-1           Started                                                                                                                                              1.1s
     ✔ Container zabbix-docker-zabbix-web-nginx-mysql-1  Started
    Please point me in the right direction.
  • cyber
    Senior Member
    Zabbix Certified SpecialistZabbix Certified Professional
    • Dec 2006
    • 4806

    #2
    Not knowing anything about docker... but seems you just started server and not an agent...

    Comment

    • Sambzap
      Junior Member
      • Jan 2020
      • 15

      #3
      127.0.0.1 are faulty configuration when using the supplied docker-compose files. We have to use the docker hostname / alias:
      Click image for larger version

Name:	image.png
Views:	3965
Size:	48.4 KB
ID:	465185


      Click image for larger version

Name:	image.png
Views:	3991
Size:	77.2 KB
ID:	465184

      Now my agent are connected correctly. Maybe the repo can be updated so the default installation will work better.​

      Comment


      • Yves.Tseng
        Yves.Tseng commented
        Editing a comment
        Where can I modify the data inside the black box? Could you please guide me further?
        "127.0.0.1 are faulty configuration when using the supplied docker-compose files. We have to use the docker hostname / alias:"
    • gferradas
      Junior Member
      • Jan 2023
      • 24

      #4
      could you show the whole docker-compose file im trying to make zabbix work on containers but im kinda lose

      Comment

      • Sambzap
        Junior Member
        • Jan 2020
        • 15

        #5
        I use this:
        Official Zabbix Dockerfiles. Contribute to zabbix/zabbix-docker development by creating an account on GitHub.

        Comment

        • deepc
          Junior Member
          • Dec 2023
          • 1

          #6
          Zabbix docker-compose files uses Compose Profiles.
          That means, that there are different possible configurations: full, all
          If you want to have agent etc. enabled you have to use "full"

          Code:
          docker compose -f zabbix-docker/docker-compose_v3_ubuntu_mysql_latest.yaml --profile full up -d

          Comment

          Working...