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

Agent2 with MsSQL plugin crashing if username macro is empty

XMLWordPrintable

      Agent2 with MsSQL plugin crashing if username macro is empty.

      Steps to reproduce:

      1. Have a host with "MSSQL by Zabbix agent 2" template attached
      2. Fill 'URI', 'PASSWORD' macros and 'USER' macro leave blank
      3. Start server
      4. Start agent2
      5. Go to host 'Items' and select all items on the page
      6. Press 'Execute now' button

      Result:

      panic: Plugin exited unexpectedly: exit status 2.
      
      goroutine 47 [running]:
      golang.zabbix.com/agent2/plugins/external.(*Plugin).Configure.func1()
          /DEV-4581-7.5/src/go/plugins/external/plugin.go:332 +0x45
      created by golang.zabbix.com/agent2/plugins/external.(*Plugin).Configure in goroutine 55
         /DEV-4581-7.5/src/go/plugins/external/plugin.go:326 +0x78
      

            zabbix.dev Zabbix Development Team
            azazuks Andrejs Zazuks
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: