zabbix3.0.4 监控apache
2017-08-07 22:16
363 查看
开启apache的server-status
httpd.conf 末尾添加
重启apache
httpd.conf 末尾添加
[root@test3 /]# vim /usr/local/httpd-2.2.31/conf/httpd.conf ExtendedStatus On<location /server-status> SetHandler server-status Order Allow,Deny Allow from all</location>
重启apache
[root@test3 /]# /usr/local/bin/apachectl -t Syntax OK [root@test3 /]# /usr/local/bin/apachectl restart浏览器http://localhost/server-status或
[root@test3 /]# curl localhost/server-status重启zabbix
[root@test3 /]# /etc/init.d/zabbix_agentd restart Shutting down zabbix_agentd: [ OK ] Starting zabbix_agentd: [ OK ]下载模板
[root@test3 /]# wget https://github.com/lorf/zapache/archive/master.zip[/code]解压[root@test3 /]# unzip master.zip Archive: master.zip 24a764b2e224f9b8d0a6bc94dcadd7568b2fe650 creating: zapache-master/ inflating: zapache-master/README.md inflating: zapache-master/httpd-server-status.conf.sample inflating: zapache-master/userparameter_zapache.conf.sample inflating: zapache-master/zapache inflating: zapache-master/zapache-template-active.xml inflating: zapache-master/zapache-template.xml [root@test3 /]# cd zapache-master/[root@test3 zapache-master]# ls httpd-server-status.conf.sample zapache README.md zapache-template-active.xml userparameter_zapache.conf.sample zapache-template.xml
把文件放到相应的目录[root@test3 zapache-master]# cp userparameter_zapache.conf.sample /usr/local/zabbix/etc/zabbix_agentd.conf.d/ [root@test3 zabbix_agentd.conf.d]# mv userparameter_zapache.conf.sample userparameter_zapache.conf[root@test3 zabbix_agentd.conf.d]# cat userparameter_zapache.conf
#
# This is a sample zabbix_agentd config file.
# Put it to /etc/zabbix_agentd.conf.d or otherwise integrate into agent config.
# Edit to your needs.
#
UserParameter=zapache[*],/var/lib/zabbixsrv/externalscripts/zapache \$1修改下路径UserParameter=zapache[*],/usr/local/bin/zapache \$1 把zapache文件放到usr/local/bin[root@test3 zabbix_agentd.conf.d]# cd /zapache-master/[root@test3 zapache-master]# cp zapache /usr/local/bin/查看是否有执行权限[root@test3 bin]# ll zapache
-rwxr-xr-x 1 root root 6110 Sep 9 16:35 zapache没有权限可执行下面命令[root@test3 bin]# chmod +x zapache
修改zabbix -agentd.conf[root@test3 bin]# vim /usr/local/zabbix/etc/导入模板
关联模板配置-主机(选择apache客户端)模板-选择(选择上面导入的模板)-添加-更新
在web页面查看是否有数据
本文转自:http://www.cnblogs.com/zzzhfo/p/5884795.html
相关文章推荐
- centos 6.5 zabbix3.0.4 监控apache
- zabbix3.0.4使用percona-monitoring-plugins插件来监控mysql5.6的详细实现过程
- zabbix3.0.4通过自定义shell脚本添加对关键日志文件的监控
- zabbix3.0.4客户端安装及网卡流量监控配置 推荐
- zabbix-3.0.4添加对windows 2008r2的监控
- zabbix监控apache
- Zabbix监控apache与MySQL
- mikoomi -Zabbix监控Apache Hadoop插件/模板 (翻译)
- zabbix3.0.4通过自定义shell脚本添加对关键日志文件的监控
- 分布式监控系统Zabbix--完整安装记录 -添加apache监控
- Zabbix3.0.4监控Windows的CPU使用百分比并在CPU使用率超过90%触发报警
- 使用zabbix3.2监控apache
- Zabbix3.0.4监控Mysql
- zabbix监控mysql和apache
- zabbix3.0.4使用percona-monitoring-plugins插件来监控mysql5.6的详细实现过程
- 使用zabbix3.0.4的ICMP Ping模版实现对客户端网络状态的监控
- zabbix3.0.4监控mysql主从同步
- Ubuntu 12.04环境下使用Zabbix监控Apache的配置过程
- zabbix系列(四)Zabbix3.0.4添加对Nginx服务的监控
- zabbix监控Apache状态