Zabbix surveillance Apache

Source: Internet
Author: User

Environment: Zabbix 3.2 apache/2.2.15

[Email protected] ~]# cat/etc/httpd/conf/httpd.conf | grep status#查看是否安装mod_status.so模块
LoadModule Status_module modules/mod_status.so

Modify Httpd.conf

<Location/server-status>
SetHandler Server-status
Order Deny,allow
Allow from all
</Location>

And then restart the HTTPD service:/etc/init.d/httpd restart

Visit this interface to show the OK.

Http://ip/server-status

Writing Apache Status monitoring scripts

[[email protected] Zabbix] #mkdir/etc/zabbix/monitor_scripts #在zabbix目录下创建监控脚本目录
[[email protected] Zabbix] #vim/etc/zabbix/zabbix_agentd.conf Add a line #Include =/ETC/ZABBIX/ZABBIX_AGENTD.CONF.D
[[email protected] zabbix]# cat/etc/zabbix/zabbix_agentd.conf.d/userparameter_zapache.conf #新建一个配置文件, add a row
Userparameter=zapache[*],/etc/zabbix/monitor_scripts/zapache.sh \$1
[Email protected] zabbix]#/etc/init.d/zabbix-agent restart #重启一下zabbix_agent

Apache Script and Monitoring module: Https://pan.baidu.com/s/1eRBKEcE (extract password: NXS5)

Import Apache monitoring module in Zabbix interface

Then select the downloaded template to upload it.

Configuration--Host--edit--Add template--Create graphics

Zabbix surveillance Apache

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.