Director template inheritance loop – “Loop detected: check_vm_memory.sh → check_vm_memory.sh” + PHP timeout

this can happen if you store a template and accidentally reference the template as an import

you can fix that manually using some database tool or plain sql.
like here Icinga2 director loop

so what is it mysql or postgre?