I have the same issue.
All macros defined in the first host template link to the host work correctly.
Macros defined directly to the host is taken into account too.
But every macros defined in the next host template does not work.
centreon-auto-discovery-server/bookworm,now 24.10.0-1+deb12u1 all linstalled,automatic]
centreon-broker-cbd/bookworm,now 24.10.0-1+deb12u1 amd64 4installed,automatic]
centreon-broker-cbmod/bookworm,now 24.10.0-1+deb12u1 amd64 4installed,automatic]
centreon-broker-core/bookworm,now 24.10.0-1+deb12u1 amd64 4installed,automatic]
centreon-broker/bookworm,now 24.10.0-1+deb12u1 amd64 4installed,automatic]
centreon-central/bookworm,now 24.10.0-1+deb12u1 all linstalled,automatic]
centreon-clib/bookworm,now 24.10.0-1+deb12u1 amd64 4installed,automatic]
centreon-common/bookworm,now 24.10.0-1+deb12u1 all linstalled,automatic]
centreon-connector-perl/bookworm,now 24.10.0-1+deb12u1 amd64 4installed,automatic]
centreon-connector-ssh/bookworm,now 24.10.0-1+deb12u1 amd64 4installed,automatic]
centreon-connector/bookworm,now 24.10.0-1+deb12u1 amd64 4installed,automatic]
centreon-engine-daemon/bookworm,now 24.10.0-1+deb12u1 amd64 4installed,automatic]
centreon-engine-opentelemetry/bookworm,now 24.10.0-1+deb12u1 amd64 4installed,automatic]
centreon-engine/bookworm,now 24.10.0-1+deb12u1 amd64 4installed,automatic]
centreon-gorgone-centreon-config/bookworm,now 24.10.0-1+deb12u1 all linstalled,automatic]
centreon-gorgone/bookworm,now 24.10.0-1+deb12u1 all linstalled,automatic]
centreon-it-edition-extensions/bookworm,now 24.10.0-1+deb12u1 all linstalled,automatic]
centreon-license-manager-common/bookworm,now 24.10.0-1+deb12u1 all linstalled,automatic]
centreon-license-manager/bookworm,now 24.10.0-1+deb12u1 all linstalled,automatic]
centreon-mariadb/bookworm,now 24.10.0-1+deb12u1 all linstalled]
centreon-open-tickets/bookworm,now 24.10.0-1+deb12u1 all linstalled]
centreon-perl-libs/bookworm,now 24.10.0-1+deb12u1 all linstalled,automatic]
centreon-plugin-applications-databases-mysql/bookworm,now 20241010-1+deb12u1 all linstalled,automatic]
centreon-plugin-applications-gorgone-restapi/bookworm,now 20241010-1+deb12u1 all linstalled]
centreon-plugin-applications-monitoring-centreon-central/bookworm,now 20241010-1+deb12u1 all linstalled,automatic]
centreon-plugin-applications-monitoring-centreon-database/bookworm,now 20241010-1+deb12u1 all linstalled,automatic]
centreon-plugin-applications-monitoring-centreon-map4-jmx/bookworm,now 20241010-1+deb12u1 all linstalled,automatic]
centreon-plugin-applications-monitoring-centreon-poller/bookworm,now 20241010-1+deb12u1 all linstalled,automatic]
centreon-plugin-applications-monitoring-centreon-sql-metrics/bookworm,now 20241010-1+deb12u1 all linstalled]
centreon-plugin-applications-openldap-ldap/bookworm,now 20241010-1+deb12u1 all linstalled]
centreon-plugin-applications-protocol-dns/bookworm,now 20241010-1+deb12u1 all linstalled,automatic]
centreon-plugin-applications-protocol-ftp/bookworm,now 20241010-1+deb12u1 all linstalled,automatic]
centreon-plugin-applications-protocol-http/bookworm,now 20241010-1+deb12u1 all linstalled,automatic]
centreon-plugin-applications-protocol-imap/bookworm,now 20241010-1+deb12u1 all linstalled]
centreon-plugin-applications-protocol-ldap/bookworm,now 20241010-1+deb12u1 all linstalled]
centreon-plugin-applications-protocol-radius/bookworm,now 20241010-1+deb12u1 all linstalled]
centreon-plugin-applications-protocol-smtp/bookworm,now 20241010-1+deb12u1 all linstalled]
centreon-plugin-applications-protocol-snmp/bookworm,now 20241010-1+deb12u1 all linstalled]
centreon-plugin-applications-protocol-ssh/bookworm,now 20241010-1+deb12u1 all linstalled]
centreon-plugin-applications-protocol-x509/bookworm,now 20241010-1+deb12u1 all linstalled]
centreon-plugin-applications-webservers-nginx-serverstatus/bookworm,now 20241010-1+deb12u1 all linstalled]
centreon-plugin-cloud-prometheus-api/bookworm,now 20241010-1+deb12u1 all linstalled]
centreon-plugin-hardware-printers-generic-snmp/bookworm,now 20241010-1+deb12u1 all linstalled,automatic]
centreon-plugin-hardware-storage-synology-snmp/bookworm,now 20241010-1+deb12u1 all linstalled]
centreon-plugin-hardware-ups-standard-rfc1628-snmp/bookworm,now 20241010-1+deb12u1 all linstalled,automatic]
centreon-plugin-network-cisco-standard-snmp/bookworm,now 20241010-1+deb12u1 all linstalled,automatic]
centreon-plugin-network-firewalls-pfsense-snmp/bookworm,now 20241010-1+deb12u1 all linstalled]
centreon-plugin-operatingsystems-linux-snmp/bookworm,now 20241010-1+deb12u1 all linstalled,automatic]
centreon-plugin-operatingsystems-windows-restapi/bookworm,now 20241010-1+deb12u1 all linstalled]
centreon-plugin-operatingsystems-windows-snmp/bookworm,now 20241010-1+deb12u1 all linstalled,automatic]
centreon-plugin-virtualization-vmware-daemon/bookworm,now 3.3.2-1+deb12u1 all linstalled]
centreon-plugin-virtualization-vmware2-connector-plugin/bookworm,now 20241010-1+deb12u1 all linstalled]
centreon-poller/bookworm,now 24.10.0-1+deb12u1 all linstalled,automatic]
centreon-pp-manager/bookworm,now 24.10.0-1+deb12u1 all linstalled,automatic]
centreon-trap/bookworm,now 24.10.0-1+deb12u1 all linstalled,automatic]
centreon-web/bookworm,now 24.10.0-1+deb12u1 all linstalled,automatic]
centreon/bookworm,now 24.10.0-1+deb12u1 all linstalled]