summary refs log tree commit diff
path: root/nixos
diff options
context:
space:
mode:
authorpacien <pacien.trangirard@pacien.net>2020-08-16 20:48:42 +0200
committerpacien <pacien.trangirard@pacien.net>2020-08-16 20:48:42 +0200
commitea37c9caa1a07d1cc1d4fa915959e14d77594238 (patch)
treeb34fb74c4970a7fdcdcb7864a9bb99c9d3f092bf /nixos
parentf1922cdbdc608b1f1f85a1d80310b54e89d0e9f3 (diff)
downloadnixpkgs-ea37c9caa1a07d1cc1d4fa915959e14d77594238.tar
nixpkgs-ea37c9caa1a07d1cc1d4fa915959e14d77594238.tar.gz
nixpkgs-ea37c9caa1a07d1cc1d4fa915959e14d77594238.tar.bz2
nixpkgs-ea37c9caa1a07d1cc1d4fa915959e14d77594238.tar.lz
nixpkgs-ea37c9caa1a07d1cc1d4fa915959e14d77594238.tar.xz
nixpkgs-ea37c9caa1a07d1cc1d4fa915959e14d77594238.tar.zst
nixpkgs-ea37c9caa1a07d1cc1d4fa915959e14d77594238.zip
smartmontools: use standard subject in notification emails
This makes the notification script use the subject generated by smartmontools
itself both for consistency with other distros and to include the hostname.
Diffstat (limited to 'nixos')
-rw-r--r--nixos/modules/services/monitoring/smartd.nix2
1 files changed, 1 insertions, 1 deletions
diff --git a/nixos/modules/services/monitoring/smartd.nix b/nixos/modules/services/monitoring/smartd.nix
index 2cc9f043cf0..c72b4abfcdc 100644
--- a/nixos/modules/services/monitoring/smartd.nix
+++ b/nixos/modules/services/monitoring/smartd.nix
@@ -20,7 +20,7 @@ let
       ${pkgs.coreutils}/bin/cat << EOF
       From: smartd on ${host} <${nm.sender}>
       To: undisclosed-recipients:;
-      Subject: SMART error on $SMARTD_DEVICESTRING: $SMARTD_FAILTYPE
+      Subject: $SMARTD_SUBJECT
 
       $SMARTD_FULLMESSAGE
       EOF