Smartmontools/ru: Difference between revisions

From NixOS Wiki
Unabomberlive (talk | contribs)
Created page with "Smartmontools"
 
Unabomberlive (talk | contribs)
Created page with "== Пример =="
Line 6: Line 6:
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.
</div>
</div>
<div lang="en" dir="ltr" class="mw-content-ltr">
<span id="Example"></span>
== Example ==
== Пример ==
</div>
<div lang="en" dir="ltr" class="mw-content-ltr">
<div lang="en" dir="ltr" class="mw-content-ltr">
{{Template:file:nixos|<nowiki>{
{{Template:file:nixos|<nowiki>{

Revision as of 04:10, 1 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.

Пример

/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
      }
    ];
  };
}