Icinga2 director loop

Loop detected: nvidia → nvidia (TemplateTree.php:225)
using director
cannot deploy someone can help ??

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

Copyright (c) 2012-2024 Icinga GmbH (https://icinga.com/)
License GPLv2+: GNU GPL version 2 or later https://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: Ubuntu
Platform version: 22.04.4 LTS (Jammy Jellyfish)
Kernel: Linux
Kernel version: 5.15.0-113-generic
Architecture: x86_64

Build information:
Compiler: GNU 11.4.0
Build host: runner-hh8q3bz2-project-575-concurrent-0
OpenSSL version: OpenSSL 3.0.2 15 Mar 2022

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

Screenshot 2024-07-01 171034

your service template tries to import itself.
you can fix that by reverting steps in the activity log or fixing the database manually

Hi
I tried to revert but still same error
I do not have an id error so i do not know what to remove from the database???

it is very similar to the host inheritance problem.
what’s the output from this query?:

SELECT * FROM icinga_service_inheritance where service_id = parent_service_id

2 Likes

MariaDB [director]> SELECT * FROM icinga_service_inheritance where service_id = parent_service_id;
±-----------±------------------±-------+
| service_id | parent_service_id | weight |
±-----------±------------------±-------+
| 1324 | 1324 | 1 |
±-----------±------------------±-------+
1 row in set (0.001 sec)

thanks you are an angel
this do the trick :grin::pray:
DELETE FROM icinga_service_inheritance where service_id =1324;

1 Like