Current time: 04-23-2014, 08:51 PM Hello There, Guest! (LoginRegister)

Post Reply 
Automated Site Testing?
03-12-2012, 10:40 AM
Post: #1
Automated Site Testing?
Does Dreamhost offer automated site testing, or do I need to use (or write) an external service?

My VPS site has gone down 4 times in the 30 days since I started it, and nothing happens until I post a ticket.

---Mike
Find all posts by this user
Quote this message in a reply
03-12-2012, 09:13 PM
Post: #2
RE: Automated Site Testing?
If you mean uptime testing, http://pingdom.com are good external (free!) service.

Maximum Cash Discount on any plan with MAXCASH

How To Install PHP.INI / ionCube on DreamHost
Visit this user's website Find all posts by this user
Quote this message in a reply
03-13-2012, 11:03 AM
Post: #3
RE: Automated Site Testing?
Yes, uptime testing. Thanx muchly, I'll check them out, and search for others.
Find all posts by this user
Quote this message in a reply
03-13-2012, 02:01 PM
Post: #4
RE: Automated Site Testing?
I've been using the free service on monitor.us for a few years.

Using their free service, you can set things up so they send you an email as soon as they can't ping your server (they test every five minutes).
Visit this user's website Find all posts by this user
Quote this message in a reply
03-13-2012, 02:07 PM (This post was last modified: 03-13-2012 02:09 PM by MikeBro.)
Post: #5
RE: Automated Site Testing?
I ended up writing my own, and putting it in a cron on a different server. It's a little more overhead than a simple ping, but not an issue for me. Here is a simplified version; easy to add additional info, or change to a ping. At least on some servers, cron won't send an email if there is no output, so this only emails when it fails.

$url = 'https://mywebsite.com/'; // point to a simple or special page
if (!($contents = file_get_contents($url))) {
echo "$url FAILED";
}
Find all posts by this user
Quote this message in a reply
03-13-2012, 03:52 PM
Post: #6
RE: Automated Site Testing?
(03-13-2012 02:07 PM)MikeBro Wrote:  I ended up writing my own, and putting it in a cron on a different server. It's a little more overhead than a simple ping, but not an issue for me. Here is a simplified version; easy to add additional info, or change to a ping. At least on some servers, cron won't send an email if there is no output, so this only emails when it fails.

$url = 'https://mywebsite.com/'; // point to a simple or special page
if (!($contents = file_get_contents($url))) {
echo "$url FAILED";
}


I signed up for pingdom as a result of this thread. One site is free, with 1-minute resolution from around the world. Pretty good. You can also specify a script to request, it could do the same thing you are doing here. The script could run a series of tests that a normal request wouldn't do. I've got mine verifying not only that the site responds, but also that the database connection is up (requesting a page doesn't necessarily create a connection to the DB).
Find all posts by this user
Quote this message in a reply
03-13-2012, 10:45 PM
Post: #7
RE: Automated Site Testing?
Yeah, crontab'd scripts are the duck's guts for db tests, updating caches, etc.

The free Pingdom account for uptime testing is suitable for my Dreamhost domains due to them all being on a single server - so if one domain is reported as unresponsive I know that they were all down at that time.

Maximum Cash Discount on any plan with MAXCASH

How To Install PHP.INI / ionCube on DreamHost
Visit this user's website Find all posts by this user
Quote this message in a reply
03-23-2012, 07:15 PM
Post: #8
RE: Automated Site Testing?
(03-12-2012 09:13 PM)sXi Wrote:  If you mean uptime testing, http://pingdom.com are good external (free!) service.

Pingdom is so depressing! I signed up for an account based on your post. It's been ten days now, and Pingdom reports six downtime incidents for a total of 4 hours and 34 minutes.... That's an average of 27 minutes downtime per day...

All I can say is: wow... I always thought DreamHost was more stable than this...
Find all posts by this user
Quote this message in a reply
03-24-2012, 12:22 AM
Post: #9
RE: Automated Site Testing?
I don't average that kind of downtime even on a monthly basis.

I have had "extended" downtime at times - but that was due to me accidentally setting incorrect directory permissions and not bothering to check Big Grin

Maximum Cash Discount on any plan with MAXCASH

How To Install PHP.INI / ionCube on DreamHost
Visit this user's website Find all posts by this user
Quote this message in a reply
Post Reply 


Forum Jump: