[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: |
![]() ![]() |
Team: | |
Sprint: | Support backlog |
Story Points: | 2 |
Description |
Steps to reproduce:
.\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 ] |
"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: 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 ] |
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 ] |
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.
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:
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:
Leave "as is" - not an adequate option. |
Comment by Edgar Akhmetshin [ 2023 Dec 06 ] |
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:
|