Closed jesselee04 closed 3 years ago
first again: localhost in docker is always just this one container. Second: personally I don't had to change anything in DB ever with containers (beside if its a bug).
If you're looking for deeper insights look for # ZBX_DEBUGLEVEL=3
entries like in .env_srv and raise it. This will give you more detailed output.
The message of your issue let's me guess that the UI (so the web container) can't reach the zabbix-server? Can you give us details which services (MySQL or PG, nginx or Apache) you're running?
Also is it again the same host you're running on you had troubles in the last issue? Have you tried my debug steps from last time and docker exec
into the containers and tried to just "ping" the other containers?
Another good debug step, especially with docker-compose things is to start your services one by one. So don't just docker-compose up -d
but do it manually one by one and each time have a look at their logs or dont start it in deamon (-d) but in attached mode (without -d but then you have to use another terminal/window).
Also if you're learning: do you came across Dmitry Lambert videos over on YouTube (https://www.youtube.com/c/ZabbixCookBook/videos)?
So i think i may have deployed to much, here is everything i have.
I am pretty sure i am using the nginx fronted since i am using that port to get to it
Ah yes ... as stated here (by me (-; ) https://github.com/zabbix/zabbix-docker/wiki/FAQnP-...-Frequently-asked-questions-and-problems#why-are-there-so-many-containers-with-docker-compose ...
The different docker-compose files are just templates. Copy the one you like to go with (pgsql latest for example) into docker-compose.yml and then edit all mysql things out. Also remove the webserver you don't like (nginx or apache). The bare minimum are essential just DB, zabbix-server, zabbix-web.
I also think there has to be better documentation for starters ( have you had a look into https://www.zabbix.com/documentation/current/manual/installation/containers already? ) but it is what it is for now sadly.
If you're really new to Zabbix and Containers my advise is to get up to speed with Docker 101 first! You will have a much better time no matter if it's Zabbix or other software. And as a newcomer if you find something which should be documented because it's simple an oversight that it isn't but would help new people ... try to contribute in the Wiki too.
i think im making some progress :D what is the zabbix-agent for? i have an alert its not available. i didnt build its container.
Please check documentation: https://hub.docker.com/r/zabbix/zabbix-agent
New install, did some googling and found a couple typical things but new to zabbix and docker.
i have increased the cache size in the .env_srv file, restarted, no difference.
i cant seem to find the log that would give me the exact error cause, so if i could be pointed to that and how to see it in a docker container thank you.
I also say people said to run this, but i cant find where to run it at in the docker environment grant all privileges on zabbix_db.* to zabbix@localhost identified by 'password';
i didnt see the 10050 and 10051 ports in the services file on the zabbix-server either, an article said they should be in there?
any help would be awesome, thank you in advance.