一.为什么要部署zabbix监控服务器它有什么好处?
1.它能随时报告web的运行情况
(1).每一部都能同时被监控
( 2) 内容包括吞吐量、反应时间、使用效率等
2.提前发现问题
(1)进行服务器性能调整前、知道调整的是什么.
(2)找出系统的瓶颈在什么地方
二. 监控的资源类别(这里只列举了一些)
1.公开的数据
(1) web、ftp、ssh.
(2) tcp、udp端口.
2.私有数据
(1)cpu、内存、磁盘、网卡流量等信息.
(2)用户、进程等运行信息.
三、拓扑图如下(假设IP都是内网)
![在这里插入图片描述](https://i-blog.csdnimg.cn/blog_migrate/a4303e4dfed3c9906760fff76fe49d1c.png)
四.部署lnmp
1.安装软件
[root@zabbixserver ~] yum -y install gcc pcre-devel openssl-devel
[root@zabbixserver ~] tar -xf nginx-1.12.2.tar.gz
[root@zabbixserver ~] cd nginx-1.12.2
[root@zabbixserver nginx-1.12.2]./configure --with-http_ssl_module
[root@zabbixserver nginx-1.12.2] make && make install
[root@zabbixserver ~] yum -y install php php-mysql php-fp[root@zabbixserver ~]
2.修改nginx配置文件
[root@zabbixserver ~]vim /usr/local/nginx/conf/nginx.conf
… …
http{
… …
fastcgi_buffers 8 16k;
fastcgi_buffer_size 32k;
fastcgi_connect_timeout 300;
fastcgi_send_timeout 300;
fastcgi_read_timeout 300;
location ~ \.php$ {
root html;
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
include fastcgi.conf;
}
… …
3.源码安装zabbix server