Ad Widget

Collapse

Monitoring of ZABBIX proxy installed via docker container

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Himura
    Junior Member
    • Feb 2021
    • 14

    #1

    Monitoring of ZABBIX proxy installed via docker container

    Hello dear forum members,

    I'm complete newbie in both ZABBIX solutions and docker technology, so I'm kindly asking for your advices and help. I've set up the proxy (sqllite) and agent on the needed host, using "docker-compose up" and the following commands :
    zabbix-proxy:
    image: zabbix/zabbix-proxy-sqlite3
    container_name: zabbix-proxy
    restart: always
    environment:
    ZBX_HOSTNAME: zabbix-proxy-lab
    ZBX_SERVER_HOST: remote_firewall_ip
    ZBX_SERVER_PORT: remote_firewall_port
    # ZBX_TLSCONNECT:unencrypted
    # ZBX_TLSACCEPT:unencrypted
    # ZBX_TLSPSKIDENTITY:
    # ZBX_TLSPSKFILE:#
    ports:
    - "12051:10051"
    networks:
    zabbix:
    ipv4_address: some_ip
    and the agent
    zabbix-agent:
    image: zabbix/zabbix-agent:latest
    container_name: zabbix-agent
    restart: always
    environment:
    ZBX_SERVER_HOST: ip_from_proxy_above
    ports:
    - "12052:10051"
    links:
    - zabbix-proxy:zabbix-proxy
    depends_on:
    - zabbix-proxy:zabbix-proxy
    networks:
    zabbix:
    ipv4_address: some_ip1
    When I add the host in the UI I'm using the agent IP address. But the problem is that it does not display the real status of the zabbix-proxy container. If something will be wrong with the proxy - information about that will not be displayed in the "Problem" area of dashboard, because agent is up and running.

    What I want to achieve:
    1) Active proxy that will contact both local hosts (using agents) and remote server;
    2) proactive monitoring of both instances : Server and Proxy, running at containers;

    Please share your experiece: how to proper set up monitoring of ZABBIX components, located in different containers? I would also appreciate any critics / advices concenrning the configuration above.

    With best regards,
    Max.
Working...