Add a wrapper to validate plugin input params (zabbix_agent2).

XMLWordPrintable

    • Type: Change Request
    • Resolution: Unresolved
    • Priority: Trivial
    • None
    • Affects Version/s: 5.0.0beta2
    • Component/s: Agent (G)

      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

        1. dns_unix.go
          6 kB
          Anton Petukov
        2. params.go
          3 kB
          Anton Petukov

            Assignee:
            Vladislavs Sokurenko
            Reporter:
            Anton Petukov
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: