Hi all,
The Icinga2 version on the master is r2.14.0-1, and the version on the satellite is r2.11.2-1. I am experiencing a problem with my Icinga2 server; the configurations from the master won’t synchronize to the satellite anymore due to the error below. The system worked fine for a few months, but when I attempted to add another satellite to the system, I noticed that the configurations wouldn’t synchronize to the satellite.
Can you provide me with a hint on how to fix this error, please?
Note the hosts was run on the master use the same template and are fine!
Error.
[2023-11-10 16:51:29 -0600] critical/config: Error: Argument is not a callable object.
Location: in /var/lib/icinga2/api/zones-stage//wi-madison-imms/director/host_templates.conf: 1:6-1:45
/var/lib/icinga2/api/zones-stage//wi-madison-imms/director/host_templates.conf(1): if (! get_template(Host, “ga-camera-template”)) { template Host “ga-camera-template” {
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
/var/lib/icinga2/api/zones-stage//wi-madison-imms/director/host_templates.conf(2): import “camera_template”
/var/lib/icinga2/api/zones-stage//wi-madison-imms/director/host_templates.conf(3): import “dummy_template”
[2023-11-10 16:51:29 -0600] critical/cli: Config validation failed. Re-run with ‘icinga2 daemon -C’ after fixing the config.
root@imms2-ird-relay:/var/lib/icinga2# tail -f /var/log/icinga2/icinga2.log
[2023-11-10 16:51:28 -0600] information/ApiListener: Received configuration updates (11) from endpoint ‘imms2’ are different to production, triggering validation and reload.
[2023-11-10 16:51:29 -0600] critical/ApiListener: Config validation failed for staged cluster config sync in ‘/var/lib/icinga2/api/zones-stage/’. Aborting. Logs: ’