[ZBX-9134] Zabbix proxy crashes on rhel 7 Created: 2014 Dec 11  Updated: 2017 May 30  Resolved: 2014 Dec 11

Status: Closed
Project: ZABBIX BUGS AND ISSUES
Component/s: Installation (I), Proxy (P)
Affects Version/s: 2.4.2
Fix Version/s: None

Type: Incident report Priority: Critical
Reporter: patrik uytterhoeven Assignee: Unassigned
Resolution: Duplicate Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

centos7 rhel7


Issue Links:
Duplicate
duplicates ZBX-9027 zabbix-proxy RHEL/Centos 7 RPM : syst... Closed

 Description   

/usr/lib/systemd/system/zabbix-proxy.service

is looking for the file /etc/zabbix/zabbix-proxy.conf

while the correct file is zabbix_proxy.conf

as result the proxy crashes when starting



 Comments   
Comment by Aleksandrs Saveljevs [ 2014 Dec 11 ]

Could you please describe how does the crashing manifest? For me, if I specify a non-existing configuration file, proxy simply quits with the following error message:

$ sbin/zabbix_proxy -c /asdf/asdf
zabbix_proxy [11185]: cannot open config file [/asdf/asdf]: [2] No such file or directory

Also, how did you obtain Zabbix proxy? Did you get it from repo.zabbix.com? If so, is it a packaging issue or real issue with proxy code?

Comment by patrik uytterhoeven [ 2014 Dec 11 ]

The zabbix-proxy was obtained from the zabbix repo 2.4 for rhel 7

Dec 11 11:27:13 zabbix-proxy systemd: [/usr/lib/systemd/system/zabbix-proxy.service:7] Invalid environment assignment, ignoring: "$CONFFILE=/etc/zabbix/zabbix-proxy.conf"
Dec 11 11:28:44 zabbix-proxy systemd: Reloading.
Dec 11 11:28:45 zabbix-proxy systemd: [/usr/lib/systemd/system/zabbix-proxy.service:7] Invalid environment assignment, ignoring: "$CONFFILE=/etc/zabbix/zabbix-proxy.conf"
Dec 11 11:28:51 zabbix-proxy systemd: Starting Zabbix Proxy...
Dec 11 11:28:51 zabbix-proxy zabbix_proxy: zabbix_proxy [20307]: zbx_option requires an argument – c
Dec 11 11:28:51 zabbix-proxy zabbix_proxy: usage: zabbix_proxy [-hV] [-c <file>] [-R <option>]
Dec 11 11:28:51 zabbix-proxy systemd: zabbix-proxy.service: control process exited, code=exited status=1
Dec 11 11:28:51 zabbix-proxy systemd: Failed to start Zabbix Proxy.

changing the Environment alone was not working i fixed it quick and dirty by changing ExecStart line
ExecStart=/usr/sbin/zabbix_proxy -c /etc/zabbix/zabbix_proxy.conf

Comment by Aleksandrs Saveljevs [ 2014 Dec 11 ]

So it seems to be a packaging issue. Kodai, could you please take a look?

Comment by Anton Samets [ 2014 Dec 11 ]

ZBX-9027 - duplicate, I suppose.

Comment by richlv [ 2014 Dec 11 ]

thanks, indeed seems to be a duplicate of ZBX-9027, closing

Generated at Thu Apr 24 23:19:51 EEST 2025 using Jira 9.12.4#9120004-sha1:625303b708afdb767e17cb2838290c41888e9ff0.