Nginx not monitored properly by APM server
Problem
The Nginx status is not changing from Operational to Major Outage on the APM web page when Nginx is stopped.
Solution
Change file related to Nginx monitoring on the server where Nginx is running. Example(for 8.5.3):
[wfsadmt@nausd-lapp0097 settings]$ diff -u nginx_app.yml_backup nginx_app.yml --- nginx_app.yml_backup 2018-05-16 10:56:51.962279233 -0400 +++ nginx_app.yml 2018-05-16 10:57:16.854801186 -0400 @@ -17,7 +17,7 @@ alerts: - id: nginx triggers: - - { metric: nginx.monitoring.status, neq: 0, message: "Problem with nginx connection" } + - { metric: nginx.monitoring.listening, eq: 0, message: "Problem with nginx connection" }The name of the file can differ depending on the release.
- Restart the wfagent service on the server.