Reputation: 1678
I'm running a Drupal 7 site on Amazon EC2 Since this is a micro instance, once in a while the site crash usually it is mysql but sometimes apache
I could write a php script connecting to database, return some OK/NOTOK code and then monitor that script using cron and restart mysql or apache service however this looks very basic and while I couldn't find anything ready I don't want to invent the wheel..
Any suggestions?
Upvotes: 0
Views: 2341
Reputation: 46
You can use a free monitoring service such as GotSiteMonitor.com to monitor your site and check for OK/NOTOK strings in your page.
Upvotes: 0
Reputation: 31
You may use Monit to monitor the mySQL and other relevant processes in your server. It can also monitor network connections including http which you may use to monitor for your website.
Upvotes: 1