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

[FEED]Agent download fails in distributed setup #532

Open
HaZet1968 opened this issue Jan 24, 2024 · 4 comments
Open

[FEED]Agent download fails in distributed setup #532

HaZet1968 opened this issue Jan 24, 2024 · 4 comments
Assignees
Labels
feedback General feedback role:agent This affects the agent role upstream There is something upstream blocking this

Comments

@HaZet1968
Copy link

Please verify first that your feedback is not already reported here.
If possible and useful provide additional information below. This is optional however.

Provide your feedback
As mentioned here https://forum.checkmk.com/t/agent-download-fails-in-distributed-setup/36610/3 Agent download fails in distributed setups.
Unfortunatly I have to work in an closed environment so i cannot make a pull request. Instead I added my changes in the attached main.txt (must be renamed to main.yml, see below). Maybe someone can make a pull request out of it.

Component Name

Component Name: Agent download
I added three new configuration variables:
checkmk_agent_download_server_protocol
checkmk_agent_download_server
checkmk_agent_download_site

I changed checkmk/general/roles/agent/vars/main.yml to the following (see attachment)
main.txt
works for me

Ansible Version

$ ansible --version
2.12.10

Collection Version

$ ansible-galaxy collection list
4.1.0

Environment

checkmk 2.2.0p18

Screenshots

Additional context

@HaZet1968 HaZet1968 added the feedback General feedback label Jan 24, 2024
@robin-checkmk robin-checkmk added upstream There is something upstream blocking this role:agent This affects the agent role labels Jan 25, 2024
@robin-checkmk
Copy link
Member

Hi @HaZet1968 and thanks for your contribution!
Just making sure, I understand your proposal correctly: You want to add the new variables to be able to set a server different from checkmk_agent_server and checkmk_agent_registration_server, right?

@torbenubechel
Copy link

Hi at all,

we facing a similar issue.

Distributed setup, where the distrubuted site are only read-only.

So the agent role have to

  • create the new host at the master server with site-tag for the distributed site
  • register TLS at the distributed server with the distributed site
  • register updader at the distributed server with the distributed site

At the moment step 2 fails, as it tries to register at the master server (checkmk_agent_server) which does not react for the distrbuted site.

How can we assist to bring the differentiation into the code.

@robin-checkmk
Copy link
Member

robin-checkmk commented Aug 19, 2024

@torbenubechel thanks for chiming in here. My question towards the original reporter of this was targeted at confirming whether the role can already do, what they need.

In your case, I would assume, setting the following two variables to the remote server and site, instead using the default (which is the central site and server), should resolve your situation.

checkmk_agent_registration_server: "{{ checkmk_agent_server }}"
checkmk_agent_registration_site: "{{ checkmk_agent_site }}"

@torbenubechel
Copy link

@torbenubechel thanks for chiming in here. My question towards the original reporter of this was targeted at confirming whether the role can already do, what they need.

In your case, I would assume, setting the following two variables to the remote server and site, instead using the default (which is the central site and server), should resolve your situation.

checkmk_agent_registration_server: "{{ checkmk_agent_server }}"
checkmk_agent_registration_site: "{{ checkmk_agent_site }}"

@robin-checkmk you were right.
My mistake was the wrong registration site.

Now its working!

Thanks a lot!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feedback General feedback role:agent This affects the agent role upstream There is something upstream blocking this
Projects
None yet
Development

No branches or pull requests

3 participants