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

Smart plugin in zabbix agent 2 not working (Windows)

    XMLWordPrintable

Details

    • Incident report
    • Status: Elaborating
    • Trivial
    • Resolution: Unresolved
    • 5.4.6
    • Agent2 plugin (N)
    • None
    • Host: Windows 10 or Windows Server 2019. Smartmontools 7.2. Zabbix agent 2 5.2.7 or 5.4.3.
      Zabbix server: 5.2.7 or 5.4.3

    Description

      Steps to reproduce:

      1. Install zabbix agent 2 (tested on 5.2.7 and 5.4.3) on target Windows 10 or Windows server 2019 host.
      2. Install smartmontools latest version.
      3. Add host to zabbix with template smart by zabbix agent 2 (or smart by zabbix agent 2 active).
      4. Wait for item update.

      Result:
      Items related to smart monitoring show error:
      > Failed to scan for devices: Cannot unmarshal JSON: invalid character '\u00ad' after top-level value..
       
      Manually added test item "system.run[C:\zabbix\smartmontools\bin\smartctl.exe --scan-open]" returns correct result:
      > /dev/sda -d nvme # /dev/sda, NVMe device
       
      Manually running smartctl.exe from command line also return correct results.
       
      So it is not a permission problem. Tests show that there is no difference if smartmontools installed to default path (C:\Program Files\smartmontools) or to any other directory.
       
      Side problem: smartmontools not adding itself into PATH (despite it has default-on option in installer). After adding smartctl to PATH manually, error changes to:

      • Smartctl failed to get device data: unknown error from smartctl.

      Expected:
      Working smart monitoring.
       

      Attachments

        Activity

          People

            esneiders Eriks Sneiders
            vy.nikitchenko Василий Никитченко
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated: