Puppet Class: collectd::plugin::tcpconns

Defined in:
manifests/plugin/tcpconns.pp

Overview

Parameters:

  • localports (Any) (defaults to: undef)
  • remoteports (Any) (defaults to: undef)
  • listening (Any) (defaults to: undef)
  • interval (Any) (defaults to: undef)
  • ensure (Any) (defaults to: present)


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

class collectd::plugin::tcpconns (
  $localports  = undef,
  $remoteports = undef,
  $listening   = undef,
  $interval    = undef,
  $ensure      = present
) {

  if $localports {
    validate_array($localports)
  }

  if $remoteports {
    validate_array($remoteports)
  }

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