Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

This check parses the information provided by the NGINX stub status module. If you have enabled that module, then the URL /nginx_status shows interesting information about the inner state of the web server when accessed from localhost. The agent plugin nginx_status fetches these information and processes it.

Table of Contents
outlinetrue

Step-by-step guide

After installing and configuring nginx you can follow this steps to monitor Nginx status.

  1. Nginx stub status module

    Make sure that the server process is configured with the stub status module. Use the command:

    Code Block
    linenumberstrue
    root@klappanas:~# nginx -V 2>&1 | grep -o with-http_stub_status_module   
    with-http_stub_status_module


  2. Add a new server block configuration inside /etc/nginx/sites-enabled/default

  3. restart nginx service

  4. Now the Url 127.0.0.1:8081/nginx_status should be available

  5. Configure nginx_status

    1. manually
    2. via Bakery

...