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']
}
|