Ved at bruge denne side, du accepterer Privatlivspolitik.
Acceptere
EnterineEnterineEnterine
  • HJEM
  • Det pro
  • Teknik
  • Microsoft
    • Azurblå
    • Configmgr/SCCM
    • DPM
    • Orkester
    • Hyper-V
    • Microsoft Edge Insider
    • MSI
    • Kontor 365
    • Office Insider
    • Power BI
    • Skype
    • SQL Server
    • Hold
  • Windows
    • Windows Admin Center
    • Windows klient
    • Windows Server
  • SCCM-forespørgselsindsamlingsliste
Læsning: Monitoring Nginx Connections Accepted Per Second with Zabbix
Font ResizerAa
EnterineEnterine
Font ResizerAa
  • HJEM
  • Det pro
  • Teknik
  • Microsoft
  • Windows
  • SCCM-forespørgselsindsamlingsliste
Søge
  • HJEM
  • Det pro
  • Teknik
  • Microsoft
    • Azurblå
    • Configmgr/SCCM
    • DPM
    • Orkester
    • Hyper-V
    • Microsoft Edge Insider
    • MSI
    • Kontor 365
    • Office Insider
    • Power BI
    • Skype
    • SQL Server
    • Hold
  • Windows
    • Windows Admin Center
    • Windows klient
    • Windows Server
  • SCCM-forespørgselsindsamlingsliste
Zabbix

Monitoring Nginx Connections Accepted Per Second with Zabbix

Offentliggjort: februar 18, 2024
2 Min læst
DELE

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:

  • Navn: 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:

  • Navn: 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.

TAGGET:AlmaruxCentosNGINXUbuntuZabbix
Forrige artikel Mastering AWS CLI: How to Start EC2 Instances on Ubuntu Like a Pro
Næste artikel Secure and Seamless: Enabling Single Sign-On for Grafana
Efterlad en kommentar Efterlad en kommentar

Efterlad et svar Annuller svar

Din e-mailadresse vil ikke blive offentliggjort. Påkrævede felter er markeret *

Denne side bruger Akismet til at reducere spam. Lær, hvordan dine kommentardata behandles.

Oversættelse

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

Populære indlæg

Systemkrav til Windows Server 2016
Windows Server
Configuration Manager Forespørgselsindsamlingsliste
Configuration Manager Forespørgselsindsamlingsliste
Configmgr
Struktureret/administreret navigation aktiveret på moderne sider i klassiske teamwebsteder
Teknik
SCCM Kunne ikke hente DP-placeringer som den forventede version fra MP
Configmgr

Seneste indlæg

Installation og konfiguration af Fail2ban til SSH-beskyttelse på Ubuntu 24.04
Linux
Aktivering og konfiguration af FirewallD på AlmaLinux
Linux
Brugeroprettelse og SSH-nøgleopsætning i AlmaLinux
Linux
Sådan nulstiller du adgangskoden på AlmaLinux
Linux

© 2023 Enterine

Gå til mobil version
Velkommen tilbage!

Log ind på din konto

Brugernavn eller e-mail-adresse
Adgangskode

Mistet din adgangskode?