mirror of
https://github.com/netbirdio/plugins.git
synced 2026-05-22 18:44:07 -07:00
net-mgmt/zabbix-agent: use "NetworkField" wherever applicable
This commit is contained in:
@@ -17,6 +17,9 @@ Plugin Changelog
|
||||
Added:
|
||||
* Allow CIDR notation in "Zabbix Servers" field (#2296)
|
||||
|
||||
Changed:
|
||||
* Use "NetworkField" wherever applicable for better input validation
|
||||
|
||||
1.8
|
||||
|
||||
Added:
|
||||
|
||||
+3
-2
@@ -31,7 +31,8 @@
|
||||
<id>zabbixagent.settings.main.sourceIP</id>
|
||||
<label>Source IP</label>
|
||||
<type>text</type>
|
||||
<help><![CDATA[Source IP address for outgoing connections.]]></help>
|
||||
<hint>Optional</hint>
|
||||
<help><![CDATA[An optional source IP address for outgoing connections.]]></help>
|
||||
</field>
|
||||
<field>
|
||||
<id>zabbixagent.settings.main.serverList</id>
|
||||
@@ -112,7 +113,7 @@
|
||||
<type>select_multiple</type>
|
||||
<style>tokenize</style>
|
||||
<allownew>true</allownew>
|
||||
<help><![CDATA[List of IP:port (or hostname:port) pairs of Zabbix servers for active checks. If port is not specified, default port is used. IPv6 addresses must be enclosed in square brackets if port for that host is specified. If port is not specified, square brackets for IPv6 addresses are optional. If this parameter is not specified, active checks are disabled. Example: ServerActive=127.0.0.1:20051,zabbix.domain,[::1]:30051,::1,[12fc::1]]]></help>
|
||||
<help><![CDATA[List of IP:port (or hostname:port) pairs of Zabbix servers for active checks. If port is not specified, the default port is used. IPv6 addresses must be enclosed in square brackets if the port for that host is specified. If the port is not specified, square brackets for IPv6 addresses are optional. If this parameter is not specified, active checks are disabled. Examples: zabbix.example.com, 10.0.0.2:20051, [::1]:30051,::1, [12fc::1]]]></help>
|
||||
</field>
|
||||
<field>
|
||||
<id>zabbixagent.settings.features.refreshActiveChecks</id>
|
||||
|
||||
+9
-8
@@ -24,7 +24,7 @@
|
||||
<multiple>Y</multiple>
|
||||
<mask>/^([a-zA-Z0-9\.:\[\]\-\/]*?,)*([a-zA-Z0-9\.:\[\]\-\/]*)$/</mask>
|
||||
<ChangeCase>lower</ChangeCase>
|
||||
<ValidationMessage>Please provide valid Zabbix server addresses, i.e. 10.0.0.1 or zabbix.example.com.</ValidationMessage>
|
||||
<ValidationMessage>Please provide valid Zabbix server addresses, i.e. zabbix.example.com, 10.0.0.2 or 10.0.0.0/24.</ValidationMessage>
|
||||
</serverList>
|
||||
<listenPort type="IntegerField">
|
||||
<default>10050</default>
|
||||
@@ -32,18 +32,19 @@
|
||||
<MaximumValue>65535</MaximumValue>
|
||||
<Required>Y</Required>
|
||||
</listenPort>
|
||||
<listenIP type="CSVListField">
|
||||
<listenIP type="NetworkField">
|
||||
<default>0.0.0.0</default>
|
||||
<Required>Y</Required>
|
||||
<multiple>Y</multiple>
|
||||
<mask>/^((([0-9a-zA-Z._\-\*:]+)([,]){0,1}))*/u</mask>
|
||||
<ChangeCase>lower</ChangeCase>
|
||||
<ValidationMessage>Please provide valid IP addresses, i.e. 10.0.0.1.</ValidationMessage>
|
||||
<NetMaskAllowed>N</NetMaskAllowed>
|
||||
<asList>Y</asList>
|
||||
<FieldSeparator>,</FieldSeparator>
|
||||
<ValidationMessage>Please provide one or more valid IP addresses, i.e. 10.0.0.1.</ValidationMessage>
|
||||
</listenIP>
|
||||
<sourceIP type="TextField">
|
||||
<sourceIP type="NetworkField">
|
||||
<Required>N</Required>
|
||||
<mask>/^.{1,255}$/u</mask>
|
||||
<ValidationMessage>Should be a string between 1 and 255 characters.</ValidationMessage>
|
||||
<NetMaskAllowed>N</NetMaskAllowed>
|
||||
<ValidationMessage>Please provide a valid IP address, i.e. 10.0.0.1.</ValidationMessage>
|
||||
</sourceIP>
|
||||
<logFileSize type="IntegerField">
|
||||
<default>100</default>
|
||||
|
||||
Reference in New Issue
Block a user