[ZBX-5058] Proxy needs zabbix_proxy.conf twice (in /etc/zabbix & in /usr/local/etc) Created: 2012 May 24  Updated: 2017 May 30  Resolved: 2012 Jun 13

Status: Closed
Project: ZABBIX BUGS AND ISSUES
Component/s: Installation (I)
Affects Version/s: 2.0.0
Fix Version/s: 2.0.1rc1, 2.1.0

Type: Incident report Priority: Blocker
Reporter: rrr Assignee: Unassigned
Resolution: Fixed Votes: 0
Labels: configuration, initscripts
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Attachments: Text File strace.txt    
Issue Links:
Duplicate
is duplicated by ZBX-5216 SuSE initscripts out of date Closed

 Description   

Zabbix Proxy needs the configuration file zabbix_proxy.conf in two directories (/etc/zabbix and /usr/local/etc), otherwise it would not start!

Error-Messages:
zabbix_proxyconfiguration file /etc/zabbix/zabbix_proxy.conf does not exist.
&
zabbix_proxyconfiguration file /usr/local/etc/zabbix_proxy.conf does not exist.

Even with explicit using compilation variable "--sysconfdir=/etc/zabbix" it wouldnt work...



 Comments   
Comment by Alexander Vladishev [ 2012 May 24 ]

What parameters you use in a 'configure' script?

Could you please attach output of this command:
strace zabbix_proxy 2>&1

What platform you use?

Comment by rrr [ 2012 May 24 ]

Strace is attached now.
Parameters: ./configure --enable-proxy --with-mysql --with-net-snmp --with-libcurl --with-openipmi --datadir=/etc/zabbix
Platform: openSuse 11.3

Comment by Andris Mednis [ 2012 May 25 ]

The attached file 'strace.txt' shows only one (and successful) opening of configuration file:
open("/usr/local/etc/zabbix_proxy.conf", O_RDONLY|O_LARGEFILE) = 3
/etc/zabbix/zabbix_proxy.conf is not shown is strace.txt.

Could you please try
strace -f -o strace.out zabbix_proxy &
This will trace all started proxy processes and write result into file 'strace.out' in the current directory. The 'strace.out' file will be rapidly growing is size, so do not run proxy under tracing for long time.

Comment by rrr [ 2012 May 29 ]

I found the reason of the error-message: "zabbix_proxyconfiguration file /etc/zabbix/zabbix_proxy.conf does not exists". - it was the init-script.

Changing CONFIG_FILE="/etc/zabbix/zabbix_server.conf" to CONFIG_FILE="/usr/local/etc/zabbix_server.conf" resolves the issue.
You should provide updated init-scripts in the following zabbix-releases.

Comment by Oleksii Zagorskyi [ 2012 May 29 ]

Read please:
http://www.zabbix.com/documentation/2.0/manual/introduction/whatsnew200#configuration_files_and_directories_added_during_installation

Comment by rrr [ 2012 May 29 ]

I know the the changed default locations of configuration files in the new release already. But did YOU read my last comment?

Comment by Andris Mednis [ 2012 May 30 ]

Thanks for your comments! Init-scripts are being fixed with new default paths.

Comment by Andris Mednis [ 2012 Jun 05 ]

Fixed in development branch svn://svn.zabbix.com/branches/dev/ZBX-5058

Comment by dimir [ 2012 Jun 11 ]

Successfully tested. Please review my changes for Debian init scripts in r28193.

<Andris> Reviewed. Thanks for improving!

Comment by Andris Mednis [ 2012 Jun 11 ]

Fixed in versions pre-2.0.1 rev. 28196 and pre-2.1.0 rev. 28198.

Generated at Sat Apr 19 03:34:11 EEST 2025 using Jira 9.12.4#9120004-sha1:625303b708afdb767e17cb2838290c41888e9ff0.