You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

1.0 KiB

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  [-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):