Puppet Class: splunk::monitor::input_port

Defined in:
manifests/monitor/input_port.pp

Overview

Monitor the Splunk TCP Input Port: Defaults to 9997

Parameters:

  • port (Any) (defaults to: $::splunk::port)
  • nagios_contacts (Any) (defaults to: $::splunk::nagios_contacts)


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

class splunk::monitor::input_port (
  $port            = $::splunk::port,
  $nagios_contacts = $::splunk::nagios_contacts
) {
  # Nagios Service Check
  if ( $nagios_contacts ) {
    @@nagios_service { "check_tcp${port}_${::hostname}":
      use                 => 'default-service',
      check_command       => "check_tcp!${port}",
      host_name           => $::fqdn,
      contacts            => $nagios_contacts,
      service_description => 'Splunk Input Port',
      notify              => Service['nagios'],
      tag                 => $::environment,
    }
  }
}