Configure Hosts with FQDN, IP or both?

Is there a best practice? Any tips or suggestions?

I want to apply the ‘‘check certificates’’ rule, and I think having all hosts configured with FQDNs would make it easier applying the rule.

CheckMK documentation also says to configure domain name when possible.

What do you use in your environment? FQDN only? IP only? or both?

1 Like

For check certificates it might be better to use the name as the name can also be checked in the certificate and need to match the same name used in the query.

Thank you for the answer Paulo. Exactly that is the reason that I was gonna use the names. On top of that would you configure the IP as well? Or would you leave only the domain name configured without the IP?
I was reading the documentation but I haven’t found anything related to best practices when it comes to that.

1 Like

It depends on the type of device. If that is a server or webserver with a static IP I would let the IP but if it was a website or a server with dynamic IP I would let the name only. What you can do is use a hybrid approach. Letting both fields filled and when monitoring the website use the variable $HOSTNAME$ which will replace the content with the hostname that was set in Checkmk.

2 Likes

that is very different … some devices have 7-8 Ip addresses to check and also different FQDN for the same Device
that the reason why you could not say best ist this or this

mostly I use the FQDN as Hostname without domain and add the ip-address as well

ist just the Question where you feel familiar or what is the focus on

Greetz Bernd

2 Likes