Puppet Class: collectd::plugin::snmp

Defined in:
manifests/plugin/snmp.pp

Overview

Parameters:

  • ensure (Any) (defaults to: present)
  • data (Any) (defaults to: {})
  • hosts (Any) (defaults to: {})
  • interval (Any) (defaults to: undef)


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

class collectd::plugin::snmp (
  $ensure   = present,
  $data     = {},
  $hosts    = {},
  $interval = undef,
) {
  if $::osfamily == 'Redhat' {
    package { 'collectd-snmp':
      ensure => $ensure,
    }
  }

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