Endpoint object for frax.internal.cloudapp.net is missing

After giving command in Linux:
icinga2 daemon -C

I get:

critical/config: Error: Endpoint object for ‘icinga.xxxx.frax.internal.cloudapp.net’ is missing.
Location: in /etc/icinga2/features-enabled/api.conf: 5:1-5:24

object ApiListener “api”

api.conf(6): //accept_config = false
api.conf(7): //accept_commands = false
[2022-10-28 09:55:44 +0000] critical/config: 1 error
[2022-10-28 09:55:44 +0000] critical/cli: Config validation failed.

  • Director version v1.9.1
  • Ubuntu 20.04

Before that I changed object Endpoint name:
object Endpoint “Name” {
host = “Name”

object Zone ZoneName {
endpoints = [ “Name” ]

I am running in circles here, please help :slight_smile:

Hi @Stucco4327,

please do not change the endpoint name manually, otherwise everything will fall apart. When you run the icinga2 node wizard or the icinga2 api setup command, Icinga2 generates the certificates based on the NodeName constant and if you change it manually afterwards, you can guess :smirk: what will happen. So if you want to change the name, just run the wizard again and provide the desired name and Icinga2 will update the certificates as well.

Last but not least, the definition Object Endpoint "Name" { must exactly match the value of the NodeName constant stored in /etc/icinga2/constants.conf.