| Line | |
|---|
| 1 |
<?xml version="1.0"?> |
|---|
| 2 |
<section> |
|---|
| 3 |
<title>nginx</title> |
|---|
| 4 |
<para>The nginx module gathers information from the nginx stub_status module</para> |
|---|
| 5 |
<variablelist> |
|---|
| 6 |
<varlistentry> |
|---|
| 7 |
<term>loader</term> |
|---|
| 8 |
<listitem> |
|---|
| 9 |
<para>lua</para> |
|---|
| 10 |
</listitem> |
|---|
| 11 |
</varlistentry> |
|---|
| 12 |
<varlistentry> |
|---|
| 13 |
<term>object</term> |
|---|
| 14 |
<listitem> |
|---|
| 15 |
<para>noit.module.nginx</para> |
|---|
| 16 |
</listitem> |
|---|
| 17 |
</varlistentry> |
|---|
| 18 |
</variablelist> |
|---|
| 19 |
<section> |
|---|
| 20 |
<title>Module Configuration</title> |
|---|
| 21 |
</section> |
|---|
| 22 |
<section> |
|---|
| 23 |
<title>Check Configuration</title> |
|---|
| 24 |
<variablelist> |
|---|
| 25 |
<varlistentry> |
|---|
| 26 |
<term>url</term> |
|---|
| 27 |
<listitem> |
|---|
| 28 |
<variablelist> |
|---|
| 29 |
<varlistentry> |
|---|
| 30 |
<term>required</term> |
|---|
| 31 |
<listitem> |
|---|
| 32 |
<para>required</para> |
|---|
| 33 |
</listitem> |
|---|
| 34 |
</varlistentry> |
|---|
| 35 |
<varlistentry> |
|---|
| 36 |
<term>allowed</term> |
|---|
| 37 |
<listitem> |
|---|
| 38 |
<para>.+</para> |
|---|
| 39 |
</listitem> |
|---|
| 40 |
</varlistentry> |
|---|
| 41 |
</variablelist> |
|---|
| 42 |
<para>The URL including schema and hostname for the status output from nginx.</para> |
|---|
| 43 |
</listitem> |
|---|
| 44 |
</varlistentry> |
|---|
| 45 |
</variablelist> |
|---|
| 46 |
</section> |
|---|
| 47 |
<example> |
|---|
| 48 |
<title>Monitor an nginx server with a status page available at http://10.1.2.3/nginx_status</title> |
|---|
| 49 |
<para>The following example pulls metrics from Nginx's status module (http://wiki.nginx.org/HttpStubStatusModule) from http://10.1.2.3/nginx_status</para> |
|---|
| 50 |
<programlisting> |
|---|
| 51 |
<noit> |
|---|
| 52 |
<modules> |
|---|
| 53 |
<loader image="lua" name="lua"> |
|---|
| 54 |
<config><directory>/opt/reconnoiter/libexec/modules-lua/?.lua</directory></config> |
|---|
| 55 |
</loader> |
|---|
| 56 |
<module loader="lua" name="nginx" object="noit.module.nginx"/> |
|---|
| 57 |
</modules> |
|---|
| 58 |
<checks> |
|---|
| 59 |
<check uuid="CAC1A58F-1670-4F71-8D15-21461D3F6624" name="nginx_10123" module="nginx" target="10.1.2.3"> |
|---|
| 60 |
<config> |
|---|
| 61 |
<url>http://10.1.2.3/nginx_status</url> |
|---|
| 62 |
</config> |
|---|
| 63 |
</checks> |
|---|
| 64 |
</noit> |
|---|
| 65 |
</programlisting> |
|---|
| 66 |
</example> |
|---|
| 67 |
</section> |
|---|