MUST HAVE: Keep tabs on your website uptime

Status
Not open for further replies.

bit

New member
Jun 7, 2007
185
4
0
Rating - 100%
10   0   0
Ever wanted to make sure your web sites are Up and Running?

Don't want to pay for silly online services to do this? What do you do if you have lots of websites?

Presenting my Web Site Monitor script that does the job of all these online uptime sites, and does it well!

For ONLY $3 bucks I'll give you my EASY to install php script that will send you an email on the hour telling you which of your sites is DOWN. Place it on a free host, your shared hosting, your PC with apache, anywhere you want to check your all your website's uptime from!

It's simple to use, works reliably, and you can add unlimited sites to it!

Requirements:

* PHP 4+
* Access to cron jobs (practically every shared host supports cron jobs as well as most free hosts!)
* PHP curl (most shared hosts have it enabled and some free hosts do)

I have been using this script for my own sites for years, it's extremely reliable. You don't have to make it give you an email every hour, you could set it to every minute, or once a week if you want! It's just a matter of adjusting a simple cron job setting.

Online monitoring sites can charge up to $20 a month for basic site checking - I'm letting you do it yourself - nice and easy, for a once-off $3 - Then FREE FOR LIFE!

Screenshot of email received (only 4 sites tested in this example - can be 100's)


Screenshot of how to set up a cron job to work with it



Get it now for $3. This is my introductory price. After a few sales it moves up to $5. Still a bargain, I seriously suggest you get in on this as even a few hours of site downtime can easily cost much more in lost profits or damaged reputation.

If a mod or postwhore here wants a review copy I can do that (if you let everyone know how it works for you). Two review copies. haw haw this isn't digitalpoint haw haw, ok thanks for that get it out of your system now, cheers.

PM me for a PayPal Link!

Feel free to ask questions about this script :updown:
 


Dude, what if the server this script is on is down? You can't have it on the same server as the rest of your sites so that means additional server costs -- and less reliability. Thanks but no thanks, I will stick to a third-party monitoring system.

PS: Saying this is not DP but doing the same shit you do there isn't a ticket to fit-in at WF. For starters, stop selling crap in here.
 
This isn't crap. But thanks for your opinion based on little thought and no facts.

First of all, you don't need to host this elsewhere. If you have a decent and reliable shared hosting account from back in the day, run the script off that. Many people use hostgator, a perfect location for this script - shared hosts can't afford for 100 user accounts to just drop off for hours. Your argument regarding reliability is wrong.

And this script is lightweight, it works, and it's easily saved me $800 by now in minimized downtime.

Anyone wanting notice when servers go down or become so slow they are unusable - this is an awesome script to have!
 
You still didn't answer my main issue -- what if the server this script is running on goes down? Even if that shared server goes down for let's say an hour and so do your other sites, that defeats the purpose of even having this piece of shit.

Also, stop pulling figures out of your ass. Prove your saving of $800 or gtfo.
 
what you're trying to sell sounds mighty similar to this...

Code:
<?php

// the URL you want to keep tabs on
$url = 'http://www.somewebsite.com';

// if not available, send email
if ( url_exists( $url ) === FALSE )
{
    $to   = 'my@email.com';
    $subj = $url . ' is down!';
    $msg  = $url . ' was tested at ' . date( 'Y-m-d H:i:s' ) . ' and was inaccessible.';
    @mail( $to, $subj, $msg );
}



/**
 * url_exists()
 * Checks for the validity of a given URL
 *
 * @param string The http[s] URL you're checking for
 * @return bool TRUE if online; FALSE if not; NULL if not an http(s):// URL
 */
function url_exists( $strURL = NULL )
{
    if ( !preg_match( '/^http(s?):\/\//i', $strURL, $m ) )
        return NULL;
    @$ch = curl_init();
    curl_setopt( $ch, CURLOPT_URL, $strURL );
    curl_setopt( $ch, CURLOPT_BINARYTRANSFER, 1 );
    curl_setopt( $ch, CURLOPT_HEADERFUNCTION, 'curlHeaderCallback' );
    curl_setopt( $ch, CURLOPT_FAILONERROR, 1 );
    curl_setopt( $ch, CURLOPT_TIMEOUT, 5 );
    // https?
    if ( $m[1] == 's' )
        curl_setopt( $ch, CURLOPT_SSL_VERIFYPEER, 0 );
    @curl_exec( $ch );
    $intReturnCode = curl_getinfo( $ch, CURLINFO_HTTP_CODE );
    curl_close( $ch );
    return ( $intReturnCode == 200 OR $intReturnCode == 302 OR $intReturnCode == 304 ) ? TRUE : FALSE;
}

?>

lol...
 
I have a number of servers and I'm also with a no-name shared host from 2004. Even as a no-name they rarely go down, if ever. Hosts like powweb and other popular ones do not go down enough to be any concern. How can they? With a 1000 paying customers dumped on each server they have a fire under their ass to make sure nothing screws up, and if it does, that it's fixed asap.

And yeah, if you are THAT paranoid, upload the script to two hosts.

To the guy above with the source code, it's fancier than that and lets you check multiple urls - quickly. And of course its far more user friendly to configure. That code above looks half finished too.

And if I may add, even if you are a coder, trying to hack that above code to work as I've described above in my first post is definitely not worth the hours blown away to save $3 bucks.
 
I pay for monitoring because I need SMS alerts as well. Not to mention pingdom uses like 10 servers to check every 5 minutes.

However, I might have use for this if it does more than just ping the server. Does this check pop, ssl, ssh, ftp, etc... ?
 
The script checks your httpd is running. Because lets face it, if httpd is down, it often means your server is. If its up, it tends to mean every other service is. I've never had say, ftp stop working while httpd ran. Yes there is that 1 in a 10000 chance.

The script does not run a simple ping - it checks it gets a 200 OK response from your website or web page.

Generally it's ALWAYS apache that crashes, and often takes down the server with it - and this is what the script is designed to detect.

Regarding checking your server from 10 different places with pingdom. Pingdom's service offers no real value over this script (for most web masters) and they need a way to justify their pricing.

E.g. What is checking your server from 10 different places supposed to tell you? That datacenter X in Lebanon cannot access your site? Hell, if everyone wants, give me $2 a month and I'll test your site from 20 sources.

If your server or site is down - then its down. Verifying it from 10 places isn't going to help. The odd chance that it's just the host the script is running from having an issue, happens next to never that it's not a realistic concern.

Hope that answers your questions. :)
 
To the guy above with the source code, it's fancier than that and lets you check multiple urls - quickly. And of course its far more user friendly to configure. That code above looks half finished too.

And if I may add, even if you are a coder, trying to hack that above code to work as I've described above in my first post is definitely not worth the hours blown away to save $3 bucks.

did you code this one yourself?

from how this thread started out, I assumed you just ripped it from somewhere and were trying to sell $3 copies here...
 
Many people use hostgator, a perfect location for this script - shared hosts can't afford for 100 user accounts to just drop off for hours. Your argument regarding reliability is wrong.

are you serious? you really recommend using a host infamous for overselling its clients and placing hundreds or even thousands of sites on a server (that may potentially harbor resource-intensive scripts and cripple servers).

cmon now, even john mccain's erectile dysfunction has more "uptime" than a hostgator server.
 
I'm not recommending anyone. And while I don't actually like HostGator myself, their uptime is good. While this isn't a discussion on who's the best web host, like many shared hosts, HostGator would be fine for this script.
 
You still didn't answer my main issue -- what if the server this script is running on goes down? Even if that shared server goes down for let's say an hour and so do your other sites, that defeats the purpose of even having this piece of shit.

Also, stop pulling figures out of your ass. Prove your saving of $800 or gtfo.


I somehow missed this. Probably because I think you are a clueless. "Well if the sun suddenly goes away at the exact same time the moon becomes the sun and Earth suddenly teleports to where pluto is, that defeats the purpose of having a president".

Please do me a favour, stop trashing my thread with zero-thought crap. If you are too stupid or stubborn to understand how a solid uptime script can help save you money and unnecessary pain, and how mine does the job of many monthly-paid services for a once off $3, then don't pollute my thread.
 
Please do me a favour, stop trashing my thread with zero-thought crap. If you are too stupid or stubborn to understand how a solid uptime script can help save you money and unnecessary pain, and how mine does the job of many monthly-paid services for a once off $3, then don't pollute my thread.

Okay listen up tardy-boy that is exactly my fucking problem with you and your tread. You are again and again putting up this $3 figure when to have the same reliability of something like hyperspin which costs me just a few bucks per server would cost me lot more with your script by having more servers (shared accounts) in multiple datacenters.

Prove to me that I can save money over paying a few bucks a server every month to hyperspin v/s having same kind of reliability / redundancy that hyperspin has by having multiple servers myself with your script on.

PS: We don't like people polluting our BST section with crap. Keep that to DP only. KTHXBYE.
 
OK. I'll go over it again because you are clearly mentally challenged.

If your website or websites are down, verifying this fact from 10 different sources does absolutely nothing. Your website is still down. The chances that your shared hosting is down at the SAME TIME as your other servers, is so remote it's really just ridiculous. But if you are that paranoid, you can run the script from two different shared hosts - which now makes this "issue" non-existant. I have explained why shared hosts are extremely reliable too. Sometimes slow, but always up.

The whole thing about checking from multiple sources is a complete gimmick that suckers like yourself fall for. Place this script on two different servers and you have plenty of redundancy. If you have OCD and really need an "OK" from 20 different data centers, go and do that. For sane people, this script works extremely well.

I've answered your questions repeatedly now so kindly stop polluting my thread.
 
Can you feel the love?

I actually think this script could be quite useful. I have a couple of accounts from excellent hosts who do their own monitoring so I don't have to worry about it. I also have lots of shitty accounts scattered around the place for SEO purposes that I don't keep track of very well and sometimes I find the "company" has closed down, had their reseller account suspended cause they couldn't pay $10 to their host etc etc etc.

I'll take a copy, PM me your payment details.
 
The chances that your shared hosting is down at the SAME TIME as your other servers, is so remote it's really just ridiculous.

Wrong.

I use Pingdom, Alertra, SiteUptime and mon.itor.us for uptime monitoring and there are many times when one of their servers are down and unable to monitor my server. Hence the need for redundancy. The more servers monitoring your server the better.

It's not a hard concept.

Again though, what is this script going to offer me that say, a free account at SiteUptime - Website Monitoring Service won't...?
 
Wrong.

I use Pingdom, Alertra, SiteUptime and mon.itor.us for uptime monitoring and there are many times when one of their servers are down and unable to monitor my server. Hence the need for redundancy. The more servers monitoring your server the better.

It's not a hard concept.

Again though, what is this script going to offer me that say, a free account at SiteUptime - Website Monitoring Service won't...?


^^^^^^

We hate each other, but he's right an awful lot, especially here!
 
Status
Not open for further replies.