Forum Moderators: phranque
I tried searching this, but so far haven't found anything that is reasonably straight-forward.
I have two servers. I'd like to set up one with a chron job, using wget to monitor the production box, and shoot out an email if/when it goes down.
I need to know:
1. exactly how to install wget
2. how to set up a chron job to access the php page request/parsing script
3. what the general code is for requesting a page and parsing it for certain text
4. how to send an email if the text in question doesn't appear
I can slog my way thru items 3 and 4, but I'm having a heck of time with the other two, particularly just getting wget installed. Anyone know of some good comprehensive tutorials?
Or, maybe I'm doing this the wrong way. Got an alternate idea?
Many thanks!
Trav
Jim