这是indexloc提供的服务,不要输入任何密码
Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion conf/zabbix_agentd.conf
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ Server=127.0.0.1
# Agent will listen on this port for connections from the server.
#
# Mandatory: no
# Range: 1024-32767
# Range: 1024-65535
# Default:
# ListenPort=10050

Expand Down
2 changes: 1 addition & 1 deletion conf/zabbix_agentd.win.conf
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ Server=127.0.0.1
# Agent will listen on this port for connections from the server.
#
# Mandatory: no
# Range: 1024-32767
# Range: 1024-65535
# Default:
# ListenPort=10050

Expand Down
4 changes: 2 additions & 2 deletions conf/zabbix_proxy.conf
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ Hostname=Zabbix proxy
# Listen port for trapper.
#
# Mandatory: no
# Range: 1024-32767
# Range: 1024-65535
# Default:
# ListenPort=10051

Expand Down Expand Up @@ -405,7 +405,7 @@ ProxyMemoryBufferSize=16M
# Port that Zabbix Java gateway listens on.
#
# Mandatory: no
# Range: 1024-32767
# Range: 1024-65535
# Default:
# JavaGatewayPort=10052

Expand Down
4 changes: 2 additions & 2 deletions conf/zabbix_server.conf
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
# Listen port for trapper.
#
# Mandatory: no
# Range: 1024-32767
# Range: 1024-65535
# Default:
# ListenPort=10051

Expand Down Expand Up @@ -354,7 +354,7 @@ DBUser=zabbix
# Port that Zabbix Java gateway listens on.
#
# Mandatory: no
# Range: 1024-32767
# Range: 1024-65535
# Default:
# JavaGatewayPort=10052

Expand Down
2 changes: 1 addition & 1 deletion src/go/cmd/zabbix_web_service/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ package main
var options serviceOptions

type serviceOptions struct {
ListenPort string `conf:"optional,range=1024:32767,default=10053"`
ListenPort string `conf:"optional,range=1024:65535,default=10053"`
AllowedIP string `conf:"optional"`
LogType string `conf:"optional,default=file"`
LogFile string `conf:"optional,default=/tmp/zabbix_web_service.log"`
Expand Down
4 changes: 2 additions & 2 deletions src/go/conf/zabbix_agent2.conf
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ Server=127.0.0.1
# Agent will listen on this port for connections from the server.
#
# Mandatory: no
# Range: 1024-32767
# Range: 1024-65535
# Default:
# ListenPort=10050

Expand All @@ -93,7 +93,7 @@ Server=127.0.0.1
# Agent will listen on this port for HTTP status requests.
#
# Mandatory: no
# Range: 1024-32767
# Range: 1024-65535
# Default:
# StatusPort=

Expand Down
4 changes: 2 additions & 2 deletions src/go/conf/zabbix_agent2.win.conf
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ Server=127.0.0.1
# Agent will listen on this port for connections from the server.
#
# Mandatory: no
# Range: 1024-32767
# Range: 1024-65535
# Default:
# ListenPort=10050

Expand All @@ -85,7 +85,7 @@ Server=127.0.0.1
# Agent will listen on this port for HTTP status requests.
#
# Mandatory: no
# Range: 1024-32767
# Range: 1024-65535
# Default:
# StatusPort=

Expand Down
2 changes: 1 addition & 1 deletion src/go/conf/zabbix_web_service.conf
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ AllowedIP=127.0.0.1,::1
# Service will listen on this port for connections from the server.
#
# Mandatory: no
# Range: 1024-32767
# Range: 1024-65535
# Default:
# ListenPort=10053

Expand Down
4 changes: 2 additions & 2 deletions src/go/internal/agent/options_nix.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,8 @@ type AgentOptions struct {
PersistentBufferPeriod int `conf:"optional,range=60:31536000,default=3600"`
PersistentBufferFile string `conf:"optional"`
ListenIP string `conf:"optional"`
ListenPort int `conf:"optional,range=1024:32767,default=10050"`
StatusPort int `conf:"optional,range=1024:32767"`
ListenPort int `conf:"optional,range=1024:65535,default=10050"`
StatusPort int `conf:"optional,range=1024:65535"`
SourceIP string `conf:"optional"`
Server string `conf:"optional"`
UserParameter []string `conf:"optional"`
Expand Down
4 changes: 2 additions & 2 deletions src/go/internal/agent/options_windows.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@ type AgentOptions struct {
PersistentBufferPeriod int `conf:"optional,range=60:31536000,default=3600"`
PersistentBufferFile string `conf:"optional"`
ListenIP string `conf:"optional"`
ListenPort int `conf:"optional,range=1024:32767,default=10050"`
StatusPort int `conf:"optional,range=1024:32767"`
ListenPort int `conf:"optional,range=1024:65535,default=10050"`
StatusPort int `conf:"optional,range=1024:65535"`
SourceIP string `conf:"optional"`
Server string `conf:"optional"`
UserParameter []string `conf:"optional"`
Expand Down
2 changes: 1 addition & 1 deletion src/zabbix_agent/zabbix_agentd.c
Original file line number Diff line number Diff line change
Expand Up @@ -967,7 +967,7 @@ static void zbx_load_config(int requirement, ZBX_TASK_EX *task)
{"Timeout", &zbx_config_timeout, ZBX_CFG_TYPE_INT,
ZBX_CONF_PARM_OPT, 1, 30},
{"ListenPort", &zbx_config_listen_port, ZBX_CFG_TYPE_INT,
ZBX_CONF_PARM_OPT, 1024, 32767},
ZBX_CONF_PARM_OPT, 1024, 65535},
{"ListenIP", &zbx_config_listen_ip, ZBX_CFG_TYPE_STRING_LIST,
ZBX_CONF_PARM_OPT, 0, 0},
{"SourceIP", &zbx_config_source_ip, ZBX_CFG_TYPE_STRING,
Expand Down
2 changes: 1 addition & 1 deletion src/zabbix_java/settings.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
# Port to listen on.
#
# Mandatory: no
# Range: 1024-32767
# Range: 1024-65535
# Default:
# LISTEN_PORT=10052

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ public void execute(Object value)
null,
null),
new ConfigurationParameter(LISTEN_PORT, ConfigurationParameter.TYPE_INTEGER, 10052,
new IntegerValidator(1024, 32767),
new IntegerValidator(1024, 65535),
null),
new ConfigurationParameter(START_POLLERS, ConfigurationParameter.TYPE_INTEGER, 5,
new IntegerValidator(1, 1000),
Expand Down
6 changes: 3 additions & 3 deletions src/zabbix_proxy/proxy.c
Original file line number Diff line number Diff line change
Expand Up @@ -852,7 +852,7 @@ static void zbx_load_config(ZBX_TASK_EX *task)
{"Server", &config_server, ZBX_CFG_TYPE_STRING,
ZBX_CONF_PARM_MAND, 0, 0},
{"ServerPort", &config_server_port, ZBX_CFG_TYPE_INT,
ZBX_CONF_PARM_OPT, 1024, 32767},
ZBX_CONF_PARM_OPT, 1024, 65535},
{"Hostname", &config_hostname, ZBX_CFG_TYPE_STRING,
ZBX_CONF_PARM_OPT, 0, 0},
{"HostnameItem", &config_hostname_item, ZBX_CFG_TYPE_STRING,
Expand Down Expand Up @@ -885,7 +885,7 @@ static void zbx_load_config(ZBX_TASK_EX *task)
{"JavaGateway", &config_java_gateway, ZBX_CFG_TYPE_STRING,
ZBX_CONF_PARM_OPT, 0, 0},
{"JavaGatewayPort", &config_java_gateway_port, ZBX_CFG_TYPE_INT,
ZBX_CONF_PARM_OPT, 1024, 32767},
ZBX_CONF_PARM_OPT, 1024, 65535},
{"SNMPTrapperFile", &zbx_config_snmptrap_file, ZBX_CFG_TYPE_STRING,
ZBX_CONF_PARM_OPT, 0, 0},
{"StartSNMPTrapper", &config_forks[ZBX_PROCESS_TYPE_SNMPTRAPPER],
Expand Down Expand Up @@ -930,7 +930,7 @@ static void zbx_load_config(ZBX_TASK_EX *task)
{"ListenIP", &config_listen_ip, ZBX_CFG_TYPE_STRING_LIST,
ZBX_CONF_PARM_OPT, 0, 0},
{"ListenPort", &config_listen_port, ZBX_CFG_TYPE_INT,
ZBX_CONF_PARM_OPT, 1024, 32767},
ZBX_CONF_PARM_OPT, 1024, 65535},
{"SourceIP", &zbx_config_source_ip, ZBX_CFG_TYPE_STRING,
ZBX_CONF_PARM_OPT, 0, 0},
{"DebugLevel", &config_log_level, ZBX_CFG_TYPE_INT,
Expand Down
4 changes: 2 additions & 2 deletions src/zabbix_server/server.c
Original file line number Diff line number Diff line change
Expand Up @@ -903,7 +903,7 @@ static void zbx_load_config(ZBX_TASK_EX *task)
{"JavaGateway", &config_java_gateway, ZBX_CFG_TYPE_STRING,
ZBX_CONF_PARM_OPT, 0, 0},
{"JavaGatewayPort", &config_java_gateway_port, ZBX_CFG_TYPE_INT,
ZBX_CONF_PARM_OPT, 1024, 32767},
ZBX_CONF_PARM_OPT, 1024, 65535},
{"SNMPTrapperFile", &zbx_config_snmptrap_file, ZBX_CFG_TYPE_STRING,
ZBX_CONF_PARM_OPT, 0, 0},
{"StartSNMPTrapper", &config_forks[ZBX_PROCESS_TYPE_SNMPTRAPPER],
Expand Down Expand Up @@ -946,7 +946,7 @@ static void zbx_load_config(ZBX_TASK_EX *task)
{"ListenIP", &zbx_config_listen_ip, ZBX_CFG_TYPE_STRING_LIST,
ZBX_CONF_PARM_OPT, 0, 0},
{"ListenPort", &zbx_config_listen_port, ZBX_CFG_TYPE_INT,
ZBX_CONF_PARM_OPT, 1024, 32767},
ZBX_CONF_PARM_OPT, 1024, 65535},
{"SourceIP", &zbx_config_source_ip, ZBX_CFG_TYPE_STRING,
ZBX_CONF_PARM_OPT, 0, 0},
{"DebugLevel", &config_log_level, ZBX_CFG_TYPE_INT,
Expand Down