Puppet Class: zabbix::server

Defined in:
manifests/server.pp

Overview

Parameters:

  • listenPort (Any) (defaults to: '10051')
  • sourceIp (Any) (defaults to: undef)
  • logFile (Any) (defaults to: '/var/log/zabbix-server/zabbix_server.log')
  • logFileSize (Any) (defaults to: undef)
  • debugLevel (Any) (defaults to: '3')
  • pidFile (Any) (defaults to: '/var/run/zabbix-server/zabbix_server.pid')
  • dBHost (Any) (defaults to: 'localhost')
  • dBName (Any) (defaults to: 'zabbix')
  • dBUser (Any) (defaults to: 'zabbix')
  • dBPassword (Any) (defaults to: 'CHANGEME')
  • 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')
  • listenIp (Any) (defaults to: undef)
  • housekeepingFrequency (Any) (defaults to: '1')
  • maxHousekeeperDelete (Any) (defaults to: '500')
  • disableHousekeeping (Any) (defaults to: '0')
  • senderFrequency (Any) (defaults to: '30')
  • cacheSize (Any) (defaults to: '8M')
  • cacheUpdateFrequency (Any) (defaults to: '60')
  • startDBSyncers (Any) (defaults to: '4')
  • historyCacheSize (Any) (defaults to: '8M')
  • trendCacheSize (Any) (defaults to: '4M')
  • historyTextCacheSize (Any) (defaults to: '16M')
  • timeout (Any) (defaults to: '5')
  • trapperTimeout (Any) (defaults to: '300')
  • unreachablePeriod (Any) (defaults to: '45')
  • unavailableDelay (Any) (defaults to: '60')
  • 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')
  • 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
# File 'manifests/server.pp', line 1

class zabbix::server (
  $listenPort              = '10051',
  $sourceIp                = undef,
  $logFile                 = '/var/log/zabbix-server/zabbix_server.log',
  $logFileSize             = undef,
  $debugLevel              = '3',
  $pidFile                 = '/var/run/zabbix-server/zabbix_server.pid',
  $dBHost                  = 'localhost',
  $dBName                  = 'zabbix',
  $dBUser                  = 'zabbix',
  $dBPassword              = 'CHANGEME',
  $startPollers            = '5',
  $startIPMIPollers        = '0',
  $startPollersUnreachable = '1',
  $startTrappers           = '5',
  $startPingers            = '1',
  $startDiscoverers        = '1',
  $startHTTPPollers        = '1',
  $listenIp                = undef,
  $housekeepingFrequency   = '1',
  $maxHousekeeperDelete    = '500',
  $disableHousekeeping     = '0',
  $senderFrequency         = '30',
  $cacheSize               = '8M',
  $cacheUpdateFrequency    = '60',
  $startDBSyncers          = '4',
  $historyCacheSize        = '8M',
  $trendCacheSize          = '4M',
  $historyTextCacheSize    = '16M',
  $timeout                 = '5',
  $trapperTimeout          = '300',
  $unreachablePeriod       = '45',
  $unavailableDelay        = '60',
  $alertScriptsPath        = '/home/alkivi/zabbix/alert-scripts/',
  $externalScripts         = '/home/alkivi/zabbix/external-scripts',
  $fpingLocation           = '/usr/bin/fping',
  $fping6Location          = '/usr/sbin/fping6',
  $motd                    = true,
) {

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

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

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

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