Uptime script
Printed From: Web Wiz Forums
Category: General Discussion
Forum Name: General Discussion
Forum Description: General discussion and chat on any topic.
URL: https://forums.webwiz.net/forum_posts.asp?TID=9938
Printed Date: 29 March 2026 at 12:33pm Software Version: Web Wiz Forums 12.08 - https://www.webwizforums.com
Topic: Uptime script
Posted By: huwnet
Subject: Uptime script
Date Posted: 10 April 2004 at 8:15am
Does anyone know of an uptime script in asp/asp.net?
I know devjunkies.com has a server uptime in days, hours etc. However I
need a script that will tell me the percent of uptime my server has had!
|
Replies:
Posted By: Mart
Date Posted: 10 April 2004 at 8:21am
|
You would have to search for a service to do that. Simply because the server cannot count when its not up because its probably switched off and being repaired.
|
Posted By: michael
Date Posted: 10 April 2004 at 10:17am
I doubt you are able to install your own components but here is one: http://www.smartad.biz/muttok/uptime/ - http://www.smartad.biz/muttok/uptime/
------------- http://baumannphoto.com" rel="nofollow - Blog | http://mpgtracker.com" rel="nofollow - MPG Tracker
|
Posted By: Mart
Date Posted: 10 April 2004 at 10:19am
|
No, he wants the percentage uptime not total uptime.
|
Posted By: MadDog
Date Posted: 10 April 2004 at 10:41am
You could write something into the global.asa file that counted how long the server has been up. After a server has been restarted or reset the global.asa file is reset, so that could tell you the last time the server was shut down.
------------- http://www.iportalx.net" rel="nofollow">
|
Posted By: michael
Date Posted: 10 April 2004 at 12:25pm
Yeah but in his case, it does not know how long the server has been down. I suspect he wants to calculate what the uptime/month is, maybe he wants to show his hosting company that they fall below their promised 98% or so... There are external services that constantly monitor a server, it is clsoe to impossible to do, even with .net doing it on the same server. You never know how long a server is down, unresponsive etc.
------------- http://baumannphoto.com" rel="nofollow - Blog | http://mpgtracker.com" rel="nofollow - MPG Tracker
|
Posted By: dpyers
Date Posted: 10 April 2004 at 12:48pm
Note that a server may be "up", but particular services may be down or in restart- e.g. http, asp, ftp, email, sql server, etc.
-------------
Lead me not into temptation... I know the short cut, follow me.
|
Posted By: huwnet
Date Posted: 10 April 2004 at 1:37pm
michael wrote:
I doubt you are able to install your own components but here is one: http://www.smartad.biz/muttok/uptime/ - http://www.smartad.biz/muttok/uptime/ |
Looks good but I can't do the percent of uptime. 
|
Posted By: Mart
Date Posted: 11 April 2004 at 5:02am
|
You need an external service to work out the percentage uptime. Simply because nothing you install on the server can make an external request to see if everything is ok. However a service should be able to do it but I think it would cost you.
|
Posted By: huwnet
Date Posted: 11 April 2004 at 7:25am
|
If I had some examples I might be able to persuade my host.
|
Posted By: Mart
Date Posted: 11 April 2004 at 8:38am
|
Your host probably would not subscribe to a service like this because it would cost them a lot of money and a lot of people wouldn't want it. You would probably have to subscribe individually.
|
Posted By: huwnet
Date Posted: 11 April 2004 at 9:46am
|
Yeah but the problem is they aren't giving the full uptime provided in
their service. However they have no way of checking. Surely that is
against my rights.
|
Posted By: Mart
Date Posted: 11 April 2004 at 9:56am
|
Well its not against your rights unless they have stated somewhere on their site that they provide a full uptime service. What host are you using?
|
Posted By: michael
Date Posted: 11 April 2004 at 10:44am
|
Again, use a 3rd Party monitoring service your host will NEVER give you a reliable figure.
------------- http://baumannphoto.com" rel="nofollow - Blog | http://mpgtracker.com" rel="nofollow - MPG Tracker
|
Posted By: dpyers
Date Posted: 11 April 2004 at 10:50am
|
Typically, an uptime guarentee says something about server availability, not service availability. The server may be up, and that's readily trackable by them, but IIS/any/all of its services may be down. Don't confuse server availability with the ability to run ASP.
I use http://www.ipmonitor.com/ - http://www.ipmonitor.com/ to monitor servers and network. They're pricy. If you check out their features however, it'll give you a benchmark for evaluating cheaper/free monitors.
-------------
Lead me not into temptation... I know the short cut, follow me.
|
Posted By: Diep-Vriezer
Date Posted: 11 April 2004 at 5:28pm
|
Can't you sort of note the dates when ASP(.Net) gets resetted or something? Is there no event that can be handled whenever the service shuts down? Something like the 'OnBeforeUnload' event in a HTML page (useless name..).
If not, try to have another server (or your home pc) analyse the server for a while, by simply requesting a page which uses most of the system resources.
EDIT: or get some geek to sit there 24/7 hitting F5 all the time..
------------- Gone..
|
Posted By: michael
Date Posted: 11 April 2004 at 7:55pm
dpyers wrote:
I use http://www.ipmonitor.com/ - http://www.ipmonitor.com/ to monitor servers and network. They're pricy. If you check out their features however, it'll give you a benchmark for evaluating cheaper/free monitors.
|
Now the real question is, what is the uptime guarantee of ipmonitor?
------------- http://baumannphoto.com" rel="nofollow - Blog | http://mpgtracker.com" rel="nofollow - MPG Tracker
|
Posted By: Mart
Date Posted: 12 April 2004 at 3:33am
Posted By: Diep-Vriezer
Date Posted: 12 April 2004 at 6:36am
|

EDIT messages are so empty whenever you just post a smiley, so I'll just add some useless content
------------- Gone..
|
Posted By: huwnet
Date Posted: 12 April 2004 at 1:13pm
|
Looks like I will never to be able to make sure I get my promised uptime.
|
Posted By: michael
Date Posted: 12 April 2004 at 1:47pm
Just ask them to give you an uptime report, if you feel they are faking it you can sue them.
------------- http://baumannphoto.com" rel="nofollow - Blog | http://mpgtracker.com" rel="nofollow - MPG Tracker
|
Posted By: Diep-Vriezer
Date Posted: 12 April 2004 at 3:12pm
|
huwnet wrote:
Looks like I will never to be able to make sure I get my promised uptime. |
Never doesn't exists.
------------- Gone..
|
Posted By: Semikolon
Date Posted: 12 April 2004 at 3:54pm
|
isn't it possible to check when the server were shut down and when it were started? then you could calculate the time it was down and find out how many percent it is..
only a suggestion, maybe it's not possible
|
Posted By: michael
Date Posted: 12 April 2004 at 5:02pm
Well if the host gives you access to the shutdown logs (win2003) which I kinda doubt. Just write a little .net Socket app, leave it running on your computer and count the clicks you could connect.
------------- http://baumannphoto.com" rel="nofollow - Blog | http://mpgtracker.com" rel="nofollow - MPG Tracker
|
Posted By: Diep-Vriezer
Date Posted: 13 April 2004 at 8:33am
|
Again, a system shutdown log doesn't tell anything about the services.
Can't you acces the whole log with the system.diagnosics (or something like that)?
------------- Gone..
|
Posted By: Mart
Date Posted: 13 April 2004 at 8:44am
|
Not that I know of, System.Diagnostics is mainly for monitoring processes.
|
Posted By: Diep-Vriezer
Date Posted: 13 April 2004 at 8:54am
It has some log features. Not sure tough.
------------- Gone..
|
Posted By: Diep-Vriezer
Date Posted: 13 April 2004 at 1:49pm
|
JodoHost, did you post a message here? I recieved a notice, but have you deleted it? If so, why? 
------------- Gone..
|
Posted By: Semikolon
Date Posted: 13 April 2004 at 2:09pm
|
I think he did
yo JodoHost, you are Yash right?
|
Posted By: huwnet
Date Posted: 13 April 2004 at 2:14pm
I am not on jodohost, but what did the message say?
I got a message from one and one saying I cuold anaylse the server logs
using hitlist. Does anyone know a free version of this program?
|
Posted By: Semikolon
Date Posted: 13 April 2004 at 2:22pm
|
maybe he didn't want anybody to read what he wrote, so he deleted it.. but I didn't see anything wrong in it, so here it is (Sorry Yash if I wasn't meant to post this)
Forum: General Discussion Topic: Uptime script Posted By: JodoHost
An uptime script won't give you any clue about downtime. We restart our win servers pretty often, maybe a few times each week. And when you restart, the script gets reset even though a restart only takes 30 seconds
And the reason most hosts have to restart that often is because many customers don't understand the wisdom of closing their DB connections or writing clean code. We have 2 to 4GB of ram on each of our servers and they really get eaten away very fast.
|
Posted By: TYSON
Date Posted: 18 April 2004 at 1:34am
|
Ive been using http://www.siteuptime.com - http://www.siteuptime.com in addition to our datacenters monitoring and it seems to be pretty reliable. The only downfall is that the free service only checks every 30 mins, so if your down for 20 mins there is a chance that they wont pick it up.
------------- http://www.fuo-motorsports.com/ - http://www.fuo-motorsports.com/
|
Posted By: michael
Date Posted: 18 April 2004 at 11:15am
Semikolon wrote:
maybe he didn't want anybody to read what he wrote, so he deleted it.. but I didn't see anything wrong in it, so here it is (Sorry Yash if I wasn't meant to post this)
Forum: General Discussion Topic: Uptime script Posted By: JodoHost
An uptime script won't give you any clue about downtime. We restart our win servers pretty often, maybe a few times each week. And when you restart, the script gets reset even though a restart only takes 30 seconds
And the reason most hosts have to restart that often is because many customers don't understand the wisdom of closing their DB connections or writing clean code. We have 2 to 4GB of ram on each of our servers and they really get eaten away very fast.
|
Well IF you use 2003 and you know how to configure your application pool there is no need for that. You can have the application which includes all open connections abandoned at a certain event. Now there it's a shame jodo is more for 2000 for resons beyond my comprehension.
------------- http://baumannphoto.com" rel="nofollow - Blog | http://mpgtracker.com" rel="nofollow - MPG Tracker
|
Posted By: huwnet
Date Posted: 18 April 2004 at 11:21am
|
I am on a 2003 but because it is not a dedicated server I cannot change application pools.
|
Posted By: dpyers
Date Posted: 18 April 2004 at 11:40am
|
Some hosts have tried 2003 but backed it off as there were problems with existing apps. MS has promised fixes, but no date for them.
huwenet - on 2003, your host should have you set up as a separate application instance - independent of other people sharing the server.
-------------
Lead me not into temptation... I know the short cut, follow me.
|
Posted By: Semikolon
Date Posted: 18 April 2004 at 12:08pm
michael wrote:
Semikolon wrote:
maybe he didn't want anybody to read what he wrote, so he deleted
it.. but I didn't see anything wrong in it, so here it is (Sorry Yash
if I wasn't meant to post this)
Forum: General Discussion Topic: Uptime script Posted By: JodoHost
An uptime script won't give you any clue about downtime. We restart
our win servers pretty often, maybe a few times each week. And
when you restart, the script gets reset even though a restart only
takes 30 seconds
And the reason most hosts have to restart that often is because many
customers don't understand the wisdom of closing their DB connections
or writing clean code. We have 2 to 4GB of ram on each of our servers
and they really get eaten away very fast.
|
Well IF you use 2003 and you know how to configure your application
pool there is no need for that. You can have the application which
includes all open connections abandoned at a certain event. Now there
it's a shame jodo is more for 2000 for resons beyond my comprehension. |
they faced so many problems with 2003 that they "had" to downgrade
|
Posted By: huwnet
Date Posted: 29 April 2004 at 3:00pm
Did I say my host told me to analyse the server logs? I did but the
server logs do not show uptime. What a waste of my time!
|
Posted By: JodoHost
Date Posted: 03 May 2004 at 8:07am
|
michael wrote:
Well IF you use 2003 and you know how to configure your application pool there is no need for that. You can have the application which includes all open connections abandoned at a certain event. Now there it's a shame jodo is more for 2000 for resons beyond my comprehension. |
Win2003 was a disaster for us. We're not the only hosting company that has decided to downgrade to Win2000
Sessions crashing, IIS hanging, stability problems (due to some issue between the data drivers and Win2003 - acknowledged by MS but no fix), ASP dying, etc...
Win2003 of course offers some improvements like you mentioned but I do not think that is worth it when it comes with all these problems.
- Yash
|
Posted By: Diep-Vriezer
Date Posted: 03 May 2004 at 8:55am
JodoHost wrote:
michael wrote:
Well IF you use 2003 and you know how to configure your application pool there is no need for that. You can have the application which includes all open connections abandoned at a certain event. Now there it's a shame jodo is more for 2000 for resons beyond my comprehension. |
Win2003 was a disaster for us. We're not the only hosting company that has decided to downgrade to Win2000
Sessions crashing, IIS hanging, stability problems (due to some issue between the data drivers and Win2003 - acknowledged by MS but no fix), ASP dying, etc...
Win2003 of course offers some improvements like you mentioned but I do not think that is worth it when it comes with all these problems.
- Yash
|
I'm running several Win2003 servers without any problems..
------------- Gone..
|
Posted By: Semikolon
Date Posted: 03 May 2004 at 9:38am
but you don't run your servers with 500-1000 websites with god-knows-what-code
|
Posted By: Diep-Vriezer
Date Posted: 03 May 2004 at 9:43am
|
^_^
Well no. Thank god no. I'm more an exclusive host =)
------------- Gone..
|
|