Ad Widget

Collapse

How to compile standard external plugin "full"

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Gutsycat
    Member
    • Nov 2017
    • 72

    #1

    How to compile standard external plugin "full"


    Hello, I've tried to compile basic plugin from path
    Code:
    /zabbix-6.0.5/src/go/plugins/debug/external/full
    I did it standard way using
    Code:
    $ go build main.go
    The error I got:
    Code:
    # command-line-arguments
    ./main.go:29:33: undefined: impl
    ./main.go:34:2: undefined: impl
    No any word about how to compile here:
    Last edited by Gutsycat; 23-08-2022, 10:34. Reason: translate to english
  • dimir
    Zabbix developer
    • Apr 2011
    • 1080

    #2
    Sorry, we are still working on the instructions to build external plugins. But this should work:

    Code:
    go mod init myip
    go get git.zabbix.com/ap/[email protected]
    go mod tidy
    go build
    And tell the agent about the new module (ensure the etc/zabbix_agent2.d/plugins.d directory is correct):

    Code:
    echo 'Plugins.DebugFull.System.Path=/<FULL_PATH>/zabbix-6.0.5/src/go/plugins/debug/external/full/full' sudo tee etc/zabbix_agent2.d/plugins.d/full.conf​

    Comment

    Working...