Puppet Class: monitoring::service::memory

Defined in:
manifests/service/memory.pp

Overview



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
# File 'manifests/service/memory.pp', line 2

class monitoring::service::memory {
  include monitoring::params
  $nagios_extra_plugins = $monitoring::params::nagios_extra_plugins

  monitoring::service { "memory":
    service_description    => 'MEMORY',
    servicegroups      => 'system',
    check_command      => 'check_nrpe!check_memory',
    contact_groups      => 'admins',
  }
  monitoring::servicedependency { "memory":
    dependent_service_description  => 'MEMORY',
    service_description        => 'NRPE',
  }
  nrpe::plugin { 'memory':
    ensure      => $ensure,
    plugin      => 'extra',
    check_command  => 'check_memory.pl',
    command_args  => '-w 5% -c 2%',
  }

  monitoring::script {'check_memory.pl':
    template => 'monitoring/scripts/check_memory.pl.erb' 
  }

}