Use the mod_status module to monitor the apache service, mod_statusapache

Source: Internet
Author: User

Use the mod_status module to monitor the apache service, mod_statusapache
Apache service can be monitored using the mod_status module, which is represented as LoadModule status_module modules/mod_status.so in the apache configuration file httpd. conf. Comment out the previous # to load the module. Jump to the end of the configuration file by G and add <location/server-status> SetHandler server-status Order Deny, Allow Deny from nothing Allow from all </location>

 

ExtendedStatus On

 

In this way, mod_status is loaded successfully. Enter the URL http: // IP: PORT/server-status to monitor the apache service. The following figure shows the monitoring information displayed on the webpage:

 

 

Parameter description:

Field Description: Version of the Apache Server. The time when the Server Built Apache Server is compiled and installed. Current Time the Current system Time. Restart Time the Time when Apache restarts. The Generation number of the Parent Server Generation Apache parent program (Parent process), that is, the number of times that httpd receives SIGHUP and restarts. Server uptime the time that has elapsed since Apache was started. Total accesses: the number of connections received by Apache and the amount of data transferred. CPU Usage current CPU Usage. _ SWSS... the current status of all Apache processes. Each character represents a program, and the status of up to 256 programs can be displayed. Scoreboard Key. The meaning of each character symbol is as follows: * _: waiting for the link. * S: starting. * R: Reading requirement. * W: A response is being sent. * K: Keep online. * D: The DNS is being searched. * C: the link is being closed. * L: The record file is being written. * G: Enter the normal end program. * I: processing is idle. *.: This program does not exist. Srv generation number of the program and its parent program. PID process id of the program. Acc indicates the number of accesses processed by the program and online respectively. M The current state of the program. CPU the CPU resources consumed by the program. The time when the SS was requested by the previous processing. The time required for the last Req processing, measured in 1‰ seconds. Conn The amount of data transmitted online. The amount of data transmitted by the Child Program. The volume of data transmitted by the Slot. The address of the Client. The virtual host or the IP address of the local host. Request information.

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.