[ZBXNEXT-9686] Improve handling of sudo errors in SMART plugin. Created: 2024 Dec 17 Updated: 2025 Jan 16 Resolved: 2025 Jan 16 |
|
Status: | Closed |
Project: | ZABBIX FEATURE REQUESTS |
Component/s: | Agent2 plugin (G) |
Affects Version/s: | None |
Fix Version/s: | 7.0.9rc1, 7.2.3rc1, 7.4.0alpha1 |
Type: | Change Request | Priority: | Trivial |
Reporter: | Pavel | Assignee: | Eriks Sneiders |
Resolution: | Fixed | Votes: | 0 |
Labels: | None | ||
Remaining Estimate: | Not Specified | ||
Time Spent: | Not Specified | ||
Original Estimate: | Not Specified |
Team: | |
Sprint: | Sprint candidates |
Story Points: | 1 |
Description |
The current plugin code already can detect outdated versions of the smartctl program. I suggest improving this practice and signaling the lack of sudo configuration.
sudo: a password is required But Smart Plugin return json parse error: Cannot fetch data.: failed to scan for devices: Cannot unmarshal JSON.: invalid character 's' looking for beginning of value.
This creates a problem for administrators unfamiliar with the specific agent errors. |
Comments |
Comment by Eriks Sneiders [ 2025 Jan 15 ] |
Fixed in
|