[ZBX-23750] Plugins.Smart.Path is mandatory for Win and have to be defined with default SmartMonTools installation Created: 2023 Nov 26  Updated: 2025 Apr 14  Resolved: 2025 Apr 11

Status: Closed
Project: ZABBIX BUGS AND ISSUES
Component/s: Agent2 plugin (G)
Affects Version/s: 6.0.23
Fix Version/s: 6.0.40rc1, 7.0.12rc1, 7.2.6rc1, 7.4.0rc1 (master)

Type: Documentation task Priority: Trivial
Reporter: Taras Assignee: Stanislavs Jurgensons (Inactive)
Resolution: Fixed Votes: 1
Labels: agent, documentation, templates
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Windows 10/11/Server 2019


Attachments: PNG File Screenshot 2023-12-05 at 16.40.46.png     PNG File Screenshot 2023-12-05 at 16.40.58.png    
Team: Team INT
Sprint: Support backlog
Story Points: 2

 Description   

Steps to reproduce:

  1. Tried to add SMART monitoring for Windows hosts by adding template "SMART by Zabbix agent 2"
  2. Install last Zabbix agent 2 on host, install last smartmontools with defaults
  3. Try to check or monitor like this:
.\zabbix_get.exe -k smart.disk.get -s 127.0.0.1

Result:

ZBX_NOTSUPPORTED: Cannot fetch data: Failed to scan for devices: Cannot unmarshal JSON: invalid character '\'' looking for beginning of value..

Expected: Valid data

Extra info: Executing of

.\zabbix_agent2.exe -t smart.disk.get

 gives valid output.

 

According to Edgar`s comment, Plugins.Smart.Path is mandatory and have to be configured in plugin confiration file or specific environment for smartmontools (smartctl) have to be configured in system. There is no documented requirement for it in template or plugin description.



 Comments   
Comment by Taras [ 2023 Nov 26 ]

Link to comment from closed bugfix request - https://support.zabbix.com/browse/ZBX-23545?focusedId=871005&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-871005

Comment by Edgar Akhmetshin [ 2023 Nov 27 ]

According to Edgar`s comment, Plugins.Smart.Path is mandatory and have to be configured in plugin confiration file or specific environment for smartmontools (smartctl) have to be configured in system.

"ENV should be configured correctly for the user used to run Agent2, not for the local Windows Administrator." https://support.zabbix.com/browse/ZBX-23545?focusedId=871005&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-871005

If Zabbix Agent2 is not able to find application in default path for user used to run application - path should be set manually only in this case and options how to set this inside Agent 2 configuration are described:
https://www.zabbix.com/documentation/current/en/manual/appendix/config/zabbix_agent2_plugins/smart_plugin

Could you please clarify the problem?

Also please note - Windows administration topics about PATH settings are out of scope in terms of Zabbix product.

Comment by Taras [ 2023 Nov 27 ]

If Zabbix Agent2 is not able to find application in default path for user used to run application

 

Zabbix Agent 2 is not able to find "startctl" (default path) on default installation of last smartmontools version, undepending of user.

Smartmontools works just fine, and they would say "zabbix issues is not related to smartmontools". Internal windows env also works fine, so zabbix is not an microsoft-related problem.

No one will modify windows environment, just to use some new module if there is no requirement for it. Most zabbix admins just try, see it not working and forgot about it, switching to another smart monitoring solution.

 

idk, maybe you shoud watch some video on youtube, where zabbix smart moniting is just not working on new system with just smartmontools installed?

Comment by Taras [ 2023 Nov 27 ]

only in this case 

case, when you use windows?

Comment by Edgar Akhmetshin [ 2023 Dec 05 ]

Windows 11, official smartmontools downloaded and installed in a FULL mode on a test VM, path for the user and path for the system:

Zabbix Agent runs using 'Local system' user after default installation from MSI packages.

Smartmontools works just fine, and they would say "zabbix issues is not related to smartmontools". Internal windows env also works fine, so zabbix is not an microsoft-related problem.
No one will modify windows environment, just to use some new module if there is no requirement for it.

You want to execute short 'smartctl' with PATH set only for common user which is not used by daemon running under 'Local system'.

Comment by Taras [ 2023 Dec 05 ]

Edgar, no one configures PATH for 'Local system', as it is not required in any documentation/module.

Here is examples, where people just guess about this problem:

  1. x2 https://www.reddit.com/r/zabbix/comments/15xyqah/smart_with_docker_wsl_or_windows/
  2. x2 https://support.zabbix.com/browse/ZBX-20114
  3. x2 https://youtu.be/m5UNvQ93wNI?t=303
  4. me

So, at least 7 people also saw this problem and have to look for workaround/fix anywhere else, except zabbix documentation. IDK how much in real, or see their comments. So:

  • or PATH is mandatory for Windows (ZBX-23750)
  • or agent2/plugin have to be fixed (ZBX-23545)
  • or documentation have to be updated with adding literally required PATH for 'Local system', which is not added by-default.

Leave "as is" - not an adequate option.

Comment by Edgar Akhmetshin [ 2023 Dec 06 ]

Edgar, no one configures PATH for 'Local system', as it is not required in any documentation/module.

Sorry, but cannot agree with this. Just a lack of Windows/PATH configuration and unfortunately windows basics administration knowledge.

Confirmed, note should be added that system PATH should be configured or full path of the application should be used instead.

Comment by Stanislavs Jurgensons (Inactive) [ 2025 Feb 13 ]

Available in:

Generated at Fri May 02 07:28:45 EEST 2025 using Jira 9.12.4#9120004-sha1:625303b708afdb767e17cb2838290c41888e9ff0.