Ad Widget

Collapse

Connecting to Zabbix problem

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • knguy7
    Junior Member
    • Nov 2016
    • 2

    #1

    Connecting to Zabbix problem

    I'm new to Zabbix hoping someone could help. Getting error message when connecting to Zabbix via ipaddress/zabbix/ screen is stuck showing error connecting to database:Access denied for user 'XXX'@'localhost (using password: YES) I have drop and re-create user for mysql, checked /etc/zabbix/zabbix_server.conf everything is configured properly, restarted httpd, firewall, and etc... Originally i was able to accessed webpage but sign in as guest. After create admin account webpage seem to be frozen with the pink box and error message displaying. My last option is to rebuild Zabbix again. Please shed some lights. thanks ahead!!!
  • Atsushi
    Senior Member
    • Aug 2013
    • 2028

    #2
    Please check /etc/zabbix/web/zabbix.conf.php for the database connection setting of the Web frontend.

    Comment

    • knguy7
      Junior Member
      • Nov 2016
      • 2

      #3
      Originally posted by Atsushi
      Please check /etc/zabbix/web/zabbix.conf.php for the database connection setting of the Web frontend.
      Do you have an example what it should look like for /etc/zabbix/web/zabbix.conf.php?

      Comment

      • Atsushi
        Senior Member
        • Aug 2013
        • 2028

        #4
        Samples are as follows.
        Code:
        <?php
        // Zabbix GUI configuration file.
        global $DB;
        
        $DB['TYPE']     = 'MYSQL';
        $DB['SERVER']   = 'localhost';
        $DB['PORT']     = '0';
        $DB['DATABASE'] = 'zabbix';
        $DB['USER']     = 'zabbix';
        $DB['PASSWORD'] = 'password';
        
        // Schema name. Used for IBM DB2 and PostgreSQL.
        $DB['SCHEMA'] = '';
        
        $ZBX_SERVER      = 'localhost';
        $ZBX_SERVER_PORT = '10051';
        $ZBX_SERVER_NAME = '';
        
        $IMAGE_FORMAT_DEFAULT = IMAGE_FORMAT_PNG;
        ?>

        Comment

        Working...