summaryrefslogtreecommitdiffstats
path: root/modules/tozt/manifests/monitoring.pp
blob: 40a1e82a22ec4dca0f28af424f9816c2b4710113 (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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
class tozt::monitoring {
  include munin::node
  include munin::duplicati
  include munin::tarsnap
  include munin::archlinux
  include munin::certbot

  file { "/etc/munin/plugin-conf.d/tozt":
    source => "puppet:///modules/tozt/munin-plugin-conf",
    require => Package["munin-node"],
    notify => Service["munin-node"];
  }

  munin::plugin {
    [
      'cpu',
      'df',
      'df_inode',
      'forks',
      'load',
      'memory',
      'ntp_offset',
      'processes',
      'swap',
      'threads',
      'uptime',
      'users',
      'vmstat',
    ]:
  }

  munin::plugin {
    [
      'fail2ban',
      'munin_stats',
      'munin_update',
    ]:
  }

  munin::plugin {
    [
      'if_algo',
      'if_eth0',
    ]:
    source => 'if_',
  }

  munin::plugin {
    [
      'if_err_algo',
      'if_err_eth0',
    ]:
    source => 'if_err_',
  }

  munin::plugin {
    [
      'duplicati_duration',
      'duplicati_file_count',
      'duplicati_file_size',
      'duplicati_last_run',
    ]:
  }

  munin::plugin {
    [
      'tarsnap',
      'tarsnap_last_run',
    ]:
  }

  munin::plugin {
    [
      'package_updates',
    ]:
  }

  munin::plugin {
    [
      'certbot',
    ]:
  }

  tick::client::plugin {
    "cpu":
      opts => {
        percpu => true,
        totalcpu => true,
        collect_cpu_time => false,
        report_active => false,
      };
    "disk":
      opts => {
        ignore_fs => ["tmpfs", "devtmpfs", "devfs", "iso9660", "overlay", "aufs", "squashfs"],
      };
    [
      "diskio",
      "kernel",
      "mem",
      "processes",
      "swap",
      "system",
    ]:
  }
}