- Steps to reproduce the issue
- Have an existing Raw 2.3.0p29 installation which makes use of service times.
- Upgrade to Raw 2.4 beta.
- Actual behaviour
After the upgrade, the Nagios part of Checkmk will not start. Error message:
Reading configuration data...
Read main config file okay...
Processing object config directory '/omd/sites/home1/etc/nagios/conf.d'...
Processing object config file '/omd/sites/home1/etc/nagios/conf.d/templates.cfg'...
Processing object config file '/omd/sites/home1/etc/nagios/conf.d/check_mk_templates.cfg'...
Processing object config file '/omd/sites/home1/etc/nagios/conf.d/check_mk_objects.cfg'...
Error: Invalid host object directive 'service_period'.
Error: Could not add object property in file '/omd/sites/home1/etc/nagios/conf.d/check_mk_objects.cfg' on line 1687.
Error processing object config files!
***> One or more problems was encountered while processing the config files...
Check your configuration file(s) to ensure that they contain valid
directives and data defintions. If you are upgrading from a previous
version of Nagios, you should be aware that some variables/definitions
may have been removed or modified in this version. Make sure to read
the HTML documentation regarding the config files, as well as the
'Whats New' section to find out what has changed.
Starting apache...OK
Starting crontab...OK
Handled like this: Removed time periods from the Checkmk web interface and those rules which depended on it. As instance owner: Ran âcmk --updateâ. But now my time period based rules are gone, of course, and would need to be re-implemented (which I havenât tried yet).
Operating system: Debian 12.