Question:
Currently I have a server – Amazon EC2 instance type. Through AWS console, we can monitor our instances (server) CPU utilization, disk read etc..
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.
Any suggestions please? If we can’t able to do through AWS, is there any other way to monitor them?
Thank you.
Answer:
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:
- 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.