Trial Version - Exceeded host accidentally and now can't undo the changes or remove hosts

CMK version: 240p3
OS version: SLES CheckMK Running on Docker

**Error message: An error occurred: Error creating configuration: Trial peroid ended: ‘Activate changes’ is blocked
Your trial period has ended, and your license state is automatically converted to ‘Free’. In this license state, your maximum total service limit is 750 which you exceed with 935 services. Until your reduce the number of services, ‘Activate changes’ is blocked.
If you want to use Checkmk with all configured services, please enter the license details or purchase a license.

What happened?
We accidentally activated an incorrect regular expression when setting up autodiscovery, which then created an extremely large number of hosts. We exceeded the host limit of the trial version in just a few seconds. Now we can’t get out of the problem because we can’t delete any hosts and we can’t reset the changes.

How can we fix this so that we can continue testing our setup without having to reconfigure everything?

Translated with DeepL.com (free version)

First you can go inside your site to the folder ~/var/check_mk/autochecks/
There inside are files for every host with the discovered services.
Remove the lines you don’t want.
Then do a “cmk --debug -vvU” to generate a new config.
This should be possible if you reduced the services under the 750 limit.

After the activation of the new config you should go to your wrong configured rules and fix them before you do any new discoveries.

2 Likes