I have 2 servers. One of them often crashes. I want to send a SMS to my phone when it crashes.I wrote this simple bash script in another server and put it in crontab to run every 10 minutes.wget --spider http://mywebsite.com || php sendsms.phpIs this the right way? Sometimes I get SMS, but I see that server is running without any problem.
How to remotely check if Apache server responds?
centos;apache httpd;monitoring