How to monitor Web server downtime?
Do you have any tip or trick about how to monitor web server uptime or downtime? I want to make sure the web server is up all the time or notify me in case there is any problem.
What do you suggest?
Thank you.
Julian
15 Replies
Nagios
It kind of relies on the idea that you can set up a Nagios server somewhere other than the server you want to monitor (not mandatory but it makes sense, if the server goes down, a local Nagios will not be able to tell you about it!), then you set up periodic checks of your web server, and trigger alerts (email, sms even) when something goes wrong.
Installing Nagios on the actual server you want to monitor can also be useful as it will by default monitor the local CPU, disk space and so on.. you can set this up from an external nagios server but it involves a bit more configuration at both ends.
If you want something a little bit lighter and quicker, you could just write a script and run it on a cron to check your HTTP is responding. For instance I've written perl scripts that use curl to load a website every 5 minutes and check to make sure a certain keyword appears on the page, and if not, e-mail me.
I've started using Zabbix, but things like Zabbix and Nagios are designed for monitoring lots of hosts rather than just a single node.
@phvt:
I've started using Zabbix, but things like Zabbix and Nagios are designed for monitoring lots of hosts rather than just a single node.
True I didn't consider that fact.
I think pingability.com also offer these sorts of services though there are conditions on its 'free' use.. totally offtopic but their DNS check is excellent
Nice setup and easy to use.
Good luck!
I think I will try any of the free external services until I need a professional service.
Big Sister
Might be overkill for just one machine, but if your network grows, something to look at.
There are only few good free ones. I am currently with AlertFox on the Free2 plan and it works great - especially the free transaction monitoring
One of the monitoring nodes is hosted at Linode in their Newark data centre.
The site is called Runs Like Clockworkhttp://runslikeclockwork.com
We're currently working to wrap-up beta testing. jmagnone, send me a PM (private message) and I'll set you up with a free account.
site24x7.com
There's something about the organization and overall feel of site24x7.com that doesn't excite me, though, which is why I continue to keep my eye open for other solutions. What I'd really like is a service that uses the push notifications of iPhone 3.0.
By the way, just-ping.com
Thanks.
Robin.
@robin:
I just had my linode lock-up and take down all the sites on it. CPU spiked to 400% and remained there.
I would seriously look at fine tuning your config files a bit first, before enabling the automatic panic/reboot on OOM. [Install munin or similar, prune Apache (or install Nginx) and Mysql, etc. etc.]
Just my 2c.