Centos 6.3 under Zabbix monitor Apache Server-status

Source: Internet
Author: User
Tags zip centos

System environment: centos6.3 x64

apache:httpd-2.4.4

zabbix:zabbix-2.06

First download the template on this machine: Https://github.com/rdvn/zabbix-templates/archive/master.zip

The ZIP package has Apache, Memcache, Redis, varnish templates, we unzipped the use of the Apache template

First, open the server-status of Apache:

# vi/usr/local/apache2/conf/httpd.conf

The last line adds the following:

---------------------

Extendedstatus on

<location/server-status>

SetHandler Server-status

Order Allow,deny

Allow from all

</location>

---------------------

Restart Apache for it to take effect:

#/usr/local/apache2/bin/apachectl Restart

Two. Zabbix Configuration:

Upload the apache_status.sh under the Apache directory in the downloaded ZIP package to the system/usr/local/bin/and give

Execute permissions

# chmod +x apache_status.sh

# ll/usr/local/bin/apache_status.sh

---------------

-rwxr-xr-x 1 root root 248 April apache_status.sh

---------------

To modify the zabbix_agentd.conf configuration:

# vi/usr/local/etc/zabbix_agentd.conf

The last line adds the following:

-------------

Userparameter=apache[*],/usr/local/bin/apache_status.sh $

-------------

Restart the Zabbix service

# Pkill Zabbix

#/ETC/INIT.D/ZABBIX_AGENTD Start

Related Article

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.