Backend goes down when trying to add new host

  • Hello,
    I'm a new Icinga user and I just finished to install Icinga2 and Icingaweb2 and now I want to start to configure.


    Every time I touch one of the configuration files (doesn't even matter which one and what objects I add) and restart the icinga service, I see under Process Info that red line: "Backend icinga is not running". Of course that the host I tried to add doesn't appear at the dashboard's host list as I expected. When I restore /etc/icinga2/conf.d/hosts.conf back to it's previous default form and restart the service, the Backend state is back to normal.


    I am running Debian 8 (jessie) with icinga r2.6.0-1


    Is that problem known to any of you?
    Thank you in advance!

  • Did you try to validate the configuration before you restart the daemon?


    You can execute the following command before a restart, to validate it:


    icinga2 daemon -C

  • Did you try to validate the configuration before you restart the daemon?


    You can execute the following command before a restart, to validate it:


    icinga2 daemon -C

    Thanks for that one, was very useful. A classic newbie mistake - I used to write code with this form:


    object Host "localhost"
    {
    code
    }


    instead of this:


    object Host "localhost" {
    code
    }


    and it appeared to be the problem. Thank you and @dnsmichi as well!