-
Notifications
You must be signed in to change notification settings - Fork 33
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
Install-Icinga uses wrong port to get parent certificate #687
Comments
Thank you for your issue. Can you please explain why the local Windows port should be different to the parent nodes Icinga port? This is in general not best practice, as the Icinga environment should listen on the same port. However, forcing 5665 to be used every time is not a suitable option, as there are environments where this is not the default port and therefore all those installations would fail. I need to have a deeper look into this, as a simple change could break current environments in case the behavior changes. In addition, I'm not sure if the described behavior is wrong or correct 🤔 |
I've tested the PR but without success. Also, typo ("$Hostnamef", line 225):
When intially opening the issue I had used the variable Icinga For Windows then using However, if leaving So
When it comes to the certificate retrieval specifiying an endpoint as But that exact pattern (
Result of the install command:
zones.conf:
The same parsing used to write So if the parent is written in the form of "[HOSTNAME]:PORT"
If the parent is written like "HOSTNAME"
|
Install-Icinga
uses the local node's port instead of the parent's port.When running
Install-Icinga
the local node's port (IfW-Port) is used to connect to the defined parent.E.g.
This results in the following command when running
Install-Icinga
:This command however fails because the parent's port is not 5777 but 5665.
Actual (full) command run:
Expand
Command run (with relevant parts):
I think setting 5665 as the default to connect to the parent should be the way to go unless another port is specified for the parent endpoint itself ([icinga.localdomain]:5665).
The local port on which the Windows host should listen should not affect the port used to connect to the parent.
The text was updated successfully, but these errors were encountered: