If you do some unlucky misconfiguration (like setting disabled services forall services instead of just a few) then you will loose the current state anddowntimes of all affected objects - even if you recreate them later again.That is because from the point of view of the core vanished objects areexpected to be gone forever and their state is being dropped.
In such situations the CMC now automatically creates a copy state.1of you state file before creating a new one in its place. Previous backupsare shifted to state.2, state.3 and so an. Up to 30 backupsare being kept. These backup are never being restored automaticallyat any time. If you like to get back to your old state, you can copy thesefiles manually:
OMD[mysite]:~$ omd stop cmc OMD[mysite]:~$ cd var/check_mk/core OMD[mysite]:~$ mv state state.away OMD[mysite]:~$ cp state.1 state OMD[mysite]:~$ omd start cmc
This backup always happens if the size of the new state file is by at least 5%smaller then the old one.
Note: The state in this file contains the current OK/WARN/CRIT, the pluginoutput, the next scheduled check execution, notification, downtimes, commentsand stuff like that. It does not contain historic performance dataor events. But these do not get lost in the cases mentioned above.