[Zabbix]监控Apache2.4.6 (CentOS)

1.查看Apache版本

[root@worker1 ~]# httpd -v
Server version: Apache/2.4.6 (CentOS)
Server built:   Apr  2 2020 13:13:23

2.开启server-status

cat >> /etc/httpd/conf/httpd.conf <<‘EOF‘
<Location "/server-status">
    SetHandler server-status
    Allow from 10.1.30.0/24 #添加你允许访问的网段
</Location>

3.重启服务

systemctl restart httpd

4.成功状态

http://<httpd服务器ip>/server-status

[Zabbix]监控Apache2.4.6 (CentOS)

END

[Zabbix]监控Apache2.4.6 (CentOS)

上一篇:7. Jackson用树模型处理JSON是必备技能,不信你看


下一篇:AJAX&JSON: