Thanks for the answer. I took your advice and understood how it works.
But I ran into some problem (possibly a bug). Agent 2 version - 5.2.5, OS - Windows 10
If I use the smartctl disk listing command on the local machine, I get this result:
If you make a request with a module command via zabbix_get, the result is different:
But he may be like that:
As you can see, the names of the disks change, it happens that they are mixed with each other. As a result, the following errors appear in the data items:
In the above example, there are only two hard drives, the third item is CD-ROM Drive. The smartctl utility does not always display smart information for both types of drive names.
In the example described, there are only two hard drives, the third item is CD-ROM Drive. The smartctl utility does not always display smart information for both types of drive names. I faced this problem before the release of the module for zabbix2, when I tried to do disk polling using smartmontools myself. In smartmontool, you can specify the media type when listing drives, for example:
But on computers that display multiple drive name formats, you need to manually check for the correct one. Until now, I have not been able to understand by what sign or parameter they can be determined automatically.