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.
17 lines
1.0 KiB
HTML
17 lines
1.0 KiB
HTML
<h1>Nginx vhost monitoring plugin</h1>
|
|
<br>Counts number of requests for each virtual host defined in Nginx.
|
|
<br>Supports Nagios and Influx Line Portocol output formats.
|
|
<br><br>
|
|
Requirements:<br>
|
|
- PHP interpreter<br>
|
|
- Nginx with <a href="https://github.com/vozlt/nginx-module-vts" target="_blank">ngx_http_vhost_traffic_status_module</a> compiled statically or dynamically<br>
|
|
<h3>Plugin parameters</h3>
|
|
<pre class="light-well">check_nginx_vhost -u <url to json formatted vhost stats> [-z <domain.com,example.org,...>] [-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</pre>
|
|
<h3>Graph example (InfluxDB + Grafana):</h3>
|
|
<img src="https://code.highspec.ru/Mikanoshi/check_nginx_vhost/raw/master/graph.jpg" /> |