• Skip to main content
  • Skip to primary sidebar
  • Home
  • WordPress
  • web Hosting
  • linux
  • mysql
  • nginx
  • apache2
  • devops

Raju Ginni

wordpress tutorials seo hosting etc

You are here: Home / nginx server tutorials (installation, configuration, performance tuning, security) / newrelic nginx integration process and errors fix and metrics

newrelic nginx integration process and errors fix and metrics

Prerequisites
install the infrastructure agent (newrelic-infra)

Table of Contents

Toggle
  • check nginx status page working or not
  • NGINX integration (nri-nginx)
  • Edit newrelic nginx yaml file
  • Change status url from
  • Restart new relic agent
  • Check the nginx dashboard on newrelic
  • Nginx Inventory
  • Errors and troubleshooting

check nginx status page working or not

curl http://127.0.0.1/status  // its a php fpm page don’t confuse (i did)
pool: www
process manager: dynamic
start time: 12/May/2021:02:49:15 +0000
start since: 213269
accepted conn: 37437
listen queue: 0
max listen queue: 6
listen queue len: 65536
idle processes: 15
active processes: 1
total processes: 16
max active processes: 13
max children reached: 0   (read more at php fpm status page)
root@-s-4vcpu-8gb-blr1-01:~# curl http://127.0.0.1/nginx_status/
Active connections: 58
server accepts handled requests
1264885 1264885 1360068
Reading: 0 Writing: 1 Waiting: 57
 here waiting means keepalive connections

NGINX integration (nri-nginx)

new relic nginx integration
sudo apt-get install -y newrelic-infra nri-nginx

Edit newrelic nginx yaml file

cd /etc/newrelic-infra/integrations.d
sudo cp nginx-config.yml.sample nginx-config.yml
nano nginx-config.yml
# Name of Nginx status module OHI is to query against. discover | ngx_http_stub_status_module | ngx_http_status_module | ngx_http_api_module
#status_module: discover
status_module: ngx_http_stub_status_module
nginx open source ngx_http_stub_status_module  is the default

Change status url from

– name: nginx-server-metrics
command: metrics
arguments:
# If you’re using ngx_http_api_module be certain to use the full path up to and including the version number
status_url: http://127.0.0.1/status# Name of Nginx status module OHI is to query against. discover | ngx_http_stub_status_module | ngx_http_status_module | ngx_http_api_module
#status_module: discover
status_module: ngx_http_stub_status_module

to http://127.0.0.1/nginx_status/
– name: nginx-server-inventory
command: inventory  captures the configuration parameters set in the NGINX config file
arguments:
config_path: /etc/nginx/nginx.conf
# status_url is used to identify the monitored entity to which the inventory will be attached.
status_url: http://127.0.0.1/status
to http://127.0.0.1/nginx_status/

Restart new relic agent

systemctl restart newrelic-infra

Check the nginx dashboard on newrelic

infrastructure >> third party services >> integrations >> nginx Dashboard
Requests per second
Active Connections
Requests per second, by server
Connections Accepted per second
Connections Dropped per second

Nginx Inventory

No inventory match your current search and filter selection.

Read more at monitoring nginx with newrelic

Errors and troubleshooting

prefix=integration/com.newrelic.nginx stderr=”[FATAL] can’t continue: Line 0 of status doesn’t match\n” working-
you misconfigured nginx status page with php – fpm status page.

Primary Sidebar

nginx server tutorials (installation, configuration, performance tuning, security)

  • Letsencrypt SSL Installation on apache/Nginx ubuntu / debian wordpress
  • fix error 520 522 524 on cloudflare wordpress godaddy nginx etc
  • nginx fastcgi cache wordpress how to configure
  • install LEMP Stack on 22.04 LTS Nginx MySQL PHP fpm #wordpress #digital ocean
  • Apache vs nginx (connection handling, modules, memory usage)
  • Pagespeed module install, configure, monitor, errors ft nginx &apache
  • nginx errors (504,502, 413, unable to start, syntax errors)
  • nginx conf explained best config file performance tuning tips nginx.conf location errors tutorial
  • use nginx as reverse proxy and load balancer for apache wordpress
  • nginx rewrite rules with examples 301 redirection
  • nginx modules list (enable, disable, upgrade, install dynamic module)
  • php fpm pool manager configuration settings based on server spike high cpu wordpress
  • php fpm restart nginx ubuntu enable status page, monitor etc
  • what is TTFB & how to Reduce it (server response time) Google pagespeed
  • letsencrypt install configure on ubuntu / debian nginx
  • Top 10 tips to improve nginx server security
  • nginx performance tuning connections, buffers file descriptors
  • enable brotli compression nginx brotli vs gzip
  • nginx installation on ubuntu 20.04 LTS
  • monitor nginx request with nginx status amplify datadog new relic
  • SSL faster reduce TLS hand shake improve https performance
  • nginx rate limiting explained by location time specific url
  • datadog nginx integration installation process
  • newrelic nginx integration process and errors fix and metrics
  • php fpm seems busy fixed warning and max children reached to handle max connections / requests
  • Php fpm configuration for 1000 concurrent connections server busy max children reached
  • php fpm ondemand vs dynamic vs Static (the dynamic pool problem)
  • nginx upstream response is buffered to a temporary file
  • php fpm install ubuntu 20.04 nginx
  • install phpmyadmin ubuntu nginx 22.04
  • upgrade php fpm ubuntu nginx 7.4 to 8.2
  • nginx add last modified header (remove, php wordpress)
  • php fpm dynamic pool manager settings
  • nginx fastcgi cache purge
  • nginx open file limit connections ulimits sysctl
  • php fpm high cpu usage WordPress 4 solutions nay work for you
  • nginx buffer size for wordpress
  • Cloudflare error code 524 nginx a timeout error occured
  • server configuration for 1000 concurrent users

hi i am raju ginni, primalry i manage wordpress websites on GCP cloud platform as a cloud engineer, and create content on passionate things.
you can follow me on youtbe

© 2025 - All Rights Reserved Disclaimer & Privacy Policy