After install some packages, the icinga satellite isn’t be able to begin the monitoring, the logs show me this error:
critical/ApiListener: Config validation failed for staged cluster config sync in ‘/var/lib/icinga2/api/zones-stage/’. Aborting. Logs: ‘/var/lib/icinga2/api//zones-stage-startup-last-failed.log’
and if I check the log…
information/cli: Icinga application loader (version: r2.14.0-1)
information/cli: Loading configuration file(s).
critical/config: Error: Constant must not be modified.
I can’t find if some of this packages, would be broke some configuration, if I got back before the installation of the packages, icinga2 works well
Maybe look inside one of those a check your config files. Maybe it is in /etc/icinga2/constants.conf or some file under /etc/icinga2/features-enabled or even in some config that get synced from the master.
It’s the whole log that I have, just these 4 lines, I checked the constants.conf and features-enabled vs a node that it’s running well, but I don’t have difference between them
As it is a satellite it might be some configuration that is located on the master.
Check in the /etc/icinga2/zones.d/ folder. Look in the zone that the satellite is part of and check the configs there.
Hi all, Icinga 2 is not complaining about a read-only attribute being set, rather about a constant being modified later on. E.g. there is a constant NodeName in your constants.conf file, you can’t set this constant later elsewhere by doing something like: NodeName = "Fooo".
critical/ApiListener: Config validation failed for staged cluster config sync in ‘/var/lib/icinga2/api/zones-stage/’. Aborting. Logs: ‘/var/lib/icinga2/api//zones-stage-startup-last-failed.log’
In this startup log must be a full path to and the name of the constant being set illegally, i.e. something like this. Then it should be easy to locate and fix the error by yourself.
[2023-07-31 10:10:02 +0000] critical/config: Error: Constant must not be modified.
Location: in /etc/icinga2/zones.d/master/test-services.conf: 123:1-123:17
/etc/icinga2/zones.d/master/test-services.conf(121): }
/etc/icinga2/zones.d/master/test-services.conf(122):
/etc/icinga2/zones.d/master/test-services.conf(123): FooBar = "FooBar"
^^^^^^^^^^^^^^^^^