Downtimes and omd restart


I’ve noticed that scheduled downtimes are not kept if omd is restarted. Do you know if there is a way to adjust this behavior ? With version 1.6 downtimes “survived” to omd restart.
Thanks for your help.

more details : when omd is started it indicates that 0 downtime was saved. How are saved the states when omd is stopped ?

cmc.log:2022-08-08 17:48:00 [5] [core 18907] loaded saved program state with 606 hosts, 539 services, 0 comments, and 0 downtimes in 1.95759 ms

that looks rather odd, never heard of such an issue, but maybe something with your cmc’s state file is wrong…

Do you see any other messages when a) creating the downtimes or b) during the core shutdown when doing an omd restart?

Also, what does “ls -lh ~/var/check_mk/core/” run by the omd user return? (please use the code section ;))

Please find below the result of the ls command :

OMD[uat2]:~/var/check_mk/core$ ls -lh ~/var/check_mk/core/
total 6.7M
drwxr-x--- 2 uat2 uat2   58 Aug  7 00:00 archive/
-rw-rw---- 1 uat2 uat2 802K Aug  8 18:06 config.pb
drwxr-x--- 3 uat2 uat2   48 Aug  8 18:07 helper_config/
-rw-rw---- 1 uat2 uat2 4.8M Aug  9 08:58 history
-rw-rw---- 1 uat2 uat2 714K Aug  9 08:56 state.pb