Ad Widget

Collapse

Zabbix Agent docker

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • rmsmgaspar
    Junior Member
    • Mar 2020
    • 2

    #1

    Zabbix Agent docker

    Hi,
    I'm running Zabbix with docker-compose, all is up and running but the Zabbix Agent is not listening and doesn't have an exposed port:

    CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
    1a494545f34e itdocker.gmv.com/zabbix-agent:ubuntu-4.4.5 "/sbin/tini -- /usr/…" 2 hours ago Up 2 hours zabbix_zabbix-agent_1

    Is anything that I'm missing, I'm trying to telnet from remote proxies and

    root@fw:~# telnet zabbix1 10050
    Trying 192.168.22.201...
    telnet: Unable to connect to remote host: Connection refused

    Anyone can help?
    Thanks in advance
  • rmsmgaspar
    Junior Member
    • Mar 2020
    • 2

    #2
    Hi,

    Solved with this:

    It looks like zabbix-agent does not get exposed, in the result of being unable to monitorize zabbix it self: Here's my docker-compose.yml version: '3.5' services: zabbix-web-nginx-pgsql: image: zab...


    As you can see on the yaml file, the service zabbix-agent use network zbx_net_backend which stated as internal network "internal = true"

    To monitor the zabbix agent just change on the zabbix web from 127.0.0.1 to one of the aliases (eg. zabbix-agent), that should resolve the issue.
    But if you want to expose zabbix agent to external, you can add zbx_net_frontend: under zabbix-agent service, the port will be shown in docker container ls output. So in the end zabbix-agent will have 2 interface which you can check using ip addr show inside the container.

    Comment

    Working...