configuration file /etc/zabbix/zabbix_server.conf is ignored by the init script /etc/init.d/zabbix-server

XMLWordPrintable

    • Type: Incident report
    • Resolution: Won't fix
    • Priority: Blocker
    • None
    • Affects Version/s: 2.0.4
    • Component/s: Server (S)
    • None
    • Environment:

      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)

            Assignee:
            Unassigned
            Reporter:
            Nicola Asuni
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: