keymetrics / pm2-plus-tech-questions

http://docs.keymetrics.io/docs/pages/faq-troubleshooting/
27 stars 3 forks source link

Constantly getting "Agent seems down" #290

Open jerryjren opened 3 years ago

jerryjren commented 3 years ago

Hi there,

First, great product, we love it. Make node application monitoring much easier.

We only just star using pm2, so still have a few questions to sort it out.

  1. Every now and then, we get notification saying "Agent seems down". Everything was working fine after checking on the server. Output of pm2 status shows all applications up and running too.

I will have to stop all applications, re-link with public and private keys provided by pm2. Any suggestion?

  1. Is there any way to trigger a notification if an application goes offline? I could only see the configuration for monitoring server offline.

pm2 version: 5.1.0

Thank you

SammyGutierrez335 commented 3 years ago

From my understanding this is the 'Offline notification setting' https://pm2.io/docs/plus/guide/notifications/

Depending on the interval you set and whether or not your application has traffic then you will get this notification. I believe it is simply a heads up/you might want to check notification. Not necessarily a report that your app is actually down. My current work around is to simply run a cron job that logs at an interval slightly shorter than your 'offline notification setting interval'.

If someone can offer a cleaner solution I would love to hear it.