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)
  • allportssummary (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
24
25
26
27
28
29
30
# File 'manifests/plugin/tcpconns.pp', line 2

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

  include ::collectd

  if $localports {
    validate_array($localports)
  }

  if $remoteports {
    validate_array($remoteports)
  }

  if $allportssummary {
    validate_bool($allportssummary)
  }

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