Nginx vhost requests 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 57ef4a22f3 README 3 years ago
LICENSE Initial commit 3 years ago
README.html README 3 years ago
check_nginx_vhost Initial commit 3 years ago
graph.jpg Initial commit 3 years ago

README.html

Nginx vhost monitoring plugin


Counts number of requests for each virtual host defined in Nginx.
Supports Nagios and Influx Line Portocol output formats.

Requirements:
- PHP interpreter
- Nginx with ngx_http_vhost_traffic_status_module compiled statically or dynamically

Plugin parameters

check_nginx_vhost -u <url to json formatted vhost stats> [-z ] [-t] [-i] [-m measurement]
Optional parameters
	-z	Comma-separated list of zones (vhosts), display all if not specified
	-t	Include total request count
	-i	Influx Line Protocol output format instead of Nagios
	-m	Measurement name ("nginxvhost" by default)
Example: check_nginx_vhost -u "http://example.com/status/format/json" -z one.com,two.com -i -m myvhosts

Graph example (InfluxDB + Grafana):