Smartmontools: Difference between revisions

From NixOS Wiki
create page
 
Klinger (talk | contribs)
m changed category from software to applications
 
(5 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{DISPLAYTITLE:smartmontools}}
{{DISPLAYTITLE:smartmontools}}
 
<translate>
<!--T:1-->
'''smartmontools''' is a package which provides tools for monitoring drives which support the [[wikipedia:Self-Monitoring, Analysis and Reporting Technology|S.M.A.R.T.]] system for monitoring hard drive health.
'''smartmontools''' is a package which provides tools for monitoring drives which support the [[wikipedia:Self-Monitoring, Analysis and Reporting Technology|S.M.A.R.T.]] system for monitoring hard drive health.
 
</translate>
<translate>
<!--T:2-->
It includes the '''smartd''' and '''smartctl''' programs. smartd can be enabled on NixOS systems with the {{Nixos:option|services.smartd}} module.
It includes the '''smartd''' and '''smartctl''' programs. smartd can be enabled on NixOS systems with the {{Nixos:option|services.smartd}} module.
 
</translate>
== Example ==
<translate>
== Example == <!--T:3-->
</translate>
<translate>
<!--T:4-->
{{Template:file:nixos|<nowiki>{
{{Template:file:nixos|<nowiki>{
   services.smartd = {
   services.smartd = {
     enable = true
     enable = true;
     devices = [
     devices = [
       {
       {
Line 17: Line 24:
}
}
</nowiki>}}
</nowiki>}}
</translate>


[[Category:Hardware]]
[[Category:Hardware]]
[[Category:Software]]
[[Category:Applications]]

Latest revision as of 17:56, 25 August 2024

smartmontools is a package which provides tools for monitoring drives which support the S.M.A.R.T. system for monitoring hard drive health. It includes the smartd and smartctl programs. smartd can be enabled on NixOS systems with the services.smartd module.

Example

/etc/nixos/configuration.nix
{
  services.smartd = {
    enable = true;
    devices = [
      {
        device = "/dev/sda"; # FIXME: Change this to your actual disk; use lsblk to find the appropriate value
      }
    ];
  };
}