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

    Details

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

      Description

      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

        Attachments

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

          Activity

            People

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

              Dates

              Created:
              Updated: