In each plugin, we have the same multiline validation of incoming parameters: some parameter must be present and not equal to nil. The good thing is to make the wrapper who takes on the boring job.
Attached files are a prototype of the wrapper and an example implementation (support for native golang DNS checking for agent2).
The template is parsed during initialization once for each unique set of parameters. At the beginning of each Export function call, incoming parameters are checked.
Errors identified globally: ZBXNEXT-5916