-
Type:
Incident report
-
Resolution: Won't fix
-
Priority:
Blocker
-
None
-
Affects Version/s: 2.0.4
-
Component/s: Server (S)
-
None
-
Environment:CentOS 6.3 2.6.32-279.22.1.el6.x86_64 #1 SMP Wed Feb 6 03:10:46 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux
zabbix20 x86_64 2.0.4 3.el6
zabbix20-agent x86_64 2.0.4 3.el6
zabbix20-server x86_64 .0.4 3.el6
zabbix20-server-mysql x86_64 2.0.4 3.el6
zabbix20-web noarch 2.0.4 3.el6
zabbix20-web-mysql noarch 2.0.4 3.el6CentOS 6.3 2.6.32-279.22.1.el6.x86_64 #1 SMP Wed Feb 6 03:10:46 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux zabbix20 x86_64 2.0.4 3.el6 zabbix20-agent x86_64 2.0.4 3.el6 zabbix20-server x86_64 .0.4 3.el6 zabbix20-server-mysql x86_64 2.0.4 3.el6 zabbix20-web noarch 2.0.4 3.el6 zabbix20-web-mysql noarch 2.0.4 3.el6
The configuration file /etc/zabbix/zabbix_server.conf is ignored by the init script /etc/init.d/zabbix-server
To fix this I have to edit the /etc/init.d/zabbix-server and change the line
daemon --user zabbixsrv $exec
with
daemon --user zabbixsrv $exec -c /etc/zabbix/zabbix_server.conf
to force the load of the correct configuration file.
Without this modification the server is unable to load the correct configuration file and tries to connect to the DB using the default zabbix user without password, causing a lot of error messages on /var/log/zabbix/zabbix_server.log file:
[Z3001] connection to database 'zabbix' failed: [1045] Access denied for user 'zabbix'@'localhost' (using password: NO)