By using this site, you agree to the Privacy Policy.
Accept
EnterinITEnterinITEnterinIT
  • HOME
  • IT PRO
  • TECH
  • MICROSOFT
    • Azure
    • ConfigMgr/SCCM
    • DPM
    • Orchestrator
    • Hyper-V
    • Microsoft Edge Insider
    • MSI
    • Office 365
    • Office Insider
    • Power BI
    • Skype
    • SQL Server
    • Teams
  • WINDOWS
    • Windows Admin Center
    • Windows Client
    • Windows Server
  • SCCM Query Collection List
Reading: Monitoring Nginx Connections Accepted Per Second with Zabbix
Font ResizerAa
EnterinITEnterinIT
Font ResizerAa
  • HOME
  • IT PRO
  • TECH
  • MICROSOFT
  • WINDOWS
  • SCCM Query Collection List
Search
  • HOME
  • IT PRO
  • TECH
  • MICROSOFT
    • Azure
    • ConfigMgr/SCCM
    • DPM
    • Orchestrator
    • Hyper-V
    • Microsoft Edge Insider
    • MSI
    • Office 365
    • Office Insider
    • Power BI
    • Skype
    • SQL Server
    • Teams
  • WINDOWS
    • Windows Admin Center
    • Windows Client
    • Windows Server
  • SCCM Query Collection List
Zabbix

Monitoring Nginx Connections Accepted Per Second with Zabbix

Published August 26, 2024
2 Min Read
SHARE

Monitoring Nginx Connections Accepted Per Second with Zabbix.

To monitor the number of connections accepted per second on an Nginx server using Zabbix, you can follow these steps:

  1. Install the Zabbix agent on the Nginx server if it’s not already installed. You can find instructions on how to do this on the Zabbix documentation.
  2. Enable the stub_status module in Nginx by adding the following configuration to the server block in your Nginx configuration file:
location /nginx_status {
    stub_status on;
    access_log off;
    allow 127.0.0.1;
    deny all;
}

This will expose Nginx status information at http://localhost/nginx_status. Make sure to test the configuration and reload Nginx.

3. Configure Zabbix to monitor the nginx.connections.accepted metric. This metric represents the total number of accepted client connections. To do this, create a new item in Zabbix with the following parameters:

  • Name: any desired name for the item
  • Type: Zabbix agent
  • Key: nginx.connections.accepted
  • Type of information: Numeric (unsigned)
  • Update interval: any desired interval, for example, 30 seconds

4. Create a trigger to alert you when the number of connections accepted per second exceeds a certain threshold. To do this, create a new trigger with the following parameters:

  • Name: any desired name for the trigger
  • Expression: delta(nginx.connections.accepted[30s])/30>100 (this will trigger if the number of connections accepted per second is greater than 100)
  • Severity: any desired severity, for example, warning or average

You can adjust the threshold and the interval to your needs.

That’s it! With these steps, you should now be able to monitor the number of connections accepted per second on your Nginx server using Zabbix.

TAGGED:AlmaLinuxCentOSNGINXUbuntuZabbix
Previous Article Mastering AWS CLI: How to Start EC2 Instances on Ubuntu Like a Pro
Next Article Secure and Seamless: Enabling Single Sign-On for Grafana
Leave a Comment Leave a Comment

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Translation

English中文(简体)DanskNederlandsFrançaisDeutschItaliano한국어PolskiPortuguêsRomânăEspañolУкраїнська
by Transposh - translation plugin for wordpress

Popular Posts

System Requirements for Windows Server 2016
Windows Server
Configuration Manager Query Collection List
Configuration Manager Query Collection List
ConfigMgr
Structured/Managed Navigation enabled on Modern Pages in Classic Team Sites
Tech
SCCM Failed to get DP locations as the expected version from MP
ConfigMgr

Recent Posts

Installing and Configuring Fail2ban for SSH Protection on Ubuntu 24.04
Linux
Enabling and Configuring FirewallD on AlmaLinux
Linux
User Creation and SSH Key Setup in AlmaLinux
Linux
How to reset password on AlmaLinux
Linux

© 2023 EnterinIT

Go to mobile version
adbanner
Welcome Back!

Sign in to your account

Username or Email Address
Password

Lost your password?