Nginx坏网关,如何通知 [英] Nginx bad gateway, how to notify
问题描述
存在一种方式
谢谢
关于我唯一可以想到的是查看 Nagios的的。以下是Ubuntu上Nagios的安装说明。
根据Nagios的文档,如果有Web服务器问题,它可能会发送警报。
然而,这真是太过分了所有你想要做的是监控nginx是否正常运行...我个人使用我的Linode的 monit 监视nginx,这样,如果它死机或者内存使用率很高,monit会自动重新启动nginx。
希望这有帮助!
I'm running nginx in ubuntu server, sometimes it get bad gateway error and I couldn't know it before I go to my site,
Exist a way to send me a email notification when this happens?
Thanks
About the only thing I can think of is to check out Nagios. Here are installation instructions for Nagios on Ubuntu.
According to Nagios' documentation, it looks like it can send alerts if there are web server issues.
However, this is really overkill if all you want to do is monitor whether nginx is properly running or not... I personally use monit on my Linode to monitor nginx, so that if it dies or if it runs high on memory usage, monit will automatically restart nginx.
Hope this helps!
这篇关于Nginx坏网关,如何通知的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!