Google

Apache Server Status

A state-less EPA plugin, that reads Apache HTTPd mod-status performance data.

How it works

The script reads the response of a HTTP GET request to http://myWebHost/server-status?auto. The various information elements are parsed out and converted into Introscope metrics. The script can read status from both HTTP and HTTPS requests. The web host name is reflected in the metric name, so it’s easy to differentiate between several servers.

Apache Server Status

Introscope metrics based on Apache Server Status.

mod-status HTTP response

Sample HTTP response from http://www.apache.org/server-status?auto

Configuration

Files

Requirements

  • Perl 5
  • cURL (usr/bin/curl)
  • Apache mod-status configured and enabled for the target web server

Plugin configuration

introscope.epagent.plugins.stateless.names=APACHE
introscope.epagent.stateless.APACHE.command=perl ./epaplugins/ribomation/apache-status.pl --host=www.apache.org
introscope.epagent.stateless.APACHE.delayInSeconds=15

Parameters

Parameter Default Description
prefix Apache Status Metric root node name
host localhost Hostname or IP of Apache HTTPd server
port 80 Non-standard port number
https Enable HTTPS access
debug Enable DEBUG printouts to STDERR
help Print HELP and exit

Leave a Comment

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Why ask?