自定义监控项
监控server2上的http
yum install httpd -y
systemctl start httpd
systemctl enable httpd
监控server3上的nginx
cd nginx-1.17.8/
yum install gcc pcre-devel zlib-devel -y
./configure --prefix=/usr/local/nginx --with-http_stub_status_module
注意编译监控模块
make && make install
cd /usr/local/nginx/conf/
ln -s /usr/local/nginx/sbin/nginx /usr/local/sbin