The Apache HTTP Server, also known as Apache HTTPd, is a commonly used web server software. Its wide usage has been due to its easy customizable feature and being open source.
If you have been using Apache, it is critical to monitor its performance to be aware of degradation issues and bottlenecks. Use our plugin and see real time performance trends and historical metrics, all in a single dashboard. This document details:
req_per_sec records the total number of HTTP requests the web server is processing per second.
Use the metric busy_workers to get the total number of processes actively processing an HTTP request
idle_workers is the total number of idle workers/idle processes waiting for an HTTP request. If you have very few or no idle processes, it means your server is using up all the processes and new requests have to be on hold until the older requests are completed.
The metric uptime gets the total amount of time the server has been up and running.
Bytes per Second
bytes_per_sec records the total amount of data the web server is transferring per second.
Use the metric cpu_load and get the total percentage of CPU used by the web server.
Bytes per Request
The average number of bytes being transferred per HTTP request is obtained using the metric bytes_per_req.
The total number of accesses on the server is monitored using the metric total_accessess.
This is a Python based plugin supported from Python versions 2.7 and above. For version 2.7, we use urllib2 module and for version 3.0 and above, we use urllib module for monitoring the web server.
Please follow the below steps to configure your web server to monitor its performance. Regardless of the system you’re using, make sure to save a backup of the configuration file before making changes to it; in case you need to revert to an earlier version.
Configuring the Status URL: For your server to be available at http://localhost:80/server-status, the server should be running and status module (mod_status) should be enabled.
Edit the status module's configuration file: /etc/apache2/mods-enabled/status.load
Find the below line and make sure it is uncommented
Configure Apache as mentioned above to monitor its performance attributes.
Download and install the latest version of the Site24x7 Linux agent in the server where you plan to run the plugin. If it is installed successfully, you will see a Linux server monitor in the Site24x7 Control Panel. This confirms that the agent is able to communicate with our data center.