sscargal / pmemchk

MIT License
0 stars 1 forks source link

Rules should provide a resolution action to the user #128

Open sscargal opened 2 years ago

sscargal commented 2 years ago

FAILED rules should provide some action to the user to resolve the issue.

Example:

[ INFO     ] optane_check_dimm_error_injection_enabled : Error injection enabled DIMMs found!
[ INFO     ] optane_check_dimm_error_injection_enabled : 1 = 0x0001,0x0011,0x0021,0x0101,0x0111,0x0121,0x1001,0x1011,0x1021,0x1101,0x1111,0x1121
[ FAILED   ] optane_check_dimm_error_injection_enabled : One or more PMem modules have error injection enabled

The corrective action should be to disable 'Error Injection' in the BIOS. Implement a new 'ACTION' message type to provide this information to the user.

INFO and WARNING responses from Rules may or may not require an ACTION.

Example:

[ INFO     ] optane_check_masterpassphraseenabled : Master Passphrase is Disabled

No action is required.