Ad Widget

Collapse

Zabbix server is running = no

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • -pinguin-
    Junior Member
    • Jun 2018
    • 7

    #1

    Zabbix server is running = no

    Hi,

    I have Zabbix with the version 3.4.10 installed on Ubuntu 18.04 LTS and the PHP version 7.1.

    As mentioned, the Zabbix server is not running. In the zabbix.conf.php file I already changed the ZBX_SERVER" attribute to the IP address. I restarted the service. The problem still occurs.

    Is it because of AppArmor on Ubuntu? SELinux is not installed on Ubuntu. Or is it because the Zabbix directory for the frontends is situated in the /opt/ directory.
  • -pinguin-
    Junior Member
    • Jun 2018
    • 7

    #2
    edit:

    In the Zabbix log file I found this:
    3929:20180622:121613.832 [Z3001] connection to database 'zabbix' failed: [1045] Access denied for user 'zabbix'@'localhost' (using password: NO)
    3929:20180622:121613.832 database is down: reconnecting in 10 seconds

    I already executed this command:
    Code:
    grant all privileges on zabbix_db.* to zabbix@localhost identified by 'password';

    but it didn't help, though I am able to log on the mysql server with the login data of the zabbix user...

    Comment

    • -pinguin-
      Junior Member
      • Jun 2018
      • 7

      #3
      I don't understand how it happened... I created the database with the necessary permissions again, copied the database password from there and insert it in the zabbix.conf.php file as well as in the zabbix_server.conf file. Since then Zabbix is working again. The passwords looked equal, but apparently they weren't...

      Comment

      • -pinguin-
        Junior Member
        • Jun 2018
        • 7

        #4
        This problem occured right now again... Anyone an idea else?

        Comment

        • Atsushi
          Senior Member
          • Aug 2013
          • 2028

          #5
          It is in the log message as follows.

          Code:
          3929:20180622:121613.832 [Z3001] connection to database 'zabbix' failed: [1045] Access denied for user 'zabbix'@'localhost' (using password: NO)
          3929:20180622:121613.832 database is down: reconnecting in 10 seconds
          And you say that it was set as follows.

          Code:
          grant all privileges on zabbix_db.* to zabbix@localhost identified by 'password';
          The names of the databases do not match.
          The former database name is "zabbix", the latter database name is "zabbix_db".
          Please match the database name of the created database with the contents of the configuration file.

          ex.
          DBName in zabbix_server.conf
          $DB['DATABASE'] in zabbix.conf.php

          Comment

          Working...