Custom check not getting executed - permanent staying as pending

I found the solution. After activating changes, I logged in as site user on server and run cmk -R. I don’t know why, but after that custom plugin started to work. 1.6.0p11 Enterprise.
image