Zabbix Agent 2 crashes when using ember.get key with / path

XMLWordPrintable

    • 0.5

      Zabbix Agent 2 crashes when using ember.get key with / path.

      Steps to reproduce:
      1. Install Zabbix Agent 2 with EmberPlus plugin enabled.

      Browse Zabbix Agent 2 Plugins / Ember Plus - ZABBIX GIT

      2. On the Zabbix frontend, create an item of type “Zabbix agent” or “Zabbix agent (active)” with key with /, f.e.: ember.get[127.0.0.1:9998,/]

      3. Start Agent2.

      4. Observe the agent log.

      Result:

      The Agent2 crashes with:

      * panic: Plugin exited unexpectedly: exit status 2.
      * 
      * goroutine 69 [running]:
      * golang.zabbix.com/agent2/plugins/external.(*Plugin).Configure.func1()
      *     C:/Users/ZABBIX/build-agents-dev-windows-amd64/zabbix-8.0.0alpha2/src/go/plugins/external/plugin.go:332 +0x48
      * created by golang.zabbix.com/agent2/plugins/external.(*Plugin).Configure in goroutine 40
      *     C:/Users/ZABBIX/build-agents-dev-windows-amd64/zabbix-8.0.0alpha2/src/go/plugins/external/plugin.go:326 +0x78
      

      Expected:
      The item should be marked as unsupported, but without crashing the agent process.

            Assignee:
            Eriks Sneiders
            Reporter:
            Juliana Iljina
            Team INT
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - Not Specified
                Not Specified
                Logged:
                Time Spent - 3h
                3h