Uploaded image for project: 'ZABBIX BUGS AND ISSUES'
  1. ZABBIX BUGS AND ISSUES
  2. ZBX-23540

Zabbix agent 2 does not fail on duplicate built-in plugin initialization

XMLWordPrintable

    • 0.5

      Steps to reproduce:

      1. Add a duplicate internal plugin in Zabbix agent 2
        1. easiest way just copy any register metric in any plugin init function
      func init() {    plugin.RegisterMetrics(&impl, pluginName, metrics.List()...)    plugin.RegisterMetrics(&impl, pluginName, metrics.List()...)} 
      1. Start Zabbix agent 2

      Result:

      Zabbix agent 2 starts with the duplicate plugin silently failing.

      Expected:
      Zabbix agent 2 used to fall in panic, currently only loadable plugins panic.

            rzvejs Rudolfs Zvejs
            esneiders Eriks Sneiders
            Team INT
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: