CheckMK server hanging when running du because of folder containing huge amount of entries

Hey Everyone,

We do have a distributed setup and our main server (called monitor) is frequently hanging when du (launched by monitor user) process is launched because of “/opt/omd/sites/monitor/var/check_mk/site_configs/”

Can we clean that directory ?

Regards,

Vincent

Do you have so many changes in your distributed setup? After some time without changes this folder should be empty.
The cronjob “diskspace” should cleanup this folder one time per hour.

We do have frequent changes but the thing that really changed recently are local scripts so we took some actions there.

FYI, this is our support case : SUP-29509. We cleaned the folder and kept only the last 2 days and it solved the issue instantly.