Prin utilizarea acestui site, sunteți de acord cu Politica de confidențialitate.
Accepta
EnterineEnterineEnterine
  • ACASĂ
  • Pro
  • Tehnologie
  • Microsoft
    • Azur
    • ConfigMgr/SCCM
    • Dpm
    • Orchestrator
    • Hyper-V
    • Microsoft Edge Insider
    • MSI
    • Birou 365
    • Office Insider
    • Putere bi
    • Skype
    • Server SQL
    • Echipe
  • Ferestre
    • Centrul de administrare Windows
    • Client Windows
    • Windows Server
  • Lista de colecție de interogări SCCM
Lectură: Monitoring Nginx Connections Accepted Per Second with Zabbix
Redimensionare fontAa
EnterineEnterine
Redimensionare fontAa
  • ACASĂ
  • Pro
  • Tehnologie
  • Microsoft
  • Ferestre
  • Lista de colecție de interogări SCCM
Căutare
  • ACASĂ
  • Pro
  • Tehnologie
  • Microsoft
    • Azur
    • ConfigMgr/SCCM
    • Dpm
    • Orchestrator
    • Hyper-V
    • Microsoft Edge Insider
    • MSI
    • Birou 365
    • Office Insider
    • Putere bi
    • Skype
    • Server SQL
    • Echipe
  • Ferestre
    • Centrul de administrare Windows
    • Client Windows
    • Windows Server
  • Lista de colecție de interogări SCCM
Zabbix

Monitoring Nginx Connections Accepted Per Second with Zabbix

Publicat: February 18, 2024
2 Min Citește
Cota

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:

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

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

Etichetat:AlmaruxCentusNGINXUbuntuZabbix
Articolul precedent Mastering AWS CLI: How to Start EC2 Instances on Ubuntu Like a Pro
Articolul următor Secure and Seamless: Enabling Single Sign-On for Grafana
Lasă un comentariu Lasă un comentariu

Lasă un răspuns Anulează răspunsul

Adresa ta de e-mail nu va fi publicată. Câmpurile obligatorii sunt marcate *

Acest site folosește Akismet pentru a reduce spamul. Aflați cum sunt procesate datele comentariilor dvs.

Traducere

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

Postări populare

Cerințe de sistem pentru Windows Server 2016
Windows Server
Lista de colecție de interogări din Configuration Manager
Lista de colecție de interogări din Configuration Manager
Configmgr
Navigarea structurată/gestionată este activată în paginile moderne din site-urile clasice ale echipelor
Teh
SCCM nu s-a obținut locațiile DP ca versiune așteptată de la MP
Configmgr

Postări recente

Instalarea și configurarea Fail2ban pentru protecție SSH pe Ubuntu 24.04
Linux
Activarea și configurarea FirewallD pe AlmaLinux
Linux
Crearea utilizatorilor și configurarea cheii SSH în AlmaLinux
Linux
Cum să resetați parola pe AlmaLinux
Linux

© 2023 Enterine

Accesați versiunea mobilă
Bine ai revenit!

Conectați-vă la contul dvs

Nume de utilizator sau adresă de e-mail
Parolă

Ți-ai pierdut parola?