Uploaded image for project: 'ZABBIX FEATURE REQUESTS'
  1. ZABBIX FEATURE REQUESTS
  2. ZBXNEXT-5917

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

XMLWordPrintable

    • Icon: Change Request Change Request
    • Resolution: Unresolved
    • Icon: Trivial Trivial
    • None
    • 5.0.0beta2
    • 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

            vso Vladislavs Sokurenko
            api Anton Petukov
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: