...
Log on to the affected site
Code Block language bash theme RDark su - mysite
navigate to ~/var/check_mk/core
Code Block language bash theme RDark OMD[mysite]:~$ cd ~/var/check_mk/core/
here you will find all the "state" files
Code Block language bash theme RDark OMD[mysite]:~/var/check_mk/core$ ls archive/ helper_config/ state.1 state.5 state.9 autochecks/ history state.2 state.6 config state state.3 state.7 discovered_host_labels/ state-version-7 state.4 state.8
The cmc is using always the file "state"
Now rename the "state" file to state.(number)
Warning BE AWARE: all ad hoc Downtimes + Acknowledgements + Comments are gone, but you can restore the old state file later.
The state is creating every 10 minutes or after changes in the GUI.
A backup is created when the new file is 5% smaller than the old one. Checkmk will save 30 state files and the rewrite then overwrite the old ones.
Code Block language bash theme RDark OMD[mysite]:~/var/check_mk/core$ mv state state.10
The number depends on how many state.(number) files you already have.
You can either restart the whole site with
Code Block language bash theme RDark OMD[mysite]:~ omd restart
or do
Code Block language bash theme RDark cmk -O
Now a new "state" file is created!
...