Використовуючи цей сайт, ви погоджуєтеся з Політика конфіденційності.
прийняти
ЕнтеринЕнтеринЕнтерин
  • ДІМ
  • Це про
  • ТЕХ
  • Microsoft
    • Лазурний
    • Configmgr/sccm
    • DPM
    • Оркестрант
    • Гіпер-V
    • Інсайдер Microsoft Edge
    • MSI
    • Офіс 365
    • Інсайдер Office
    • Потужність BI
    • Скайп
    • SQL Server
    • Команди
  • ВІКНА
    • Центр адміністрування Windows
    • Клієнт Windows
    • Windows Server
  • Список колекції запитів SCCM
Читання: Monitoring Nginx Connections Accepted Per Second with Zabbix
Зміна розміру шрифтуАа
ЕнтеринЕнтерин
Зміна розміру шрифтуАа
  • ДІМ
  • Це про
  • ТЕХ
  • Microsoft
  • ВІКНА
  • Список колекції запитів SCCM
Пошук
  • ДІМ
  • Це про
  • ТЕХ
  • Microsoft
    • Лазурний
    • Configmgr/sccm
    • DPM
    • Оркестрант
    • Гіпер-V
    • Інсайдер Microsoft Edge
    • MSI
    • Офіс 365
    • Інсайдер Office
    • Потужність BI
    • Скайп
    • SQL Server
    • Команди
  • ВІКНА
    • Центр адміністрування Windows
    • Клієнт Windows
    • Windows Server
  • Список колекції запитів SCCM
Zabbix

Monitoring Nginx Connections Accepted Per Second with Zabbix

Опублікований: Лютий 18, 2024
2 Хв. читання
ПОДІЛИТИСЯ

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:

  • Ім'я: any desired name for the item
  • Тип: Zabbix agent
  • Key: nginx.connections.accepted
  • Type of information: Numeric (unsigned)
  • Update interval: any desired interval, наприклад, 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:

  • Ім'я: 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, наприклад, 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.

ПОМІЧЕНО:АльмаркЦентосиNGINXUbuntuZabbix
Попередня стаття Mastering AWS CLI: How to Start EC2 Instances on Ubuntu Like a Pro
Наступна стаття Secure and Seamless: Enabling Single Sign-On for Grafana
Залиште коментар Залиште коментар

Залиште відповідь Скасувати відповідь

Ваша електронна адреса не буде опублікована. Обов'язкові поля позначені *

Цей сайт використовує Akismet для зменшення спаму. Дізнайтеся, як обробляються дані ваших коментарів.

Переклад

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

Популярні публікації

Системні вимоги для Windows Server 2016
Windows Server
Список колекції запитів диспетчера конфігурацій
Список колекції запитів диспетчера конфігурацій
Configmgr
Структуровану/керовану навігацію ввімкнено на сучасних сторінках класичних сайтів групи
техн
SCCM Не вдалося отримати розташування DP як очікувану версію від MP
Configmgr

Останні дописи

Встановлення та налаштування Fail2ban для захисту SSH на Ubuntu 24.04
Лінійка
Увімкнення та налаштування FirewallD на AlmaLinux
Лінійка
Створення користувача та налаштування ключа SSH в AlmaLinux
Лінійка
Як скинути пароль на AlmaLinux
Лінійка

© 2023 Ентерин

Перейдіть до мобільної версії
Ласкаво просимо назад!

Увійдіть у свій обліковий запис

Ім'я користувача або адреса електронної пошти
Пароль

Забули пароль?