........S. [ZBX-8143] renamed structure definition; replaced trigger allocation with a stack variable; removed explicit dynamic sql string allocation; added event processing