Unable to load object referenced from service "", failed to load icinga_command

Hello,
I have new installed:

icinga2 --version
icinga2 - The Icinga 2 network monitoring daemon (version: r2.10.3-1)

Copyright (c) 2012-2021 Icinga GmbH (https://icinga.com/)
License GPLv2+: GNU GPL version 2 or later http://gnu.org/licenses/gpl2.html
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

System information:
Platform: Debian GNU/Linux
Platform version: 10 (buster)
Kernel: Linux
Kernel version: 4.19.0-16-amd64
Architecture: x86_64

Build information:
Compiler: GNU 8.3.0
Build host: anubis

Application information:

General paths:
Config directory: /etc/icinga2
Data directory: /var/lib/icinga2
Log directory: /var/log/icinga2
Cache directory: /var/cache/icinga2
Spool directory: /var/spool/icinga2
Run directory: /run/icinga2

Old paths (deprecated):
Installation root: /usr
Sysconf directory: /etc
Run directory (base): /run
Local state directory: /var

Internal paths:
Package data directory: /usr/share/icinga2
State path: /var/lib/icinga2/icinga2.state
Modified attributes path: /var/lib/icinga2/modified-attributes.conf
Objects path: /var/cache/icinga2/icinga2.debug
Vars path: /var/cache/icinga2/icinga2.vars
PID path: /run/icinga2/icinga2.pid

Director: master
reactbundle: 0.7.0
incubator. 0.6.0
ipl: v0.4.0

Now if I want to configure at Director a host template at “Check-Command” I get the error
“Unable to load object referenced from host “generic-host”, failed to load icinga_command “host” (IcingaObject.php:539)” during type “host…” instead of the possibilities.

The same error at service templates. Additional here I can’t choose several imports, because the popup doesn’t run.

Do you have some ideas, what there goes wrong?

Greetings
Andy

Hey Andy,
you are using a quite old version of icinga - it’s over 2 years old. It is recommended to use the official repos: Index of /debian

As you just installed Icinga I would recommend starting form scratch using the official version.

Kind regards

Hello Nexo1960,
really? I don’t believe it. I have 2 Icinga2 installed and both comes from

cat /etc/apt/sources.list.d/icinga.list
deb-src http://packages.icinga.com/debian icinga-buster main
and has these installed packages:

dpkg -l | grep icinga

ii icinga2 2.10.3-2+deb10u1 amd64 host and network monitoring system
ii icinga2-bin 2.10.3-2+deb10u1 amd64 host and network monitoring system - daemon
ii icinga2-common 2.10.3-2+deb10u1 all host and network monitoring system - common files
ii icinga2-doc 2.10.3-2+deb10u1 all host and network monitoring system - documentation
ii icinga2-ido-mysql 2.10.3-2+deb10u1 amd64 host and network monitoring system - MySQL support
ii icingacli 2.6.2-3+deb10u1 all simple CLI tool for Icingaweb2 and its modules
ii icingaweb2 2.6.2-3+deb10u1 all simple and responsive web interface for Icinga
ii icingaweb2-common 2.6.2-3+deb10u1 all simple and responsive web interface for Icinga - common files
ii icingaweb2-module-doc 2.6.2-3+deb10u1 all simple and responsive web interface for Icinga - documentation module
ii icingaweb2-module-monitoring 2.6.2-3+deb10u1 all simple and responsive web interface for Icinga - monitoring module
ii php-icinga 2.6.2-3+deb10u1 all PHP library to communicate with and use Icinga
ii vim-icinga2 2.10.3-2+deb10u1 all syntax highlighting for Icinga 2 config files in VIM
The first of the both doesn’t this described problem, only the second installed.

Best regardy
Andy

The latest version of Icinga is 2.12.3:

I am not sure why you have such an old version, as Debian Buster is officially supported.

But this doesn’t explain the error on the second icinga2 server. I don’t believe your arguments, that’s another reason. Especially when the first with same packages runs well.

After a night, suddenly tomorrow it is running well. The commands and imports will be shown in pulldown lists.
I don’t known the reasons for this behavior.

Second point of @nexo1960 of suggested link to the Icinga repository for Debian Linux
https://icinga.com/docs/icinga-2/latest/doc/02-installation/
I expect to find there latest stable running Icinga version not the same as the official Debian repository.