emailCheck = monitoring.lib.emailCheck config.myEnv.monitoring.email_check;
in
{
- config.myServices.monitoring.activatedPlugins = [ "memory" "command" "bandwidth" "emails" "mdadm" "postfix" "postgresql" "zfs" "notify-secondary"];
+ config.myServices.monitoring.activatedPlugins = [ "memory" "command" "bandwidth" "emails" "mdadm" "postfix" "postgresql" "zfs" "notify-secondary" "smartctl" ];
config.myServices.monitoring.pluginsArgs.postgresql.package = config.myServices.databases.postgresql.package;
config.myServices.monitoring.objects = lib.mkMerge [
(monitoring.lib.objectsCommon {
{
service = [
+ {
+ service_description = "Disk /dev/disk/by-id/ata-ST33000650NS_Z29540DM is sane";
+ use = "local-service";
+ check_command = [ "check_smartctl" "/dev/disk/by-id/ata-ST33000650NS_Z29540DM" ];
+ __passive_servicegroups = "webstatus-resources";
+
+ check_interval = 60;
+ }
+ {
+ service_description = "Disk /dev/disk/by-id/ata-ST33000650NS_Z296JGJ4 is sane";
+ use = "local-service";
+ check_command = [ "check_smartctl" "/dev/disk/by-id/ata-ST33000650NS_Z296JGJ4" ];
+ __passive_servicegroups = "webstatus-resources";
+
+ check_interval = 60;
+ }
+ {
+ service_description = "Disk /dev/disk/by-id/ata-SAMSUNG_MZ7LM480HMHQ-00005_S2UJNX0HA05895 is sane";
+ use = "local-service";
+ check_command = [ "check_smartctl" "/dev/disk/by-id/ata-SAMSUNG_MZ7LM480HMHQ-00005_S2UJNX0HA05895" ];
+ __passive_servicegroups = "webstatus-resources";
+
+ check_interval = 60;
+ }
+ {
+ service_description = "Disk /dev/disk/by-id/ata-Micron_5200_MTFDDAK480TDC_18011BEE03B3 is sane";
+ use = "local-service";
+ check_command = [ "check_smartctl" "/dev/disk/by-id/ata-Micron_5200_MTFDDAK480TDC_18011BEE03B3" ];
+ __passive_servicegroups = "webstatus-resources";
+
+ check_interval = 60;
+ }
{
service_description = "No mdadm array is degraded";
use = "local-service";