summaryrefslogtreecommitdiffstats
path: root/modules/partofme/manifests/monitoring.pp
blob: 55c17e26c8c54a5605384456633b364b2b1948ae (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
class partofme::monitoring {
  include smartmontools
  include munin::node
  include munin::duplicati
  include munin::archlinux

  file { '/etc/munin/plugin-conf.d/partofme':
    source => 'puppet:///modules/partofme/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 {
    [
      'if_algo',
      'if_enp3s0',
    ]:
      source => 'if_';
  }

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

  munin::plugin {
    [
      'smart_sda',
      'smart_sdb',
      'smart_sdc',
      'smart_sdd',
    ]:
      source => 'smart_';
  }

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

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

  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",
    ]:
  }
}