Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Getting Zabbix agent on Zabbix server is unreachable for 5 minutes error #409

Closed
psv-001 opened this issue Dec 5, 2018 · 4 comments
Closed

Comments

@psv-001
Copy link

psv-001 commented Dec 5, 2018

Hi,

I am new to Zabbix tool, I wanted to monitor some of the docker containers that I am running in my local vagrant setup.

I am trying to integrate zabbix-server with postgresql, zabbix-agent and zabbix-web-nginx.

I have ran following run commands -

  1. zabbix-server:
    docker run --name zabbix-server -t
    --net plat_setup_default
    -e DB_SERVER_HOST="192.xxx.xxx.x"
    -e POSTGRES_USER="postgres"
    --link postgres:postgres
    --link zabbix-agent:zabbix-agent
    -p 10051:10051
    -d zabbix/zabbix-server-pgsql:latest

  2. web-nginx:
    docker run --net plat_setup_default --name zabbix-web-nginx-pgsql -e DB_SERVER_HOST="192.xxx.xxx.x" --link postgres:postgres
    --link zabbix-server:zabbix-server -e POSTGRES_USER="postgres" -e ZBX_SERVER_HOST="172.18.0.1" -p 18195:18195 -d zabbix/zabbix-web-nginx-pgsql:latest

  3. Zabbix-agent:
    docker run --net plat_setup_default --name zabbix-agent --link zabbix-server:zabbix-server -e ZBX_HOSTNAME="zabbix-server" -e ZBX_SERVER_HOST="172.18.0.18" --privileged -d zabbix/zabbix-agent:latest

Please note that, I am not sure about the ZBX_SERVER_HOST variable here, I have done docker inspect of server and added the IP in agents run command.

I am getting following issues while deploying and running the Zabbix server, agent.

zabix-agent logs:
59:20181205:133513.767 no active checks on server [172.18.0.18:10051]: host [zabbix-server] not found

zabbix-server logs:
155:20181205:133513.767 cannot send list of active checks to "172.18.0.20": host [zabbix-server] not found

hosts
monitoring

Attached are screen shots of the zabbex web.

Quick help will be really appreciated.

@dotneft
Copy link
Member

dotneft commented Jan 13, 2019

Please configure DNS.

@dotneft dotneft closed this as completed Jan 13, 2019
@bozerkins
Copy link

I am having the same problem with zabbix-appliance docker image for ubuntu 3.2 build. @dotneft , could you at least provide a link to the docs to resolve this issue?

@kakakikikeke
Copy link

I solved it. Please try below configuration.

  • Host name・・・zabbix-agent
  • Agent interfaces -> DNS name -> zabbix-agent
  • Agent interfaces -> Connect to -> DNS

zabbix_with_docker2

I think you can tentatively make the status green in this way.

@kushlychok
Copy link

kushlychok commented Aug 14, 2019

Let me ask, did you configure file .env_agent and modify next line? ZBX_SERVER_HOST=zabbix-agent

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants