Forum OpenACS Q&A: UPTIME is no more.

Collapse
Posted by Jon Griffin on
Just got a page that uptime won't be supported by ArsDigita anymore. I guess it just took to many resources! Or, maybe they need to rewrite it more efficiently in Java.
Collapse
Posted by Stephen van Egmond on
Their score has gone down by another 5 points.
Collapse
Posted by Jonathan Ellis on
Maybe they should update uptime.arsdigita.com then. :/
Collapse
Posted by Mat Kovach on
I didn't get anything about that.  Guess somebody should set up a new one just in case :)
Collapse
Posted by Jeff Davis on
Jon, where did you see this?  I certainly did not hear this nor has anyone else I asked.  Could you post a link to the page you mentioned.
Collapse
Posted by James Punteney on
I got the same email from Arsdigita:

From: "mailto:news@arsdigita.com"; <mailto:news@arsdigita.com>
Subject: ArsDigita Notice: uptime.arsdigita.com
Date: Thu, 7 Jun 2001 17:46:47

Dear Uptime Users,

Unfortunately, ArsDigita is currently no longer supporting the Uptime free tool. We sincerely apologize for any inconvenience that this may cause you.

The Uptime tool will be live for the next 24 hours. As of June 8, at 5:00 p.m. EDT, Uptime will then cease functionality. You may, however, download the source code for Uptime here:

http://www.arsdigita.com/free-tools/uptime.html

Again, we apologize and send our thanks for your support of the ArsDigita Community. Please direct any questions or concerns to mailto:webmaster@arsdigita.com.

Best regards,

The ArsDigita.com Team

Collapse
Posted by Mat Kovach on
*grr* I got the same email.  Has anybody looked at the data model or have a postgres port of it?  I'd hate to duplicate somebody's work :)
Collapse
Posted by Michael A. Cleverly on
If you grab the tar file at http://www.arsdigita.com/free-tools/uptime.html, the only thing in uptime/uptime/data-model.sql that needs to be changed is the definition for the uptime_stale_p function. The rest of the data model (the tables, index, & sequence) work perfectly well in either Oracle or Postgres.

Seems odd that ArsDigita would cancel this service, which obviously does not require much bandwidth or effort to keep going. Maybe a little tweak at Philip on the first day of the trial?

Collapse
Posted by Gaizka Villate on
I'm afraid you need to change a query, too:

In uptime-defs.tcl, you should change:

proc uptime_monitor_list_of_ids {db monitor_ids} {
...
...
set selection [ns_db 0or1row $db "select uu.*,to_char(time_when_first_unreachable,'YYYY-MM-DD HH24:MI:SS') as full_unreachable_time, to_char(sysdate,'YYYY-MM-DD HH24:MI:SS') as full_sysdate, round((sysdate - time_when_first_unreachable)*60*24) as n_minutes_downtime
...

for something like this:

...
...
set selection [ns_db 0or1row $db "select uu.*,to_char(time_when_first_unreachable,'YYYY-MM-DD HH24:MI:SS') as full_unreachable_time, to_char(sysdate(),'YYYY-MM-DD HH24:MI:SS') as full_sysdate, round(date_part('epoch', sysdate() - time_when_first_unreachable)/60) as n_minutes_downtime
from ...

since i think PostgreSQL doesn't have a functino round(interval).

Ah, you should also change every call of sysdate for sysdate() and create the usual openacs replacement for sysdate():

create function sysdate() returns datetime as '
begin
        return ''now'';
end;' language 'plpgsql'; 

And, since i've started writing, i'll also post a possible redefinition for uptime_stale_p:

create function uptime_stale_p (datetime)
returns varchar
as '
declare
        time_when_first_unreachable alias for $1;
begin
        IF time_when_first_unreachable is null
          THEN return ''f'';
        ELSE
            IF time_when_first_unreachable > (sysdate() - 10)
                THEN return ''f'';
            ELSE return ''t'';
            END IF;
        END IF;
        return result;
end;
' language 'plpgsql';

Hope that helps!

Collapse
Posted by Ben Adida on
Instead of posting code to the bboards, why doesn't someone port and
package this? We'll feature it on openacs.org. Heck.... maybe we'll
run a version of it at openacs.org?

First person who wants to grab it, raise your hand, and go for it.

Collapse
Posted by Michael Feldstein on
Is there any way to create some kind of a peer-to-peer network of
Uptime servers so that you could distribute the load? It seems to
me that many, many sites could use this kind of a
service--enough that people might be willing to participate in
some sort of network like the ones that exist for relaying email or
DNS information.
Collapse
Posted by Mat Kovach on
I'm currently working on it:

http://uptime-pg.alal.com

Running into a few issues but hopefully (assuming work doesn't want me to really do anything today) I'll have something in the next few hours :)

Collapse
Posted by Ben Adida on
Michael,

The distributed uptime system is *significantly* more complicated.
Maybe something to think about for later on. Note also that if someone
becomes part of the network and their own network connection isn't
great, it may add a lot of false alarms to the system. If anyone wants
to work on this, great idea, but let's come up with a solution right
away to replace the existing uptime service.

Collapse
Posted by Ben Adida on
I just received from Gaizka a tarball of the ported system. I will
post it right away. Just wanted to let people know so no one spends
more time on just porting.
Collapse
Posted by Mario P. Bontempi on
If it could be of interest, and the load is not too much, I am willing
to host UPTIME as a service to the OpenACS community.

Thanks to Petru Paler we just installed ver. 3.2.5 on our FreeBSD
4.2 server.

The server has 2xPentium III 900 Mhz, 2 Gb RAM, 4 Gb swap file,
36 Gbx5 HD.

Please let me know.

Thank you

Mario P. Bontempi

igb.net

Collapse
Posted by Ben Adida on
more than power, do you have a reliable internet connection on your
server? Is it a co-location with redundant net providers? That's the
key question.

By the way, running uptime doesn't require OpenACS. It requires
AOLserver and PG, but it's quite simple otherwise.

Collapse
Posted by Talli Somekh on
well, if my experience means anything, running it on FreeBSD means that your computer may need an uptime service running somewhere else. is there reason to think that AOLserver on FreeBSD works now?

talli

Collapse
Posted by Mario P. Bontempi on
Ben,

agniserver.com is connected through hopone.net.

You can check our connectivity at:
http://www.hopone.net/dca1-noc.html

Right now I am not in a position to give back something to the
community, so I though this was a good idea.

I do not want to offer a bad service in any way though.

If you think FreeBSD is not reliable, I would rather not do it.

Regards

Collapse
Posted by Mario P. Bontempi on
Talli,

Agniserver is fully monitored, via hopone.net pings (internally).

Regards

Collapse
Posted by Bart Teeuwisse on
Mat don't forget to change the credit for hosting the UPTIME service from ArsDigita to alal.com. 😊 Your port is so straightforward that it still reads:

Welcome to Uptime a server uptime monitoring system, provided as a service to the entire Internet by ArsDigita!

Collapse
Posted by Ben Adida on
The OpenACS Group is hosting a PG-backed version of uptime as of right
now. I would like someone else to take this over in the near future,
but I wanted to put up a solution right away for those of you
horrified at the 5pm shutdown time of ArsDigita's version.
<p>
So, while we figure out who is eventually going to host this, go to <a
href=http://uptime.openacs.org>http://uptime.openacs.org</a>, or, if
DNS hasn't spread yet, <A
href=http://207.121.70.192>http://207.121.70.192</a>.
<p>
Whoever ends up hosting this will definitely get a data dump from us,
so you can go ahead and enter your URLs in this system. I tried to get
a dump from the aD site, but their full-listing page doesn't display
email addresses... No matter, Uptime lives!
Collapse
Posted by Ben Adida on
ArsDigita seems to have decided to keep Uptime up and running, given
the feedback they've received. This just went out on the AOLserver
mailing list.
Collapse
Posted by Mat Kovach on
Heh, after I get Docs up, they change their mind.

*grr*

Collapse
24: Re: UPTIME is no more. (response to 1)
Posted by Alex kozlov on
I use www.jaguard.net Check site every 10 min for free