-
Change Request
-
Resolution: Unresolved
-
Trivial
-
6.0.34rc1, 7.0.4rc1, 7.2.0alpha1
-
None
-
Debian Linux (bullseye)
Steps to reproduce:
- server with adaptec RAID controller Series 7 or LSI MegaRAID
- zabbix_agent2 default installation
- sudoers config for zabbix user to use smartctl
Result:
Because smartctl -scan do not detect aacraid devices (even with -d sat too), so I use basic /usr/local/sbin/smartctl wrapper which prints on "-scan" option required list of devices using json format:
{ "json_format_version": [ 1, 0 ], "smartctl": { "version": [ 7, 2 ], "svn_revision": "5155", "platform_info": "x86_64-linux-5.10.0-11-amd64", "build_info": "(local build)", "argv": [ "smartctl", "--scan", "-j" ], "exit_status": 0 }, "devices": [ { "name": "/dev/sda", "info_name": "/dev/sda", "type": "scsi", "protocol": "SCSI" }, { "name": "/dev/bus/0", "info_name": "/dev/bus/0 [adaptec_disk_02]", "type": "aacraid,0,0,2", "protocol": "SCSI" }, { "name": "/dev/bus/0", "info_name": "/dev/bus/0 [adaptec_disk_03]", "type": "aacraid,0,0,3", "protocol": "SCSI" } ] }
Pure "/usr/sbin/smartctl -d aacraid,0,0,2 -a /dev/bus/0" returns SMART information about disk.
Same with megaraid, but no wrapper is required.
but zabbix_get results empty array:
$ zabbix_get -s 127.0.0.1 -k'smart.disk.discovery'
[]
Expected:
list of drives as zabbix_get result