I recently got new server with SATA hard drives and I found that cpanel smartcheck script is not working with SATA drives. However SMARTD itself is working with that drives and it just need to use additional parameter "-d ata"
So after I edited cpanel smartcheck script /scripts/smartcheck it started to work properly with my drives.
All you need to edit this part:
As you can see I just added there "-d ata" in the start of each parameter line and it worked properly for me.
So I think CPanel should add this feature to their script and check whether hard drive is SATA or SCSI and add proper parameters for SMARTD command then.
So after I edited cpanel smartcheck script /scripts/smartcheck it started to work properly with my drives.
All you need to edit this part:
PHP:
my %smart = (
'url' => 'http://smartmontools.sourceforge.net/',
'version_cmd' => '-V',
'version_rgx' => 'smartctl version ',
'2.1' => {
'smart_enabled_cmd' => '-d ata -i',
'smart_enabled_rgx' => 'Drive supports S.M.A.R.T. and is enabled',
'errors_only' => '-d ata -l',
'ok_drive_rgx' => [qw(/sd /hd)],
},
'5.32' => {
'smart_enabled_cmd' => '-d ata -i',
'smart_enabled_rgx' => 'SMART support is: Enabled',
'errors_only' => '-d ata -q errorsonly -H -l selftest -l error',
'ok_drive_rgx' => [qw(/sd /hd)],
},
);
So I think CPanel should add this feature to their script and check whether hard drive is SATA or SCSI and add proper parameters for SMARTD command then.