5.23. nginx

The nginx module gathers information from the nginx stub_status module

loader

lua

object

noit.module.nginx

5.23.1. Module Configuration

5.23.2. Check Configuration

url
required

required

allowed

.+

The URL including schema and hostname for the status output from nginx.

ca_chain
required

optional

allowed

.+

A path to a file containing all the certificate authorities that should be loaded to validate the remote certificate (for SSL checks).

certificate_file
required

optional

allowed

.+

A path to a file containing the client certificate that will be presented to the remote server (for SSL checks).

key_file
required

optional

allowed

.+

A path to a file containing key to be used in conjunction with the cilent certificate (for SSL checks).

ciphers
required

optional

allowed

.+

A list of ciphers to be used in the SSL protocol (for SSL checks).

Example 5.24. Monitor an nginx server with a status page available at http://10.1.2.3/nginx_status

The following example pulls metrics from Nginx's status module (http://wiki.nginx.org/HttpStubStatusModule) from http://10.1.2.3/nginx_status

      <noit>
        <modules>
          <loader image="lua" name="lua">
            <config><directory>/opt/reconnoiter/libexec/modules-lua/?.lua</directory></config>
          </loader>
          <module loader="lua" name="nginx" object="noit.module.nginx"/>
        </modules>
        <checks>
         <check uuid="CAC1A58F-1670-4F71-8D15-21461D3F6624" name="nginx_10123" module="nginx" target="10.1.2.3">
           <config>
             <url>http://10.1.2.3/nginx_status</url>
           </config>
        </checks>
      </noit>