Limited Time Offer!

For Less Than the Cost of a Starbucks Coffee, Access All DevOpsSchool Videos on YouTube Unlimitedly.
Master DevOps, SRE, DevSecOps Skills!

Enroll Now

How to monitor nginx using zabbix?


There are 2 default template has been given by Zabbix which can be used to Nginx metrices monitoring

  • Nginx by HTTP
  • Nginx by Zabbix agent

Zabbix Template – Nginx by HTTP

For Zabbix version: 6.0 and higher. The template to monitor Nginx by Zabbix that work without any external scripts. Most of the metrics are collected in one go, thanks to Zabbix bulk data collection. Template Nginx by HTTP collects metrics by polling ngx_http_stub_status_module with HTTP agent remotely. Note that this solution supports https and redirects.

URL – https://www.zabbix.com/integrations/nginx#nginx_http

Zabbix Template – Nginx by Zabbix agent

For Zabbix version: 6.0 and higher. The template to monitor Nginx by Zabbix that work without any external scripts. Most of the metrics are collected in one go, thanks to Zabbix bulk data collection. Template Nginx by Zabbix agent collects metrics by polling ngx_http_stub_status_module locally with Zabbix agent. It also uses Zabbix agent to collect nginx Linux process stats like CPU usage, memory usage and whether process is running or not.

URL – https://www.zabbix.com/integrations/nginx#nginx_agent

Step 1 – Install and configure nginx

Step 2 – Enable “ngx_http_stub_status_module” in Nginx for Nginx metrices

Step 3 – Create a Zabbix host for nginx and use Zabbix Template – Nginx by HTTP

Note – This does not require any additional in the host of Zabbix Agent.

Step 4 – Validate all the values in the Zabbix Host Macros of nginx

Step 5 – Validate all the nginx Metrices in Latest Data

Rajesh Kumar
Follow me
Latest posts by Rajesh Kumar (see all)
Subscribe
Notify of
guest
0 Comments
Newest
Oldest Most Voted
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x