Add Extended info (smartctl -x) for os-smart plugin. (#4508)

This commit is contained in:
poisonbl 2025-08-13 03:24:26 -04:00 committed by GitHub
parent cbc910d318
commit 09cfdf639a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 3 additions and 2 deletions

View file

@ -68,7 +68,7 @@ class ServiceController extends ApiControllerBase
return array("message" => "Invalid device name");
}
$valid_info_types = array("i", "H", "c", "A", "a");
$valid_info_types = array("i", "H", "c", "A", "a", "x");
if (!in_array($type, $valid_info_types)) {
return array("message" => "Invalid info type");

View file

@ -138,7 +138,8 @@
<label><input type="radio" name="type" value="H" checked="checked" />{{ lang._('Health') }}</label>&nbsp;
<label><input type="radio" name="type" value="c" />{{ lang._('SMART Capabilities') }}</label>&nbsp;
<label><input type="radio" name="type" value="A" />{{ lang._('Attributes') }}</label>&nbsp;
<label><input type="radio" name="type" value="a" />{{ lang._('All') }}</label>
<label><input type="radio" name="type" value="a" />{{ lang._('All') }}</label>&nbsp;
<label><input type="radio" name="type" value="x" />{{ lang._('Extended') }}</label>
</div>
</td>
</tr>