[ZBX-21638] Smart plugin in zabbix agent 2 not working (Gentoo) Created: 2022 Sep 12  Updated: 2024 Apr 10  Resolved: 2024 Feb 19

Status: Closed
Project: ZABBIX BUGS AND ISSUES
Component/s: Agent2 plugin (G)
Affects Version/s: 6.2.1
Fix Version/s: None

Type: Incident report Priority: Trivial
Reporter: Michael Assignee: Zabbix Integration Team
Resolution: Known Error Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Attachments: PNG File image-2022-09-12-17-01-29-705.png     PNG File image-2022-09-12-17-03-00-309.png     PNG File image-2022-09-12-17-04-58-034.png     PNG File image-2022-09-12-17-06-40-388.png    
Team: Team INT

 Description   

Steps to reproduce:

  1. Updated zabbix from version 6.0 to version 6.2.1.
  2. Installed smarttools version 7.3
  3. Added template smart by zabbix agent 2

Result:
An error occurs while testing

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

Command result on host

zabbix_agent2 -t smart.disk.get

 
Unable to render embedded object: File (469ba8da-8901-4fa3-831c-a9e7dbb6a3cf) not found.
Unable to render embedded object: File (81ebd989-183a-497a-801d-f43f5e2190ce) not found.
 



 Comments   
Comment by Michael [ 2022 Sep 12 ]

added link
ln -s /usr/sbin/smartctl /usr/local/bin/smartctl

and added to the /etc/sudoers file the lines
Defaults:zabbix !requiretty
zabbix ALL=(ALL) NOPASSWD:/usr/sbin/smartctl

This solved my problem

 

Comment by Denis Rasikhov [ 2024 Feb 19 ]

Documentation about access rights has been updated in ZBX-21484.

Generated at Mon Apr 28 09:57:40 EEST 2025 using Jira 9.12.4#9120004-sha1:625303b708afdb767e17cb2838290c41888e9ff0.