This template retrieves Apache server statistics from the built-in Apache server-status web page using PowerShell script. This script runs on Orion server machine.
Prerequisites: Access to the Apache server-status page for the Orion server.
Configuring Apache to allow access to the server-status page:
- Log on to your Apache Windows server.
- Locate the Apache configuration file, typically in httpd.conf.
- Append the following lines to your httpd.conf. You should allow access to server-page for your domain (.example.com):
Deny from all
Allow from APM_host
where APM_host – IP address or hostname of Orion server.
- Ensure that following line is uncommented and present in the httpd.conf file:
LoadModule status_module modules/mod_status.so
2. Restart the Apache server.
Credentials: Administrator on the SolarWinds server (all monitors run locally).
Note: Before using this template, the correct argument should be set in all monitors. All monitors require the following argument:
server_port - This is the Apache port under which the site is running. By default it set to port 80.
Below is an example using the Scripts Arguments field:
This counter returns the time, in seconds, that the server has been up.
This counter returns the number of free workers ready to handle client connections. This value should be as high as possible. If you have no idle workers, or very few, Apache may be using all of the processes it is allowed and new, incoming requests must wait for older requests to finish before they can be handled. If this is the case, increasing the maximum number of allowed processes in your configuration file might help with performance.
This counter returns the total number of accesses.
This counter returns the total number of kilobytes this server has served.
Server Requests Per Second
This counter returns the average rate of all requests per second. The result is calculated as the total number of requests throughout the life of the server (count) and divided by the total uptime in seconds (up_time).
Server kB Per Second
This counter returns the average rate of kilobytes served per second..
Server kB Per Request
This counter returns the average number of kilobytes per request.
This counter returns the number of busy workers serving requests. This counter should be as low as possible.
Last updated: 6/27/2014