Web login Zabbix db type is not set

Source: Internet
Author: User
Tags ibm db2

Today, when accessing Zabbix through the Web, the following error is reported

650) this.width=650; "title=" 1.PNG "src=" https://s4.51cto.com/wyfs02/M01/93/FA/wKioL1kLI_rBkf_9AAAO-0aC4KI666.png "alt=" Wkiol1kli_rbkf_9aaao-0ac4ki666.png "/>

Check the php file about Zabbix Web interface settings, do not know why it became an empty file, the cause of the error get!

650) this.width=650; "title=" 3.PNG "src=" https://s2.51cto.com/wyfs02/M02/93/FD/wKiom1kLJKPzD4H-AAAN0G3P26Y468.png "alt=" Wkiom1kljkpzd4h-aaan0g3p26y468.png "/>

Fortunately, this file is a template, do not have to start from the zero configuration, the following to see the contents of this template file

[Email protected] ~]# cat/usr/share/zabbix/conf/zabbix.conf.php.example
<?php
Zabbix GUI configuration file. #解释了这个文件的作用
Global $DB;

$DB [' TYPE '] = ' MYSQL ';
$DB [' SERVER '] = ' localhost ';
$DB [' PORT '] = ' 0 ';
$DB [' DATABASE '] = ' Zabbix ';
$DB [' USER '] = ' Zabbix ';
$DB [' 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;


Direct copy coverage, of course, everyone's actual situation may not be the same as I, according to their own situation set on OK

650) this.width=650; "Width=" "height=" "title=" 4.PNG "style=" WIDTH:692PX;HEIGHT:106PX; "src=" https:// S4.51cto.com/wyfs02/m02/93/ff/wkiom1kljzyiaxadaaai8veg0us511.png "border=" 0 "vspace=" 0 "hspace=" 0 "alt=" Wkiom1kljzyiaxadaaai8veg0us511.png "/>


and then the error.

650) this.width=650; "Width=" 678 "height=" 201 "title=" 2.PNG "style=" width:642px;height:191px; "src=" https:// S3.51cto.com/wyfs02/m00/93/ff/wkiom1kljf3at7_2aaab8xirnzy135.png "alt=" Wkiom1kljf3at7_2aaab8xirnzy135.png "/>


The principle is that there is no password in my php file.

$DB [' PASSWORD '] = ';

Revision changed to

$DB [' PASSWORD '] = ' Zabbix ';


Restart Zabbix, problem solved.


Everyone later if the Web login Zabbix error, you can find the reason from the above ideas, perhaps there will be a harvest.


This article is from the "open source spirit of sharing" blog, please be sure to keep this source http://lidaxia.blog.51cto.com/11588738/1922192

Web login Zabbix db type is not set

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.