Puppet Class: zabbix::proxy

Defined in:
manifests/proxy.pp

Overview

Parameters:

  • hostname (Any)
  • server (Any) (defaults to: 'zabbix.alkivi.fr')
  • serverPort (Any) (defaults to: '10051')
  • startPollers (Any) (defaults to: '5')
  • startIPMIPollers (Any) (defaults to: '0')
  • startPollersUnreachable (Any) (defaults to: '1')
  • startTrappers (Any) (defaults to: '5')
  • startPingers (Any) (defaults to: '1')
  • startDiscoverers (Any) (defaults to: '1')
  • startHTTPPollers (Any) (defaults to: '1')
  • listenPort (Any) (defaults to: '10051')
  • heartbeatFrequency (Any) (defaults to: '60')
  • configFrequency (Any) (defaults to: '3600')
  • housekeepingFrequency (Any) (defaults to: '1')
  • senderFrequency (Any) (defaults to: '30')
  • proxyLocalBuffer (Any) (defaults to: '0')
  • proxyOfflineBuffer (Any) (defaults to: '1')
  • debugLevel (Any) (defaults to: '3')
  • timeout (Any) (defaults to: '5')
  • trapperTimeout (Any) (defaults to: '5')
  • unreachablePeriod (Any) (defaults to: '45')
  • unavailableDelay (Any) (defaults to: '60')
  • pidFile (Any) (defaults to: '/var/run/zabbix-proxy/zabbix_proxy.pid')
  • logFile (Any) (defaults to: '/var/log/zabbix-proxy/zabbix_proxy.log')
  • alertScriptsPath (Any) (defaults to: '/home/alkivi/zabbix/alert-scripts/')
  • externalScripts (Any) (defaults to: '/home/alkivi/zabbix/external-scripts')
  • fpingLocation (Any) (defaults to: '/usr/bin/fping')
  • fping6Location (Any) (defaults to: '/usr/sbin/fping6')
  • tmpDir (Any) (defaults to: '/tmp')
  • pingerFrequency (Any) (defaults to: '60')
  • dBHost (Any) (defaults to: 'localhost')
  • dBName (Any) (defaults to: 'zabbix')
  • dBUser (Any) (defaults to: 'zabbix')
  • dBPassword (Any) (defaults to: 'CHANGEME')
  • sourceIp (Any) (defaults to: undef)
  • listenIp (Any) (defaults to: undef)
  • logFileSize (Any) (defaults to: undef)
  • motd (Any) (defaults to: true)


1
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
# File 'manifests/proxy.pp', line 1

class zabbix::proxy (
  $hostname,
  $server                  = 'zabbix.alkivi.fr',
  $serverPort              = '10051',
  $startPollers            = '5',
  $startIPMIPollers        = '0',
  $startPollersUnreachable = '1',
  $startTrappers           = '5',
  $startPingers            = '1',
  $startDiscoverers        = '1',
  $startHTTPPollers        = '1',
  $listenPort              = '10051',
  $heartbeatFrequency      = '60',
  $configFrequency         = '3600',
  $housekeepingFrequency   = '1',
  $senderFrequency         = '30',
  $proxyLocalBuffer        = '0',
  $proxyOfflineBuffer      = '1',
  $debugLevel              = '3',
  $timeout                 = '5',
  $trapperTimeout          = '5',
  $unreachablePeriod       = '45',
  $unavailableDelay        = '60',
  $pidFile                 = '/var/run/zabbix-proxy/zabbix_proxy.pid',
  $logFile                 = '/var/log/zabbix-proxy/zabbix_proxy.log',
  $alertScriptsPath        = '/home/alkivi/zabbix/alert-scripts/',
  $externalScripts         = '/home/alkivi/zabbix/external-scripts',
  $fpingLocation           = '/usr/bin/fping',
  $fping6Location          = '/usr/sbin/fping6',
  $tmpDir                  = '/tmp',
  $pingerFrequency         = '60',
  $dBHost                  = 'localhost',
  $dBName                  = 'zabbix',
  $dBUser                  = 'zabbix',
  $dBPassword              = 'CHANGEME',

  $sourceIp                = undef,
  $listenIp                = undef,
  $logFileSize             = undef,

  $motd                    = true,

) {

  if($motd)
  {
    motd::register{'Zabbix Proxy': }
  }

  if(! defined(Class['zabbix']))
  {
    class { 'zabbix': }
    Class['zabbix'] -> Class['zabbix::proxy']
  }

  # declare all parameterized classes
  class { 'zabbix::proxy::params': }
  class { 'zabbix::proxy::install': }
  class { 'zabbix::proxy::config': }
  class { 'zabbix::proxy::service': }

  # declare relationships
  Class['zabbix::proxy::params'] ->
  Class['zabbix::proxy::install'] ->
  Class['zabbix::proxy::config'] ->
  Class['zabbix::proxy::service']
}