Ad Widget

Collapse

Zabbix server is not running: the information displayed may not be current

Collapse
This topic has been answered.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Samarch
    Junior Member
    • Jul 2024
    • 7

    #1

    Zabbix server is not running: the information displayed may not be current

    Hello

    I’ve just installed Zabbix 7 on Ubuntu 24.04

    On the main web page, I have the message
    Zabbix server is not running: the information displayed may not be current
    sudo systemctl status zabbix-server zabbix-agent apache2
    gives active for all

    In /var/log/zabbix/zabbix_server.log
    I have this message
    1276:20240716:125857.555 [Z3001] connection to database 'zabbix' failed: [1045] Access denied for user 'zabbix'@'localhost' (using password: YES)

    But, I configured the server with
    DB name zabbixdb
    and
    DB user zabbixusr

    And in /etc/zabbix/web/zabbix.conf.php
    I have indeed

    // Zabbix GUI configuration file.

    $DB['TYPE'] = 'MYSQL';
    $DB['SERVER'] = 'localhost';
    $DB['PORT'] = '0';
    $DB['DATABASE'] = 'zabbixdb';
    $DB['USER'] = 'zabbixusr';
    $DB['PASSWORD'] = 'mypassword';

    In mysql
    mysql> show databases;
    +--------------------+
    | Database |
    +--------------------+
    | information_schema |
    | mysql |
    | performance_schema |
    | sys |
    | zabbixdb |
    +--------------------+

    mysql> select user,host from mysql.user;
    +------------------+-----------+
    | user | host |
    +------------------+-----------+
    | debian-sys-maint | localhost |
    | mysql.infoschema | localhost |
    | mysql.session | localhost |
    | mysql.sys | localhost |
    | root | localhost |
    | zabbixusr | localhost |
    +------------------+-----------+
    6 rows in set (0.00 sec)

    Why does Zabbix still user zabbix as DB name and user name ?

    Thanks
  • Answer selected by Markku at 17-07-2024, 08:50.
    Markku
    Senior Member
    Zabbix Certified SpecialistZabbix Certified ProfessionalZabbix Certified Expert
    • Sep 2018
    • 1781

    Why does Zabbix still user zabbix as DB name and user name ?
    Most probably because your zabbix_server.conf has database and username set to "zabbix".

    Markku

    Comment

    • Markku
      Senior Member
      Zabbix Certified SpecialistZabbix Certified ProfessionalZabbix Certified Expert
      • Sep 2018
      • 1781

      #2
      Why does Zabbix still user zabbix as DB name and user name ?
      Most probably because your zabbix_server.conf has database and username set to "zabbix".

      Markku

      Comment

      • Samarch
        Junior Member
        • Jul 2024
        • 7

        #3
        Hello,

        Thanks

        Comment

        Working...