Custom check not getting executed - permanent staying as pending

Hi,

has anyone solution/explanation to this issue? I also tried to write custom plugin for checking directory size with inventory function. Services are inventorized when doing service discovery, but after Activation changes, check are always pending.
image