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

Use FQDN instead of IP for host address #544

Closed
dawidjttf opened this issue Aug 17, 2022 · 4 comments · Fixed by #642
Closed

Use FQDN instead of IP for host address #544

dawidjttf opened this issue Aug 17, 2022 · 4 comments · Fixed by #642
Assignees
Labels
Enhancement New feature or request
Milestone

Comments

@dawidjttf
Copy link

Hello,

Is it possible to use FQDN or hostname instead of IP address for Host address ? Right now the script embeds the host IP address and it starts be an issue for us when the workstation moves from one network to another and its IP changes, making the service checks not being able to reach the host.

image

Thanks!

@LordHepipud LordHepipud self-assigned this Aug 18, 2022
@LordHepipud
Copy link
Collaborator

Hello,

thank you for the issue. Fetching the FQDN for a specific host has been more challenging in the past than fetching an IP address, because complex environments will make it impossible to ensure that the FQDN locally fetched is acutally the one reachable from the monitoring.
In addition best practices for monitoring is in general to use an IP-Address instead of FQDN, because in case of DNS failures or problems, the address might not be resolveable and causing different problems.

I would suggest trying to use the Icinga Director and Import-/Sync-Rules to update the hosts with the correct FQDN either from CMDB, Active Directory or DNS services. By doing it this way, the dynamic approach doesn't matter and the initial address will always be overwritten with the correct, current address.

@dawidjttf
Copy link
Author

Thanks for explaining @LordHepipud, going with host imports from AD sounds reasonable and is something we'll have to look into. Before we get that implemented, I was thinking to 'patch' it on our end to use FQDNs instead of IP but I am not sure in which file we would need to do the change, is there a chance you could you point me to it?

Thanks!

@mkayontour
Copy link
Member

Is it possible to define the address at the self service installation, we have a problem if the first interface is the wrong IP.

@LordHepipud
Copy link
Collaborator

It is not yet possible to define the IP-Address for the host during the installation process manually.
In most cases, the hosts were added inside the Icinga Director and some automation tasks updated the IP frequently.

I could make this configurable, but the script has to be changed everytime for each host then.

Thoughts on this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Enhancement New feature or request
Projects
None yet
3 participants