Puppet Class: ganglia::monitor

Defined in:
manifests/monitor.pp

Overview

Class: ganglia::monitor

Configure gmond.

This class, and the associated defines, should provide relatively comprehensive coverage of the gmond features.

See gmond(1) and gmond.conf(5) for additional details.

Authors

  • Trevor Vaughan <tvaughan@onyxpoint.com>



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
# File 'manifests/monitor.pp', line 14

class ganglia::monitor {
  include 'ganglia'
  include 'ganglia::monitor::collection_group'
  include 'ganglia::monitor::mods'
  include 'ganglia::monitor::tcp_accept_channel'
  include 'ganglia::monitor::udp_recv_channel'

  package { 'ganglia-gmond':
    ensure => 'latest'
  }

  if $::hardwaremodel == 'x86_64' {
    package { 'ganglia-gmond.i386':
      ensure => 'absent',
      notify => Package['ganglia-gmond']
    }
    package { 'libganglia.i386':
      ensure => 'absent',
      notify => Package['ganglia-gmond.i386']
    }
  }

  service { 'gmond':
    ensure     => 'running',
    enable     => true,
    hasstatus  => true,
    hasrestart => true,
    require    => Package['ganglia-gmond']
  }

  concat_build { 'gmond':
    order  => ['*.conf'],
    target => '/etc/ganglia/gmond.conf'
  }

  file { '/etc/ganglia/gmond.conf':
    owner     => 'root',
    group     => 'root',
    mode      => '0644',
    audit     => content,
    subscribe => Concat_build['gmond'],
    notify    => Service['gmond']
  }
}