Puppet Class: collectd::plugin::pcie_errors

Defined in:
manifests/plugin/pcie_errors.pp

Overview

Class to manage pcie_errors plugin for collectd

Parameters:

  • ensure (Enum['present', 'absent']) (defaults to: 'present')

    Ensure param for collectd::plugin type.

  • source (Enum['sysfs', 'proc']) (defaults to: 'sysfs')

    Use sysfs or proc to read data from /sysfs or /proc.

  • access_dir (Optional[String]) (defaults to: undef)

    Directory used to access device config space.

  • report_masked (Boolean) (defaults to: false)

    If true plugin will notify about errors that are set to masked in Error Mask register.

  • persistent_notifications (Boolean) (defaults to: false)

    If false plugin will dispatch notification only on set/clear of error.



9
10
11
12
13
14
15
16
17
18
19
20
21
22
# File 'manifests/plugin/pcie_errors.pp', line 9

class collectd::plugin::pcie_errors (
  Enum['present', 'absent'] $ensure                   = 'present',
  Enum['sysfs', 'proc']     $source                   = 'sysfs',
  Optional[String]          $access_dir               = undef,
  Boolean                   $report_masked            = false,
  Boolean                   $persistent_notifications = false,
) {
  include collectd

  collectd::plugin { 'pcie_errors':
    ensure  => $ensure,
    content => epp('collectd/plugin/pcie_errors.conf.epp'),
  }
}