CentOS 7.4 安装Zabbix 3.4(4)

1 [root@linuxidc ~]# cat /etc/zabbix/web/zabbix.conf.php 2 3 <?php 4 5 // Zabbix GUI configuration file. 6 7 global $DB; 8 9 10 11 $DB['TYPE'] = 'MYSQL'; 12 13 $DB['SERVER'] = 'localhost'; 14 15 $DB['PORT'] = '0'; 16 17 $DB['DATABASE'] = 'zabbix'; 18 19 $DB['USER'] = 'zabbix'; 20 21 $DB['PASSWORD'] = 'zabbix'; 22 23 24 25 // Schema name. Used for IBM DB2 and PostgreSQL. 26 27 $DB['SCHEMA'] = ''; 28 29 30 31 $ZBX_SERVER = 'localhost'; 32 33 $ZBX_SERVER_PORT = '10051'; 34 35 $ZBX_SERVER_NAME = 'Zabbix 监控平台'; 36 37 38 39 $IMAGE_FORMAT_DEFAULT = IMAGE_FORMAT_PNG; 40 41 [root@linuxidc ~]#

点击finish

CentOS 7.4 安装Zabbix 3.4

登录最新版Zabbix3.4 默认用户Admin 默认密码zabbix

输入用户名和密码以后点击 sign in

CentOS 7.4 安装Zabbix 3.4

CentOS 7.4 安装Zabbix 3.4

到此安装已经结束

五、zabbxi-agent安装及配置 安装zabbxi-agent

1 [root@linuxidc ~]# yum install zabbix-agent –y 2 3 已加载插件:fastestmirror, langpacks 4 5 Loading mirror speeds from cached hostfile 6 7 * base: mirrors.aliyun.com 8 9 * epel: mirrors.tuna.tsinghua.edu.cn 10 11 * extras: mirrors.aliyun.com 12 13 * updates: mirrors.aliyun.com 14 15 正在解决依赖关系 16 17 There are unfinished transactions remaining. You might consider running yum-complete-transaction, or "yum-complete-transaction --cleanup-only" and "yum history redo last", first to finish them. If those don't work you'll have to try removing/installing packages by hand (maybe package-cleanup can help). 18 19 --> 正在检查事务 20 21 ---> 软件包 zabbix-agent.x86_64.0.3.4.1-1.el7 将被 安装 22 23 --> 解决依赖关系完成 24 25 26 27 依赖关系解决 28 29 30 31 ===================================================================================================================================================== 32 33 Package 架构 版本 源 大小 34 35 ===================================================================================================================================================== 36 37 正在安装: 38 39 zabbix-agent x86_64 3.4.1-1.el7 zabbix 353 k 40 41 42 43 事务概要 44 45 ===================================================================================================================================================== 46 47 安装 1 软件包 48 49 50 51 总下载量:353 k 52 53 安装大小:1.3 M 54 55 Downloading packages: 56 57 zabbix-agent-3.4.1-1.el7.x86_64.rpm | 353 kB 00:00:04 58 59 Running transaction check 60 61 Running transaction test 62 63 Transaction test succeeded 64 65 Running transaction 66 67 正在安装 : zabbix-agent-3.4.1-1.el7.x86_64 1/1 68 69 验证中 : zabbix-agent-3.4.1-1.el7.x86_64 1/1 70 71 72 73 已安装: 74 75 zabbix-agent.x86_64 0:3.4.1-1.el7 76 77 78 79 完毕! 80 81

配置zabbxi-agent

1 [root@linuxidc ~]# vim /etc/zabbix/zabbix_agentd.conf

修改IP地址server IP地址

CentOS 7.4 安装Zabbix 3.4

输入IP地址

CentOS 7.4 安装Zabbix 3.4

修改serverActive IP地址

CentOS 7.4 安装Zabbix 3.4

输入IP地址

CentOS 7.4 安装Zabbix 3.4

启动zabbxi-agent并设置开机启动

[root@linuxidc ~]# systemctl restart zabbix-agent.service

[root@linuxidc ~]# systemctl enable zabbix-agent.service

更多Zabbix相关教程集合: 

内容版权声明:除非注明,否则皆为本站原创文章。

转载注明出处:https://www.heiqu.com/920f84eef01aa50ca1e572c415a5c035.html