Add StartAlerters option
MODIFY
manifests/init.pp
manifests/init.pp
@@ -134,6 +134,7 @@ class zabbix (
$startpollersunreachable = $zabbix::params::server_startpollersunreachable,
$starttrappers = $zabbix::params::server_starttrappers,
$startpingers = $zabbix::params::server_startpingers,
+ Integer[1, 100] $startalerters = $zabbix::params::server_startalerters,
$startdiscoverers = $zabbix::params::server_startdiscoverers,
$starthttppollers = $zabbix::params::server_starthttppollers,
$starttimers = $zabbix::params::server_starttimers,
@@ -274,6 +275,7 @@ class zabbix (
startpollersunreachable => $startpollersunreachable,
starttrappers => $starttrappers,
startpingers => $startpingers,
+ startalerters => $startalerters,
startdiscoverers => $startdiscoverers,
starthttppollers => $starthttppollers,
starttimers => $starttimers,

MODIFY
manifests/params.pp
manifests/params.pp
@@ -256,6 +256,7 @@ class zabbix::params {
$server_sslcertlocation = '/usr/lib/zabbix/ssl/certs'
$server_sslkeylocation = '/usr/lib/zabbix/ssl/keys'
$server_startdbsyncers = '4'
+ $server_startalerters = 3
$server_startdiscoverers = '1'
$server_starthttppollers = '1'
$server_startipmipollers = '0'

MODIFY
manifests/server.pp
manifests/server.pp
# [*startpingers*]
# Number of pre-forked instances of icmp pingers.
#
+# [*startalerters*]
+# Number of pre-forked instances of alerters.
+#
# [*startdiscoverers*]
# Number of pre-forked instances of discoverers.
#
@@ -370,6 +373,7 @@ class zabbix::server (
$startpollersunreachable = $zabbix::params::server_startpollersunreachable,
$starttrappers = $zabbix::params::server_starttrappers,
$startpingers = $zabbix::params::server_startpingers,
+ Integer[1, 100] $startalerters = $zabbix::params::server_startalerters,
$startdiscoverers = $zabbix::params::server_startdiscoverers,
$starthttppollers = $zabbix::params::server_starthttppollers,
$starttimers = $zabbix::params::server_starttimers,

MODIFY
spec/classes/server_spec.rb
spec/classes/server_spec.rb
@@ -239,6 +239,7 @@ describe 'zabbix::server' do
sourceip: '192.168.1.1',
sshkeylocation: '/home/zabbix',
startdbsyncers: '4',
+ startalerters: 10,
startdiscoverers: '1',
starthttppollers: '1',
startipmipollers: '12',
@@ -312,6 +313,7 @@ describe 'zabbix::server' do
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} }
it { is_expected.to contain_file('/etc/zabbix/zabbix_server.conf').with_content %r{^StartDBSyncers=4} }
+ it { is_expected.to contain_file('/etc/zabbix/zabbix_server.conf').with_content %r{^StartAlerters=10} }
it { is_expected.to contain_file('/etc/zabbix/zabbix_server.conf').with_content %r{^StartDiscoverers=1} }
it { is_expected.to contain_file('/etc/zabbix/zabbix_server.conf').with_content %r{^StartHTTPPollers=1} }
it { is_expected.to contain_file('/etc/zabbix/zabbix_server.conf').with_content %r{^StartIPMIPollers=12} }

MODIFY
templates/zabbix_server.conf.erb
templates/zabbix_server.conf.erb
@@ -158,6 +158,16 @@ StartTimers=<%= @starttimers %>
#
<% if @startescalators %>StartEscalators=<%= @startescalators %><% end %>
+### Option: StartAlerters
+# Number of pre-forked instances of alerters.
+# Alerters send the notifications created by action operations.
+#
+# Mandatory: no
+# Range: 0-100
+# Default:
+# StartAlerters=3
+<% if @startalerters %>StartAlerters=<%= @startalerters %><% end %>
+
<% if @javagateway %>
### Option: JavaGateway
# IP address (or hostname) of Zabbix Java gateway.

Add StartAlerters option

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