net-mgmt/zabbix-proxy and zabbix-agent: add ListenBacklog option (#5046)

Co-authored-by: Jeremy Gutierrez <Jeremy.gutierrez@markt.de>
This commit is contained in:
GutierrezJeremy 2025-11-27 17:36:51 +01:00 committed by GitHub
parent df4b6e006e
commit c77c3c0cca
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
6 changed files with 31 additions and 0 deletions

View File

@ -34,6 +34,14 @@
<hint>Optional</hint>
<help><![CDATA[An optional source IP address for outgoing connections.]]></help>
</field>
<field>
<id>zabbixagent.settings.main.listenBacklog</id>
<label>Listen Backlog</label>
<type>text</type>
<minimum>0</minimum>
<maximum>2147483647</maximum>
<help><![CDATA[The maximum number of pending connections in the TCP queue.]]></help>
</field>
<field>
<id>zabbixagent.settings.main.serverList</id>
<label>Zabbix Servers</label>

View File

@ -46,6 +46,11 @@
<NetMaskAllowed>N</NetMaskAllowed>
<ValidationMessage>Please provide a valid IP address, i.e. 10.0.0.1.</ValidationMessage>
</sourceIP>
<listenBacklog type="IntegerField">
<MinimumValue>0</MinimumValue>
<MaximumValue>2147483647</MaximumValue>
<Required>N</Required>
</listenBacklog>
<syslogEnable type="BooleanField"/>
<logFileSize type="IntegerField">
<Default>100</Default>

View File

@ -33,6 +33,10 @@ Server={{OPNsense.ZabbixAgent.settings.main.serverList}}
ListenPort={{OPNsense.ZabbixAgent.settings.main.listenPort}}
ListenIP={{OPNsense.ZabbixAgent.settings.main.listenIP}}
{% if helpers.exists('OPNsense.ZabbixAgent.settings.main.listenBacklog') and OPNsense.ZabbixAgent.settings.main.listenBacklog != '' %}
ListenBacklog={{ OPNsense.ZabbixAgent.settings.main.listenBacklog }}
{% endif %}
{% if OPNsense.ZabbixAgent.settings.features.enableActiveChecks == '1' and OPNsense.ZabbixAgent.settings.features.activeCheckServers|default("") != "" %}
ServerActive={{OPNsense.ZabbixAgent.settings.features.activeCheckServers}}
{% endif %}

View File

@ -57,6 +57,12 @@
<type>text</type>
<help>Source IP address for outgoing connections.</help>
</field>
<field>
<id>general.listenbacklog</id>
<label>Listen Backlog</label>
<type>text</type>
<help>The maximum number of pending connections in the TCP queue.</help>
</field>
<field>
<id>general.startpollers</id>
<label>Start Pollers</label>

View File

@ -26,6 +26,11 @@
<AsList>Y</AsList>
</listenip>
<sourceip type="NetworkField"/>
<listenbacklog type="IntegerField">
<MinimumValue>0</MinimumValue>
<MaximumValue>2147483647</MaximumValue>
<Required>N</Required>
</listenbacklog>
<startpollers type="TextField"/>
<startipmipollers type="IntegerField"/>
<startpollersunreachable type="IntegerField"/>

View File

@ -25,6 +25,9 @@ ListenPort={{ OPNsense.zabbixproxy.general.listenport }}
{% if helpers.exists('OPNsense.zabbixproxy.general.sourceip') and OPNsense.zabbixproxy.general.sourceip != '' %}
SourceIP={{ OPNsense.zabbixproxy.general.sourceip }}
{% endif %}
{% if helpers.exists('OPNsense.zabbixproxy.general.listenbacklog') and OPNsense.zabbixproxy.general.listenbacklog != '' %}
ListenBacklog={{ OPNsense.zabbixproxy.general.listenbacklog }}
{% endif %}
{% if helpers.exists('OPNsense.zabbixproxy.general.syslogEnable') and OPNsense.zabbixproxy.general.syslogEnable == '1' %}
LogType=system
{% else %}