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

Details

    • Team INT
    • 0.5

    Description

      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.

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: