14、修改语言为中文
15、修改乱码
上传windows字体到zabbix中
1. [root@Zabbix ~]# cd /usr/share/fonts/dejavu 2. [root@Zabbix dejavu]# ll 3. total 5288 4. -rw-r--r-- 1 root root 611212 Feb 27 2011 DejaVuSans-BoldOblique.ttf 5. -rw-r--r-- 1 root root 672300 Feb 27 2011 DejaVuSans-Bold.ttf 6. -rw-r--r-- 1 root root 580168 Feb 27 2011 DejaVuSansCondensed-BoldOblique.ttf 7. -rw-r--r-- 1 root root 631992 Feb 27 2011 DejaVuSansCondensed-Bold.ttf 8. -rw-r--r-- 1 root root 576004 Feb 27 2011 DejaVuSansCondensed-Oblique.ttf 9. -rw-r--r-- 1 root root 643852 Feb 27 2011 DejaVuSansCondensed.ttf 10. -rw-r--r-- 1 root root 345204 Feb 27 2011 DejaVuSans-ExtraLight.ttf 11. -rw-r--r-- 1 root root 611556 Feb 27 2011 DejaVuSans-Oblique.ttf 12. -rw-r--r-- 1 root root 720012 Feb 27 2011 DejaVuSans.ttf 13. [root@Zabbix dejavu]# rz -E 14. rz waiting to receive. 15. [root@Zabbix dejavu]# mv DejaVuSans.ttf DejaVuSans.ttf.bak 16. [root@Zabbix dejavu]# mv simhei.ttf DejaVuSans.ttf
Zabbix添加监控服务器
1、安装zabbix-agent客户端,准备一台服务器10.0.0.7
1. #配置yum仓库 2. rpm -ivh https://mirrors.aliyun.com/zabbix/zabbix/5.0/rhel/7/x86_64/zabbix-agent-5.0.34-1.el7.x86_64.rpm 3. #解决软件冲突 4. yum -y install centos-release-scl 5. #安装客户端agent 6. yum -y install zabbix-agent
2、配置zabbix客户端服务器信息,启动服务端
1. [root@Web01 yum.repos.d]# cat /etc/zabbix/zabbix_agentd.conf 2. Server=172.16.1.71 3. [root@Web01 yum.repos.d]# systemctl start zabbix-agent
3、zabbix监控web01
拆分数据库
1、准备一台数据库服务器10.0.0.51安装mariadb
1. [root@DB01 ~]# yum -y install mariadb-server 2. [root@DB01 ~]# systemctl start mariadb 3. [root@DB01 ~]# systemctl enable mariadb 4. [root@DB01 ~]# mysql 5. Welcome to the MariaDB monitor. Commands end with ; or \g. 6. Your MariaDB connection id is 2 7. Server version: 5.5.68-MariaDB MariaDB Server 8. 9. Copyright (c) 2000, 2018, Oracle, MariaDB Corporation Ab and others. 10. 11. Type 'help;' or '\h' for help. Type '\c' to clear the current input statement. 12. 13. MariaDB [(none)]> create database zabbix character set utf8 collate utf8_bin; 14. Query OK, 1 row affected (0.00 sec) 15. 16. MariaDB [(none)]> create user 'zabbix'@'%' identified by 'zabbix'; 17. Query OK, 0 rows affected (0.00 sec) 18. 19. MariaDB [(none)]> grant all privileges on zabbix.* to 'zabbix'@'%'; 20. Query OK, 0 rows affected (0.00 sec) 21. 22. MariaDB [(none)]> quit 23. Bye
2、导出zabbix服务器zabbix数据库,导入到新的数据库
1. [root@Zabbix ~]# mysqldump -uroot -B zabbix > zabbix.sql 2. [root@Zabbix ~]# cat zabbix.sql |mysql -h 172.16.1.51 -uzabbix -pzabbix zabbix
3、配置WEB连接数据库信息并重启服务
1. [root@Zabbix ~]# cat /etc/zabbix/web/zabbix.conf.php 2. <?php 3. // Zabbix GUI configuration file. 4. 5. $DB['TYPE'] = 'MYSQL'; 6. $DB['SERVER'] = '172.16.1.51'; 7. $DB['PORT'] = '3306'; 8. $DB['DATABASE'] = 'zabbix'; 9. $DB['USER'] = 'zabbix'; 10. $DB['PASSWORD'] = 'zabbix'; 11. ...... 12. [root@Zabbix ~]# grep ^DB /etc/zabbix/zabbix_server.conf 13. DBHost=172.16.1.51 14. DBName=zabbix 15. DBUser=zabbix 16. DBPassword=zabbix 17. [root@Zabbix ~]# systemctl restart zabbix-server httpd
我是koten,10年运维经验,持续分享运维干货,感谢大家的阅读和关注!