Use -x (extended all) option for generation of SMART reports

This commit is contained in:
bergware
2018-01-04 19:14:42 +01:00
parent ec7871d4bc
commit 048e1c2a60
2 changed files with 2 additions and 2 deletions

View File

@@ -150,7 +150,7 @@ case "identify":
}
break;
case "save":
exec("smartctl -a $type ".escapeshellarg("/dev/$port")." >".escapeshellarg("$docroot/{$_POST['file']}"));
exec("smartctl -x $type ".escapeshellarg("/dev/$port")." >".escapeshellarg("$docroot/{$_POST['file']}"));
break;
case "delete":
if (strpos(realpath("/var/tmp/{$_POST['file']}"), "/var/tmp/") === 0) {

View File

@@ -193,7 +193,7 @@ foreach ($devices as $device) {
}
}
$port = port_name($port);
exec("smartctl -a $type ".escapeshellarg("/dev/$port")." 2>/dev/null|todos >".escapeshellarg("/$diag/smart/$name-$date $diskName ($port).txt"));
exec("smartctl -x $type ".escapeshellarg("/dev/$port")." 2>/dev/null|todos >".escapeshellarg("/$diag/smart/$name-$date $diskName ($port).txt"));
}
// create cache pool information
if (is_dir('/mnt/cache') && strpos($disks['cache']['fsType'],'btrfs')!==false) {