Nginx坏网关,如何通知 [英] Nginx bad gateway, how to notify

查看:129
本文介绍了Nginx坏网关,如何通知的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在ubuntu服务器上运行nginx,有时候会出现坏的网关错误,在我去我的网站之前,我不知道,



存在一种方式



谢谢

解决方案

关于我唯一可以想到的是查看 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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆