summaryrefslogtreecommitdiffstats
path: root/modules/partofme/manifests/monitoring.pp
blob: bb4fe9e025c0a7d313fa6d70f29f54b15de132d9 (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
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',
    ]:
  }
}