[ZBX-15018] Proxy not accepting commas on Server option Created: 2018 Oct 17  Updated: 2018 Oct 17  Resolved: 2018 Oct 17

Status: Closed
Project: ZABBIX BUGS AND ISSUES
Component/s: Proxy (P)
Affects Version/s: 4.0.0
Fix Version/s: None

Type: Incident report Priority: Major
Reporter: Danilo G. Baio Assignee: Unassigned
Resolution: Fixed Votes: 0
Labels: proxy
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   

Steps to reproduce:

  1. Config two or more addresses on Server option
  2. Try to start the proxy

Result:

/usr/local/sbin/zabbix_proxy -c /usr/local/etc/zabbix4/zabbix_proxy.conf
zabbix_proxy [32462]: ERROR: invalid "Server" configuration parameter: '177.XX.XXX.XX,172.16.1.50,10.0.5.50'

Expected:

### Option: Server
[...]
#     List of comma delimited IP addresses, optionally in CIDR notation, or DNS names of }}{{Zabbix server.
#     Incoming connections will be accepted only from the addresses listed here.
#     If IPv6 support is enabled then '127.0.0.1', '::127.0.0.1', '::ffff:127.0.0.1' are treated equally
#     and '::/0' will allow any IPv4 or IPv6 address.
#     '0.0.0.0/0' can be used to allow any IPv4 address.
#     Example: Server=127.0.0.1,192.168.1.0/24,::1,2001:db8::/32,zabbix.example.com
[...]
# Server=

 



 Comments   
Comment by Edgars Melveris [ 2018 Oct 17 ]

Hello Danilo!

Can you please attach full zabbix_proxy.conf file? At least, paste this option here:

ProxyMode=
Comment by Danilo G. Baio [ 2018 Oct 17 ]

Server=177.XX.XXX.XX,172.16.1.50,10.0.5.50
ServerPort=10051
Hostname=xxxxxx_21
ListenIP=0.0.0.0
ListenPort=10051
PidFile=/var/run/zabbix-proxy/zabbix_proxy.pid
DBName=/var/db/zabbix-proxy/proxy.db
LogFile=/var/log/zabbix-proxy/zabbix_proxy.log
ConfigFrequency=3600
FpingLocation=/usr/local/sbin/fping
Fping6Location=/usr/local/sbin/fping6
ProxyMode=0
TLSConnect=unencrypted
TLSAccept=unencrypted
StartSNMPTrapper=0
SNMPTrapperFile=/tmp/zabbix_traps.tmp
TrapperTimeout=300
StartTrappers=5

Comment by richlv [ 2018 Oct 17 ]

I guess what Edgars was aiming for can be seen above. ProxyMode of 0 is active, and active proxy does not support multiple server addresses (that can be seen in the config file comments that were excluded from the issue description).

Comment by Danilo G. Baio [ 2018 Oct 17 ]

I understand.
Actually we were using this way with 3.0.X.
Definitely not a bug.
Thank you.

Comment by Danilo G. Baio [ 2018 Oct 17 ]

Not a bug

Generated at Fri Apr 26 14:40:54 EEST 2024 using Jira 9.12.4#9120004-sha1:625303b708afdb767e17cb2838290c41888e9ff0.