[ZBX-21665] SMART plugin incorrectly detects SAT device as RAID and goes to infinite loop Created: 2022 Sep 16  Updated: 2024 Oct 15  Resolved: 2023 Jan 23

Status: Closed
Project: ZABBIX BUGS AND ISSUES
Component/s: Agent2 plugin (G)
Affects Version/s: 6.0.8
Fix Version/s: 5.0.31rc1, 6.0.13rc1, 6.2.7rc1, 6.4.0beta6, 6.4 (plan)

Type: Problem report Priority: Trivial
Reporter: Oleg Gawriloff Assignee: Eriks Sneiders
Resolution: Fixed Votes: 1
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Attachments: Text File 1.txt    
Issue Links:
Duplicate
Team: Team INT
Sprint: Sprint 95 (Dec 2022), Sprint 96 (Jan 2023)
Story Points: 1

 Description   

We have Windows 2019 server with latest smartmontools installed.
On this server following disk configuration (as reported by smartctl):
C:\Program Files\smartmontools\bin>smartctl.exe --scan
/dev/sda -d sat # /dev/sda [SAT], ATA device
/dev/sdb -d scsi # /dev/sdb, SCSI device
/dev/csmi0,0 -d ata # /dev/csmi0,0, ATA device
/dev/csmi0,2 -d ata # /dev/csmi0,2, ATA device
/dev/csmi0,3 -d ata # /dev/csmi0,3, ATA device

sda is ordinary disk, sdb - BIOS FakeRAID massive, csmi0,0,0,2 and 0,3 raid disks.
When running
zabbix_agent2 -c c:\zabbix\conf\zabbix_agent2.conf -t smart.disk.get -v > 1.1
we see that agent2 goes to infinite loop by probing all type of raids and number for sda dispite the fact that error code is returned.
Similar problem described in russian here:
https://www.zabbix.com/forum/in-russian/437582-zabbix-agent-2-smart-plugin-windows

log attached.



 Comments   
Comment by Eriks Sneiders [ 2023 Jan 12 ]

Fixed in:

Generated at Mon Apr 28 10:03:54 EEST 2025 using Jira 9.12.4#9120004-sha1:625303b708afdb767e17cb2838290c41888e9ff0.