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

fix https://github.com/ansible-collections/community.zabbix/issues/1410 #1425

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

dshuffin
Copy link

SUMMARY

Fixes #1410
Solution is based on this discussion: ansible/ansible#84374

ISSUE TYPE
  • Bugfix Pull Request
COMPONENT NAME

zabbix_proxy role
zabbis_agent role

ADDITIONAL INFORMATION

Copy link
Collaborator

@BGmot BGmot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry, I don't like this PR. It just does not look right (overcomplicated?).
In my opinion it's very easy define variables in inventory so you don't need to play with facts.
Waiting for any opinion from other maintainers. I am ok to accept that I am wrong.

@dshuffin
Copy link
Author

That would require that you have a host that runs zabbix web interface to be in the same inventory, and that documentation is updated to reflect where variables need to be set. Additionally task "Setting Zabbix API Server Port" needs to be removed as it does nothing useful.

@BGmot
Copy link
Collaborator

BGmot commented Nov 25, 2024

You don't need a host that runs Zabbix web in the inventory.
This part in your inventory would do the job:

---
all:
  vars:
    test: 443

Agree on documentation.

Additionally task "Setting Zabbix API Server Port" needs to be removed as it does nothing useful
Agree. It's a leftover from pre-httpapi times and the task does not exist in zabbix_server role.

@pyrodie18
Copy link
Collaborator

Ya I don't get what the benefit of this change is.

@eb4x
Copy link
Collaborator

eb4x commented Nov 27, 2024

Waiting for any opinion from other maintainers.

I second this, it doesn't look like the right approach.

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

Successfully merging this pull request may close these issues.

Zabbix Agent: zabbix_api_server_port is undefined when hostgroup or host api creation is enabled
4 participants