监控使用Amazon EC2的生产服务(Tomcat的,MSQL和Apache)Amazon、Tomcat、Apache、MSQL

2023-09-11 23:45:13 作者:孤立无援

目前我有一个服务器 - Amazon EC2实例类型。通过AWS控制台,我们可以监视我们的实例(服务器)CPU利用率,磁盘读取等。

Currently I have a server - Amazon EC2 instance type. Through AWS console, we can monitor our instances (server) CPU utilization, disk read etc..

有没有什么办法,通过它我可以监视我的应用程序服务 - 如Tomcat,MySQL和Apache的等。基本上,只要在 Tomcat或MySQL的停止,我需要从亚马逊电子邮件警报。对于CPU利用率,我能成功地。然而,如何监测,通过AWS我的应用程序服务的状态。

Is there any way through which I can monitor my application services - like tomcat, mysql, apache etc.. Basically, whenever the tomcat or mysql is stopped, I need an email alert from Amazon. For CPU utilization, I was able to that successfully. However, how to monitor my application services state through AWS.

有什么建议吗?如果我们不能做到通过AWS,有没有监控他们的任何其他方式?

Any suggestions please? If we can't able to do through AWS, is there any other way to monitor them?

感谢你。

推荐答案

亚马逊本身只提供基本的平台,在这里,你可以上运行的服务。因此,有来自亚马逊不存在pre-构建的解决方案提供给监控服务。

Amazon itself only provides the basic platform where you can run your services on. Therefore there is no existing pre-built solution from Amazon available to monitor services.

但也有一些替代品来考虑:

However there are some alternatives to consider:

您可以使用亚马逊CloudWatch的自定义指标监控您服务 ...或者你使用 monit的观看和(可选)自动重新启动您的服务 ...或者你使用 Nagios的警报和/或的穆宁监测 You can use Amazon Cloudwatch custom metrics to monitor your services ...or you use monit to watch and (optionally) automatically restart your services ...or you use nagios alerting and/or munin for monitoring

所有这些解决方案将需要安装或编程从你身边。

All of these solutions will require installation or programming from your side.