Skip to content

Commit 01b29e2

Browse files
authored
Merge pull request #173 from xenadmin/patch-4
feat(proxy_conf): Reworked jinja Template for Zabbix Proxy 6.4
2 parents 0b45d5a + ad1cf9d commit 01b29e2

File tree

1 file changed

+22
-2
lines changed

1 file changed

+22
-2
lines changed

zabbix/files/default/etc/zabbix/zabbix_proxy.conf.jinja

Lines changed: 22 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -287,6 +287,7 @@
287287
# ProxyOfflineBuffer=1
288288
{% if settings.get('proxyofflinebuffer', defaults.get('proxyofflinebuffer', False)) %}ProxyOfflineBuffer={{ settings.get('proxyofflinebuffer', defaults.proxyofflinebuffer) }}{% endif %}
289289

290+
{% if zabbix.version_repo|float <= 6.2 -%}
290291
### Option: HeartbeatFrequency
291292
# Frequency of heartbeat messages in seconds.
292293
# Used for monitoring availability of Proxy on server side.
@@ -298,7 +299,9 @@
298299
# Default:
299300
# HeartbeatFrequency=60
300301
{% if settings.get('heartbeatfrequency', defaults.get('heartbeatfrequency', False)) %}HeartbeatFrequency={{ settings.get('heartbeatfrequency', defaults.heartbeatfrequency) }}{% endif %}
302+
{% endif %}
301303

304+
{% if zabbix.version_repo|float <= 6.2 -%}
302305
### Option: ConfigFrequency
303306
# How often proxy retrieves configuration data from Zabbix Server in seconds.
304307
# For a proxy in the passive mode this parameter will be ignored.
@@ -308,6 +311,24 @@
308311
# Default:
309312
# ConfigFrequency=300
310313
{% if settings.get('configfrequency', defaults.get('configfrequency', False)) %}ConfigFrequency={{ settings.get('configfrequency', defaults.configfrequency) }}{% endif %}
314+
{% endif %}
315+
316+
{% if zabbix.version_repo|float >= 6.4 -%}
317+
### Option: ConfigFrequency - Deprecated, use ProxyConfigFrequency
318+
# How often proxy retrieves configuration data from Zabbix Server in seconds.
319+
# For a proxy in the passive mode this parameter will be ignored.
320+
# Mandatory: no
321+
322+
### Option: ProxyConfigFrequency
323+
# How often proxy retrieves configuration data from Zabbix Server in seconds.
324+
# For a proxy in the passive mode this parameter will be ignored.
325+
#
326+
# Mandatory: no
327+
# Range: 1-3600*24*7
328+
# Default:
329+
# ProxyConfigFrequency=10
330+
{% if settings.get('proxyconfigfrequency', defaults.get('proxyconfigfrequency', False)) %}ProxyConfigFrequency={{ settings.get('proxyconfigfrequency', defaults.proxyconfigfrequency) }}{% endif %}
331+
{% endif %}
311332

312333
### Option: DataSenderFrequency
313334
# Proxy will send collected data to the Server every N seconds.
@@ -342,8 +363,7 @@
342363

343364
{% if zabbix.version_repo|float >= 4.2 -%}
344365
### Option: StartPreprocessors
345-
# Number of pre-forked instances of preprocessing workers.
346-
# The preprocessing manager process is automatically started when preprocessor worker is started.
366+
# Number of pre-started instances of preprocessing workers.
347367
#
348368
# Mandatory: no
349369
# Range: 1-1000

0 commit comments

Comments
 (0)