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

ZBX_SERVER_HOST in frontend config only works with brackets #1550

Open
fansari opened this issue Nov 11, 2024 · 2 comments
Open

ZBX_SERVER_HOST in frontend config only works with brackets #1550

fansari opened this issue Nov 11, 2024 · 2 comments

Comments

@fansari
Copy link

fansari commented Nov 11, 2024

SUMMARY

On all other places where I have put IPv6 address in Zabbix configs (DB_SERVER_HOST, or ZBX_SERVER_HOST in proxies) the IPv6 address can be written without brackets.

Only in the frontend this does not work (and even there DB_SERVER_HOST works without brackets which is confusing).

OS / ENVIRONMENT / Used docker-compose files

OS: CentOS Stream release 9
Docker image: zabbix/zabbix-web-nginx-pgsql:alpine-7.0.5

CONFIGURATION
STEPS TO REPRODUCE

This does not work:

 --env DB_SERVER_HOST=2xxx:xxxx:xxxx::2
 --env ZBX_SERVER_HOST=2xxx:xxxx:xxxx::3

This does not work:

 --env DB_SERVER_HOST=[2xxx:xxxx:xxxx::2]
 --env ZBX_SERVER_HOST=[2xxx:xxxx:xxxx::3]

Using brackets with DB_SERVER_HOST gives this error:

**** PostgreSQL server is not available. Waiting 5 seconds...

This works:

 --env DB_SERVER_HOST=2xxx:xxxx:xxxx::2
 --env ZBX_SERVER_HOST=[2xxx:xxxx:xxxx::3]
EXPECTED RESULTS

I would expect the writing style of IPv6 addresses to be cosistent. Or is there is a reason why only in this place brackets are mandatory?

ACTUAL RESULTS

When ZBX_SERVER_HOST is configured with IPv6 without brackets and you reload the Zabbix GUI there is no attempt to reach the Zabbix server. I checked this with tcpdump.


@dotneft
Copy link
Collaborator

dotneft commented Nov 11, 2024

Sorry, you said it works when DB_SERVER_HOST specified without brackets, but then said the problem with ZBX_SERVER_HOST. What is correct?

@fansari
Copy link
Author

fansari commented Nov 11, 2024

After I noticed that I have to use the brackets for ZBX_SERVER_HOST I tested what happens when I also write the address for DB_SERVER_HOST in brackets. But this does not work. You can see above three combinations I have tested.

You have to use ZBX_SERVER_HOST with brackets but DB_SERVER_HOST without brackets. I find this not very intuitive.

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

2 participants