Defined Type: splunk::input::winnetmon

Defined in:
manifests/input/winnetmon.pp

Overview

Parameters:

  • name (Any)
  • remoteAddress (Any) (defaults to: undef)
  • process (Any) (defaults to: undef)
  • user (Any) (defaults to: undef)
  • addressFamily (Any) (defaults to: undef)
  • packetType (Any) (defaults to: undef)
  • direction (Any) (defaults to: undef)
  • protocol (Any) (defaults to: undef)
  • readInterval (Any) (defaults to: undef)
  • driverBufferSize (Any) (defaults to: undef)
  • userBufferSize (Any) (defaults to: undef)
  • mode (Any) (defaults to: undef)
  • multikvMaxEventCount (Any) (defaults to: undef)
  • multikvMaxTimeMs (Any) (defaults to: undef)
  • disabled (Any) (defaults to: undef)
  • index (Any) (defaults to: undef)


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
31
32
33
34
35
36
37
38
39
40
41
42
43
# File 'manifests/input/winnetmon.pp', line 6

define splunk::input::winnetmon ( $name,
  $remoteAddress        = undef,
  $process              = undef,
  $user                 = undef,
  $addressFamily        = undef,
  $packetType           = undef,
  $direction            = undef,
  $protocol             = undef,
  $readInterval         = undef,
  $driverBufferSize     = undef,
  $userBufferSize       = undef,
  $mode                 = undef,
  $multikvMaxEventCount = undef,
  $multikvMaxTimeMs     = undef,
  $disabled             = undef,
  $index                = undef
) {
  include splunk

  $_addressFamily = any2array($addressFamily)
  $_packetType    = any2array($packetType)
  $_direction     = any2array($direction)
  $_protocol      = any2array($protocol)

  # Field Validations
  if $disabled != undef and ($disabled != 0 and $disabled != 1) {
    fail('\$disabled is not in [0|1].')
  }
  if $mode != undef {
    validate_re($mode, '^single$|^multikv$')
  }

  realize Concat['inputs.conf']
  concat::fragment { "winNetMon-${title}":
    target  => 'inputs.conf',
    content => template( 'splunk/inputs.conf/winnetmon.erb' )
  }
}