Add StartLLDProcessors option
MODIFY
manifests/init.pp
manifests/init.pp
@@ -142,6 +142,7 @@ class zabbix (
$javagateway = $zabbix::params::server_javagateway,
$javagatewayport = $zabbix::params::server_javagatewayport,
$startjavapollers = $zabbix::params::server_startjavapollers,
+ Integer[1, 100] $startlldprocessors = $zabbix::params::server_startlldprocessors,
$startvmwarecollectors = $zabbix::params::server_startvmwarecollectors,
$vmwarefrequency = $zabbix::params::server_vmwarefrequency,
$vmwarecachesize = $zabbix::params::server_vmwarecachesize,
@@ -284,6 +285,7 @@ class zabbix (
javagateway => $javagateway,
javagatewayport => $javagatewayport,
startjavapollers => $startjavapollers,
+ startlldprocessors => $startlldprocessors,
startvmwarecollectors => $startvmwarecollectors,
vmwarefrequency => $vmwarefrequency,
vmwarecachesize => $vmwarecachesize,

MODIFY
manifests/params.pp
manifests/params.pp
@@ -262,6 +262,7 @@ class zabbix::params {
$server_starthttppollers = '1'
$server_startipmipollers = '0'
$server_startjavapollers = '5'
+ $server_startlldprocessors = 2
$server_startpingers = '1'
$server_startpollers = '5'
$server_startpollersunreachable = '1'

MODIFY
manifests/server.pp
manifests/server.pp
# [*startjavapollers*]
# Number of pre-forked instances of java pollers.
#
+# [*startlldprocessors*]
+# Number of pre-forked instances of low-level discovery (LLD) workers.
+#
# [*startvmwarecollectors*]
# Number of pre-forked vmware collector instances.
#
@@ -384,6 +387,7 @@ class zabbix::server (
$javagateway = $zabbix::params::server_javagateway,
$javagatewayport = $zabbix::params::server_javagatewayport,
$startjavapollers = $zabbix::params::server_startjavapollers,
+ Integer[1, 100] $startlldprocessors = $zabbix::params::server_startlldprocessors,
$startvmwarecollectors = $zabbix::params::server_startvmwarecollectors,
$vmwarefrequency = $zabbix::params::server_vmwarefrequency,
$vmwarecachesize = $zabbix::params::server_vmwarecachesize,

MODIFY
spec/classes/server_spec.rb
spec/classes/server_spec.rb
@@ -251,6 +251,7 @@ describe 'zabbix::server' do
startsnmptrapper: '1',
starttimers: '1',
starttrappers: '5',
+ startlldprocessors: 5,
startvmwarecollectors: '5',
timeout: '3',
tmpdir: '/tmp',
@@ -310,6 +311,7 @@ describe 'zabbix::server' do
it { is_expected.to contain_file('/etc/zabbix/zabbix_server.conf').with_content %r{^PidFile=/var/run/zabbix/zabbix_server.pid} }
it { is_expected.to contain_file('/etc/zabbix/zabbix_server.conf').with_content %r{^ProxyConfigFrequency=3600} }
it { is_expected.to contain_file('/etc/zabbix/zabbix_server.conf').with_content %r{^ProxyDataFrequency=1} }
+ it { is_expected.to contain_file('/etc/zabbix/zabbix_server.conf').with_content %r{^StartLLDProcessors=5} }
it { is_expected.to contain_file('/etc/zabbix/zabbix_server.conf').with_content %r{^SNMPTrapperFile=/tmp/zabbix_traps.tmp} }
it { is_expected.to contain_file('/etc/zabbix/zabbix_server.conf').with_content %r{^SourceIP=192.168.1.1} }
it { is_expected.to contain_file('/etc/zabbix/zabbix_server.conf').with_content %r{^SSHKeyLocation=/home/zabbix} }

MODIFY
templates/zabbix_server.conf.erb
templates/zabbix_server.conf.erb
@@ -374,6 +374,17 @@ ProxyConfigFrequency=<%= @proxyconfigfrequency %>
#
ProxyDataFrequency=<%= @proxydatafrequency %>
+<% if @zabbix_version.to_f >= 5.0 %>
+### Option: StartLLDProcessors
+# Number of pre-forked instances of low level discovery processors.
+#
+# Mandatory: no
+# Range: 1-100
+# Default:
+# StartLLDProcessors=2
+<% if @startlldprocessors %>StartLLDProcessors=<%= @startlldprocessors -%><% end %>
+<% end %>
+
### Option: AllowRoot
# Allow the server to run as 'root'. If disabled and the server is started by 'root', the server
# will try to switch to the user specified by the User configuration option instead.

Add StartLLDProcessors option

Signed-off-by: Christos Papageorgiou <root.expert.xda@gmail.com>