Skip to content

Files

Latest commit

867e112 · Feb 24, 2022

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
Feb 24, 2022
Nov 25, 2021

App Nginx by Alex Gluck

Overview

System requirements

Nginx, with configured http\_stub\_status\_module

Features

HTTP/HTTPS support
Connection Statistics:
  • Active
  • Reading
  • Waiting
  • Writing
Request Statistics:
  • Accepted
  • Handled
  • Total
Graph and screen:
  • 'Requests Statistics' graph
  • 'Connection Status' graph
  • Screen combining both graph
Macros for customization:
  • {$NGINX_HOST}
  • {$NGINX_STATS_URI}
  • {$NGINX_PORT}
  • {$NGINX_REQ_NUM}
  • {$NGINX_CON_NUM}

Installation

Nginx Configuration

Add the following example to your default vhost configuration file:

location /nginx\_status {  
    stub\_status on;  
    access\_log off;  
    allow 127.0.0.1;  
    allow ::1;  
    deny all;  
}
 

Zabbix Configuration

  1. Import XML template file (zbx\_template\_nginx.xml) into Zabbix via Web GUI (Configuration -> Templates -> Import).
  2. Assign the imported template to a host and enjoy!

Author

Alex Gluck

Macros used

Name Description Default Type
{$NGINX_CON_NUM}

-

2500 Text macro
{$NGINX_HOST}

-

localhost Text macro
{$NGINX_PORT}

-

80 Text macro
{$NGINX_REQ_NUM}

-

600 Text macro
{$NGINX_STATS_URI}

-

nginx-stats Text macro

Template links

There are no template links in this template.

Discovery rules

There are no discovery rules in this template.

Items collected

Name Description Type Key and additional info
Nginx: connections handled per sec

-

Dependent item nginx.handled

Update: 0

Nginx: connections writing

-

Dependent item nginx.writing

Update: 0

Nginx: connects active

-

Dependent item nginx.active.connect

Update: 0

Nginx: requests per sec

-

Dependent item nginx.requests

Update: 0

Get Nginx stat page

-

Zabbix agent web.page.get[{$NGINX_HOST},{$NGINX_STATS_URI},{$NGINX_PORT}]

Update: 60s

Nginx: connections reading

-

Dependent item nginx.reading

Update: 0

Nginx: Number of processes $1

-

Zabbix agent proc.num[nginx]

Update: 60s

Nginx: connections accepted per sec

-

Dependent item nginx.accepts

Update: 0

Nginx: connections waiting

-

Dependent item nginx.waiting

Update: 0

Triggers

There are no triggers in this template.