Ad Widget

Collapse

MySQL connection

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • tarschon
    Junior Member
    • Dec 2022
    • 13

    #1

    MySQL connection

    Hi Guys

    I have the following problem, I have Zabbix in Docker and I had an IP conflict problem with the Default Docker IP (172.17.0.1) so I changed it to 10.220.0.1, all applications received their due IP normally, when restarting the containers I lost my access to Zabbix Web and Zabbix Server and I verified in the LOG of both that the problem is in the connection with MySQL because they are still trying to find it through the IP 172.17.0.1, I have already made all the necessary changes in the Web and on the Server in the path /etc/zabbix/%%%%.conf and /etc/zabbix/%%%%.conf.php and it still didn't help, I need a light, I'll put some images so they can analyze.
    Thanks in advance for the support.
    ​​
    Click image for larger version

Name:	image.png
Views:	249
Size:	17.9 KB
ID:	458262
    Here are the containers running

    Click image for larger version

Name:	image.png
Views:	221
Size:	20.9 KB
ID:	458263
    Zabbix-Server: zabbix.conf file

    Click image for larger version

Name:	image.png
Views:	255
Size:	17.0 KB
ID:	458264
    Zabbix-Server container startup log

    ​​Click image for larger version

Name:	image.png
Views:	236
Size:	27.0 KB
ID:	458265
    Zabbix-Web: zabbix.conf.php file

    Click image for larger version

Name:	image.png
Views:	231
Size:	17.0 KB
ID:	458266
    Zabbix-Web container startup log​​
  • tarschon
    Junior Member
    • Dec 2022
    • 13

    #2
    Hello guys

    I found that the settings are in the ENV of the Zabbix-Web and Zabbix-Server containers, so they are not changed according to the configuration files, I spent some time trying to change the ENV of the already executed containers, but without success, if anyone knows how do, please explain to me.​

    Click image for larger version

Name:	image.png
Views:	259
Size:	59.7 KB
ID:	458339
    Here we can see the settings in the ENV after the command "docker container inspect zabbix-web"

    Click image for larger version

Name:	image.png
Views:	209
Size:	43.5 KB
ID:	458340
    Here we can see the settings in the ENV after the command "docker container inspect zabbix-server"​​

    Comment

    Working...