#一、下载安装,配置agent
[root@zabbix-server ~]# vim /etc/zabbix/zabbix_agentd.conf # 配置agent,添加并修改
EnableRemoteCommands=1 允许远程命令
LogRemoteCommands=1 记录远程命令
Server=127.0.0.1
ServerActive=127.0.0.1
Hostname=zabbix-server
[root@zabbix-server ~]# systemctl start zabbix-agent
#二、自动生成Zabbix server 的主机
配置—主机
[外链图片转存失败,源站可能有防盗链机制,建议将图片保存下来直接上传(img-7qUITSE0-1585730976883)(https://upload-images.jianshu.io/upload_images/21294643-fa6437f82a5b024b.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240)]
#三、在主机中添加模板
配置–主机—zabbix–server—模板—选择Template DB MYsql -----添加 -----更新
[外链图片转存失败,源站可能有防盗链机制,建议将图片保存下来直接上传(img-yd70Tgbq-1585730976885)(https://upload-images.jianshu.io/upload_images/21294643-d703b7ac24dbb2ec.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240)]
[外链图片转存失败,源站可能有防盗链机制,建议将图片保存下来直接上传(img-Vk8w22Wu-1585730976885)(https://upload-images.jianshu.io/upload_images/21294643-330dfa357fdb09aa.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240)]
#四、启用Zabbix server
[外链图片转存失败,源站可能有防盗链机制,建议将图片保存下来直接上传(img-kM9mpF3d-1585730976885)(https://upload-images.jianshu.io/upload_images/21294643-e10267b67ba30dfa.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240)]
#五、监控到数据
[外链图片转存失败,源站可能有防盗链机制,建议将图片保存下来直接上传(img-ahj64T8Z-1585730976885)(https://upload-images.jianshu.io/upload_images/21294643-6c26e97c8260860a.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240)]