m 1 gum: add smart monitor
This commit is contained in:
parent
7eb32d53c2
commit
7db8820f02
|
@ -6,11 +6,11 @@ let
|
||||||
internal-ip = head config.krebs.build.host.nets.retiolum.addrs4;
|
internal-ip = head config.krebs.build.host.nets.retiolum.addrs4;
|
||||||
in {
|
in {
|
||||||
imports = [
|
imports = [
|
||||||
# TODO: copy this config or move to krebs
|
|
||||||
../2configs/tinc-basic-retiolum.nix
|
../2configs/tinc-basic-retiolum.nix
|
||||||
../2configs/headless.nix
|
../2configs/headless.nix
|
||||||
../2configs/fs/simple-swap.nix
|
../2configs/fs/simple-swap.nix
|
||||||
../2configs/fs/single-partition-ext4.nix
|
../2configs/fs/single-partition-ext4.nix
|
||||||
|
../2configs/smart-monitor.nix
|
||||||
# ../2configs/iodined.nix
|
# ../2configs/iodined.nix
|
||||||
../2configs/git/cgit-retiolum.nix
|
../2configs/git/cgit-retiolum.nix
|
||||||
../2configs/mattermost-docker.nix
|
../2configs/mattermost-docker.nix
|
||||||
|
@ -18,6 +18,7 @@ in {
|
||||||
|
|
||||||
../2configs/exim-retiolum.nix
|
../2configs/exim-retiolum.nix
|
||||||
../2configs/urlwatch.nix
|
../2configs/urlwatch.nix
|
||||||
|
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|
||||||
|
|
18
2configs/smart-monitor.nix
Normal file
18
2configs/smart-monitor.nix
Normal file
|
@ -0,0 +1,18 @@
|
||||||
|
{ config, ... }:
|
||||||
|
{
|
||||||
|
services.smartd = {
|
||||||
|
enable = true;
|
||||||
|
notifications = {
|
||||||
|
mail = {
|
||||||
|
enable = true;
|
||||||
|
recipient = config.krebs.users.makefu.mail;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
# short daily, long weekly, check on boot
|
||||||
|
defaults.monitored = "-a -o on -s (S/../.././02|L/../../7/04)";
|
||||||
|
|
||||||
|
devices = [{
|
||||||
|
device = "/dev/sda";
|
||||||
|
}];
|
||||||
|
};
|
||||||
|
}
|
Loading…
Reference in a new issue