aboutsummaryrefslogtreecommitdiff
path: root/modules/private/monitoring/objects_caldance-1.nix
blob: d5b2d8d4f22b05f66fce9d87c098f4728a703628 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
{ ... }:
let
  defaultPassiveInfo = {
    use = "external-passive-service";
    freshness_threshold = "450";
    retry_interval = "1";
    host_name = "caldance-1.v.immae.eu";
  };
in
{
  host = {
    "caldance-1.v.immae.eu" = {
      alias = "caldance-1.v.immae.eu";
      address = "caldance-1.v.immae.eu";
      use = "linux-server";
    };
  };
  service = map (s: defaultPassiveInfo // s) [
    {
      service_description = "Size on root partition";
    }

    {
      service_description = "Total number of process";
    }

    {
      service_description = "Average load";
    }

    {
      service_description = "Swap usage";
    }

    {
      service_description = "fail2ban is active";
    }

    {
      service_description = "NTP is activated and working";
      freshness_threshold = "5400";
    }

    {
      service_description = "Databases are present in postgresql";
    }
  ];
}