Zabbix front-end configuration
Author: Yin Zhengjie
Copyright: original works, declined to reprint! Otherwise held liable.
A. Installation zabbix
Bloggers Recommended reading: https://www.cnblogs.com/yinzhengjie2020/p/12302137.html https://www.cnblogs.com/yinzhengjie2020/p/12305427.html
Second Configuration zabbix distal (referring: https: //www.zabbix.com/documentation/4.0/manual/installation/install#installing_frontend)
1>. Access zabbix front-end address (http://zabix201.yinzhengjie.org.cn/zabbix/setup.php) into the welcome screen
2>. As shown below, the drop-down condition check the progress bar, if all parameters are "OK", you can enter the next step
3>. Zabbix distal configuration database information
4>. Zabbix server configuration information
5> The configuration of the previous review what to do if there is no final confirmation, then proceed to the next question
6>. After installation, the distal end back to the automatic configuration information is stored on the server zabbix, as shown in FIG.
[[email protected] ~]# cat /usr/share/zabbix/conf/zabbix.conf.php <?php // Zabbix GUI configuration file. global $DB; $DB['TYPE'] = 'MYSQL'; $DB['SERVER'] = '172.200.5.201'; $DB['PORT'] = '3306'; $DB['DATABASE'] = 'zabbix'; $DB['USER'] = 'zabbix'; $DB['PASSWORD'] = 'yinzhengjie'; // Schema name. Used for IBM DB2 and PostgreSQL. $DB['SCHEMA'] = ''; $ZBX_SERVER = '172.200.5.201'; $ZBX_SERVER_PORT = '10051'; $ZBX_SERVER_NAME = 'Yinzhengjie\'s Zabbix Server'; $IMAGE_FORMAT_DEFAULT = IMAGE_FORMAT_PNG; [[email protected] ~]# [[email protected] ~]#
7>.安装完成后会自动跳转到登录界面
三.登录zabbix数据库
1>.使用默认的用户名(Admin)和密码(yinzhengjie)登录zabbix WebUI
2>.登录成功啦
四.修改Zabbix WebUI管理员的默认密码
1>.如下图所示,登录zabbix WebUI后,点击右上角的小人图标
2>.如下图所示,点击"Change password"
3>.修改管理员用户的密码
五.配置ubuntu支持中文界面
1>.如下图所示,登录zabbix WebUI后,点击右上角的小人图标
2>.查看zabbix支持的语言
3>.Ubuntu系统安装中文语言相关软件包
[[email protected] ~]# apt-get -y install language-pack-zh* Reading package lists... Done Building dependency tree Reading state information... Done Note, selecting 'language-pack-zh-hant-base' for glob 'language-pack-zh*' Note, selecting 'language-pack-zh-hans-base' for glob 'language-pack-zh*' Note, selecting 'language-pack-zh' for glob 'language-pack-zh*' Note, selecting 'language-pack-zh-base' for glob 'language-pack-zh*' Note, selecting 'language-pack-zh-hans' for glob 'language-pack-zh*' Note, selecting 'language-pack-zh-hant' for glob 'language-pack-zh*' The following NEW packages will be installed: language-pack-zh-hans language-pack-zh-hans-base language-pack-zh-hant language-pack-zh-hant-base 0 upgraded, 4 newly installed, 0 to remove and 136 not upgraded. Need to get 4,810 kB of archives. After this operation, 20.1 MB of additional disk space will be used. Get:1 http://mirrors.aliyun.com/ubuntu bionic-updates/main amd64 language-pack-zh-hans-base all 1:18.04+20180712 [1,692 kB] Get:2 http://mirrors.aliyun.com/ubuntu bionic-proposed/main amd64 language-pack-zh-hans all 1:18.04+20200123 [1,119 kB] Get:3 http://mirrors.aliyun.com/ubuntu bionic-updates/main amd64 language-pack-zh-hant-base all 1:18.04+20180712 [1,221 kB] Get:4 http://mirrors.aliyun.com/ubuntu bionic-proposed/main amd64 language-pack-zh-hant all 1:18.04+20200123 [778 kB] Fetched 4,810 kB in 1s (4,037 kB/s) Selecting previously unselected package language-pack-zh-hans-base. (Reading database ... 70231 files and directories currently installed.) Preparing to unpack .../language-pack-zh-hans-base_1%3a18.04+20180712_all.deb ... Unpacking language-pack-zh-hans-base (1:18.04+20180712) ... Selecting previously unselected package language-pack-zh-hans. Preparing to unpack .../language-pack-zh-hans_1%3a18.04+20200123_all.deb ... Unpacking language-pack-zh-hans (1:18.04+20200123) ... Replacing files in old package language-pack-zh-hans-base (1:18.04+20180712) ... Selecting previously unselected package language-pack-zh-hant-base. Preparing to unpack .../language-pack-zh-hant-base_1%3a18.04+20180712_all.deb ... Unpacking language-pack-zh-hant-base (1:18.04+20180712) ... Selecting previously unselected package language-pack-zh-hant. Preparing to unpack .../language-pack-zh-hant_1%3a18.04+20200123_all.deb ... Unpacking language-pack-zh-hant (1:18.04+20200123) ... Replacing files in old package language-pack-zh-hant-base (1:18.04+20180712) ... Setting up language-pack-zh-hant (1:18.04+20200123) ... Setting up language-pack-zh-hant-base (1:18.04+20180712) ... Generating locales (this might take a while)... zh_HK.UTF-8... done zh_TW.UTF-8... done Generation complete. Setting up language-pack-zh-hans (1:18.04+20200123) ... Setting up language-pack-zh-hans-base (1:18.04+20180712) ... Generating locales (this might take a while)... zh_CN.UTF-8... done zh_SG.UTF-8... done Generation complete. [[email protected] ~]#
4>.配置环境变量
[[email protected] ~]# cat /etc/environment PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games" [[email protected] ~]# [[email protected] ~]# vim /etc/environment [[email protected] ~]# [[email protected] ~]# cat /etc/environment #添加下面2行 PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games" LANG="ch_CN.UTF-8" LANGUAGE="ch_CN:zh:en_US:en" [[email protected] ~]#
5>.选择编码"zh_CN.UTF-8"
[[email protected] ~]# dpkg-reconfigure locales #会弹出如下图所示的一个界面,选中语言。
上一步配置后,会弹出如下图所示的对话框,继续选择"zh_CN.UTF-8"
7>.重启服务使得配置生效
[[email protected] ~]# systemctl restart zabbix-server zabbix-agent apache2
8>.刷新zabbix WebUI网页
六.解决zabbix中午乱码问题
1>.
2>.
3>.