Nginx vhost monitoring plugin

Nginx vhost monitoring plugin

Counts number of requests for each virtual host defined in Nginx.

Plugin supports Nagios and Influx Line Protocol output formats.


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 "" -z, -i -m myvhosts

Graph example (InfluxDB + Grafana):

InfluxDB + Grafana