Skip to main content

Hi,

Since update 24.10, macros are not correctly interpreted by centengine.

  • 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.

My environnment :

OS : Debian GNU/Linux 12 (bookworm)

package version : 

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]

 

Hi @Pascal , if I understand correctly you have something like:

 

A host inherit from “Host Template 1 (macro A)” which inherit from “Host Template 2 (macro B)” and macro B can’t be resolved for your host?


Hi  @Laurent 

I have one host :

  • Macro A
  • Host Template 1
    • Macro B
    • Macro C from a parent host template
  • Host Template 2
    • Macro D

Macros A, B and C work fine

Macro D is not interpreted

Command executed do not include Macro D and failed due to missing value.


Est-ce que tous ce qui sont en debian 12 on se problème ? Car ça fait peur, tout de même 🥺


🔮


I have the same problem on debian 12, after some testing, it seems that if the value of a macro is inherited from a template, it doesn’t get applied. If I clear the value of the macro in the template, and define it in the host or service, then it gets applied.

 

 


same problem in RHEL 8 : https://github.com/centreon/centreon/issues/5629

for the first LTS, it's reassuring... or otherwise, it just means that we have more time to resolve problems :D

 


Hi 

Same problem for me on debian 12

  • After an upgrade Debian 12 / Centreon 24.04 to Debian 12 / Centreon 24.10
  • On a clean install Debian 12 / Centreon 24.10

Have no time for now to open a ticket and these implementations are only for test/personal use.

But for now, 24.10 (Debian or other) can’t be considered as safe for production (for me).


Hi all, a hotfix will arrive soon (today or tomorrow) to fix this.

Sorry for the inconvenience


Yes,

Perfect, it is better with the centreon collect 24.10.1 already available in the repository.


Hi @Pascal, Centreon Collect 24.10.1 released!


Hi @Pascal, Centreon Collect 24.10.1 released!

 

😍🥰🥳


Reply