........S. [ZBX-8415] fixed flags definition and comments
.......... [ZBX-8542] removed duplicate copy of 2.2 branch