..F....... [ZBX-8366] ported code from trunk