Puppet Class: monitoring::service::total_procs

Defined in:
manifests/service/total_procs.pp

Overview



2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# File 'manifests/service/total_procs.pp', line 2

class monitoring::service::total_procs {
  include monitoring::params
  $total_procs_warn = $monitoring::params::total_procs_warn
  $total_procs_crit = $monitoring::params::total_procs_crit
  monitoring::service { "total_procs":
    service_description    => 'PROCS',
    servicegroups      => 'system',
    check_command      => 'check_nrpe!check_total_procs',
    contact_groups      => 'admins',
  }
  monitoring::servicedependency { "total_procs":
    dependent_service_description  => 'PROCS',
    service_description        => 'NRPE',
  }
  nrpe::plugin { 'total_procs':
    ensure      => $ensure,
    plugin      => 'main',
    check_command  => "check_procs",
    command_args  => "-w ${total_procs_warn} -c ${total_procs_crit}",
  }
}