i’v just installed the recent version on raspbian buster. Now i’m trying to install director and noted that i forget to configure the FQDN properly before installing icinga.
So i fixed it editing /etc/hosts
Now hostname --fqdn shows the result as it should.
Next i edit /etc/icinga2/constants.conf and changed the nodename also the the FQDN.
As found on the forum i ran icinga2 daemon -C which throws some errors because i cannot find the certificates. Sounds logic to me.
BUT executing icinga2 api setup doesn’t create new ones, it falls back to just the hostname instead of FQDN.
It might be an issue with my hosts file. it looks weird but only this configuration was able to get the command hostname --fqdn to work properly
127.0.0.1 server.domain.tld server localhost
127.0.1.1 server.domain.tld server
10.1.1.1 server.domain.tld server
Any ideas what i could do?
I found https://github.com/Icinga/icinga2/issues/6649
the last post says
icinga2 api setup
this worked in my case too. Is it possible that icinga2 api setup reads some old hostname values from /var/cache/icinga2 ?