Puppet Class: collectd::plugin::cpu

Defined in:
manifests/plugin/cpu.pp

Overview

Parameters:

  • ensure (Any) (defaults to: present)
  • reportbystate (Any) (defaults to: true)
  • reportbycpu (Any) (defaults to: true)
  • valuespercentage (Any) (defaults to: false)
  • interval (Any) (defaults to: undef)


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

class collectd::plugin::cpu (
  $ensure           = present,
  $reportbystate    = true,
  $reportbycpu      = true,
  $valuespercentage = false,
  $interval         = undef,
) {

  validate_bool(
    $reportbystate,
    $reportbycpu,
    $valuespercentage,
  )

  collectd::plugin {'cpu':
    ensure   => $ensure,
    content  => template('collectd/plugin/cpu.conf.erb'),
    interval => $interval,
  }
}