check nginx status page working or not
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)
Active connections: 58
server accepts handled requests
1264885 1264885 1360068
Reading: 0 Writing: 1 Waiting: 57
NGINX integration (nri-nginx)
Edit newrelic nginx yaml file
#status_module: discover
status_module: ngx_http_stub_status_module
Change status url from
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
command: inventory captures the configuration parameters set in the NGINX config file
arguments:
config_path: /etc/nginx/nginx.conf
status_url: http://127.0.0.1/status
Restart new relic agent
Check the nginx dashboard on newrelic
Nginx Inventory
No inventory match your current search and filter selection.