Visualize NGINX web server load and performance, and collect key load metrics to track your NGINX instances behavior. Learn how the plugin works.
NGINX performance monitoring metrics:
Accepted connections
The total number of client connections accepted by the NGINX server.
Active connections
The total number of currently active client connections.
Dropped connections
The total number of client connections dropped by the NGINX server.
Idle connections
The total number of currently idle client connections.
Handshakes
The total number of successful SSL handshakes.
Failed handshakes
The total number of failed SSL handshakes.
Current requests
The total number of current client requests.
Total requests
The total number of client requests to the NGINX server.
Reused sessions
The total number of sessions reused by the NGINX server.
Requests by zone backend servers
The total number of requests received by the zone backend servers.
Responses by zone backend servers
The total number of responses sent by the zone backend servers.
Responses/ 1xx, 2xx, 3xx, 4xx, 5xx
The number of responses with status codes 1xx, 2xx, 3xx, 4xx, and 5xx.
How it works?
- Log-in to your Site24x7 account. Sign up here if you don't have one.
- Download and install the latest version of Site24x7 Linux Agent
- Install the NGINX plugin
- The agent will execute the NGINX plugin and push the data to the Site24x7 server
Prerequisites:
- Ensure that the NGINX server is installed and is up and running
- Ensure that the STATUS_URL in the config section is entered correctly
NGINX plugin installation:
- Create a directory with the name "nginx", under Site24x7 Linux Agent plugin directory - /opt/site24x7/monagent/plugins/nginx
- Download the file "nginx.py" from our GitHub repository and place it under the "nginx" directory
- Commands to perform the above step:
- Once the plugin file is downloaded, the agent will mark it up in the next data collection and you can view it in Site24x7 client
cd /opt/site24x7/monagent/plugins/
mkdir nginx
cd nginx
wget https://raw.githubusercontent.com/site24x7/plugins/master/nginx/nginx.py
NGINX plugin configuration:
- By default, the plugin will monitor NGINX instance that is configured on "localhost"
- In order to change the monitoring configuration, go to plugins directory and edit the "#Config Section:" in nginx.py file
NGINX plugin file location - /opt/site24x7agent/monagent/plugins/nginx/nginx.py
#Config Section:
NGINX_STATUS_URL = "http://localhost/status"
Monitoring additional metrics:
- To monitor additional metrics, edit the "nginx.py" file and add the new metrics that need monitoring
- Increment the plugin version value in the file "nginx.py" to view the newly added metrics (For e.g. Change the default plugin version from PLUGIN_VERSION = "1" to "PLUGIN_VERSION = "2")
Related plugins:
- MySQL plugin - Analyze performance of your MySQL database servers
- Redis plugin - Monitor performance metrics of your Redis databases
- MongoDB plugin - Monitor performance metrics of your MongoDB databases
- Memcached plugin - Analyze performance of your Memcached server
- Nagios plugin - Execute thousands of Nagios plugins in Site24x7 without the need of running a Nagios server
- Out-of-the-box plugins - Monitor your entire app stack with our extensive list of integrations
- Create custom plugins - Create custom Linux and Windows plugins and monitor custom attributes