Apache mod_watch monitoring plugin
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Mikanoshi d36b6a21c7 HTTP/2 support 6 years ago
LICENSE Initial commit 6 years ago
README.html HTTP/2 support 6 years ago
check_apache_watch Exit code 6 years ago
graph.jpg Initial commit 6 years ago


Monitoring plugin for Apache with mod_watch

Collects request and document counts.
Plugin supports Nagios, Collectd and Influx Line Protocol output formats.

- Perl interpreter
- mod_watch module (patches for Apache 2.4 can be found here)

Example Apache config

LoadModule watch_module libexec/apache24/mod_watch.so
	<Location /watch-list>
		SetHandler watch-list
Collectd output format requires adding this line to types.db file:
apache	docs:GAUGE:0:U, reqs:GAUGE:0:U

Plugin parameters

<watch-list url>
	[Required] watch-list URL, e.g. http://login:pass@
	[Required] Comma-separated list of domains to monitor (used as type-instances for collectd and as "domain" tag for influxlp)
	[Optional] Output format - nagios, collectd, influxlp (defaults to nagios)

Collectd format:
	[Optional] Hostname (defaults to current system hostname)
	[Optional] Plugin name (defaults to apachewatch)
	[Optional] Interval (defaults to 60 sec)

Influx Line-Protocol format:
	[Optional] Measurement name (defaults to apachewatch)

Graph example (InfluxDB + Grafana):