Web Hosting Talk







View Full Version : Monitoring uptime for clients


BlueHayes
05-15-2007, 11:35 AM
Hello

I was just after some advise about how you would monitor uptime for clients who wish to see these statistics.

I've heard alot of the websites that monitor for you often give wrong results and basically mess up.

Could anyone give me their own ideas on how they do this?

Thank you very much

Mike

M3TechSolutions
05-15-2007, 12:34 PM
Well you, you have 2 ways to go about it.

You can write or have someone write a script that does this, and then place this on a server and run it on a cron that runs every minute or less for best accuracy, or you can partner up with companies that offer such services and essentially resell their services.

BlueHayes
05-15-2007, 12:48 PM
I guess writing a script on a cron is a good way, I could just have it insert data into a table (in a database), then it can show when the server is online/offline within the minute and a percentage.

Thank you for the reply :)

If anyone else has ideas, post em up :D

M3TechSolutions
05-15-2007, 03:17 PM
Yah I was programming something along those lines a while ago, but yah, just make a script that checks to see if its up or down, and then have a script that pull every instance of that server being up and how many records there are in total for that server (up and down) so take the total UP records and divide them by the total amount of records for the server.

EX: Theres 75 records in total of times that the server was up and down. And there are 67 records where the server was up.

Take 67 and divide it by 75.

67/75 = .89333 repeating.

EDIT: Sorry also noted to get from the .89333 to the 89.333 you multiply it by 100 because that is the scale of percentages you will be using I assume and 100 is the highest in that scale.

This gives you an 89.333% Uptime. Now there are ways that you can factor in the frequency of scans to get a number, But to my knowledge even the big players in Uptime monitoring, do not even do this.

Cody

ATLDedicated
05-15-2007, 07:05 PM
Check out OSSIM or Nagios. Both very powerful software packages... :)

osphere
05-15-2007, 11:15 PM
I think there is a free service called BetterBeUp

cscertified
05-16-2007, 01:40 AM
You can always look into hyperspin or uppanel and there a ton more sites that offer this service.

BlueHayes
05-16-2007, 06:35 AM
Ah ok.. I see.

Thank you very much

I just wondered about the websites that are free, as im told theyre often inaccurate - which I don't want.

I think I might go with the solution to monitor it myself, as this seems easiest and can fit exactly into my needs, I could code something in PHP to be put on a cron once a minute and update a mysql database :)

Thanks again!

a1domainhosting
05-16-2007, 05:00 PM
Better you use a service from other website or company. Why?
Because if your server is down your code will not work as it is on same server.
If not written properly it can load your server.
MOre imp it will not send you any alert when apache is down correct? Other sites will inform you that your which service is down via Email or via SMS. Dont you think that would be more usefull to you as well to your customers.