[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [hobbit] http response time
- To: hobbit (at) hswn.dk
- Subject: Re: [hobbit] http response time
- From: "Ralph Mitchell" <ralphmitchell (at) gmail.com>
- Date: Thu, 8 May 2008 10:11:48 -0500
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; bh=oOFZYnQGrioBftbqYoPzDsocRPBrO9Ylf5oP5iwSiGI=; b=EIU8muUddOBwAkXpKRTnxdfjd+ft2gMQ2K2pr7aUyRaYeksRl9CHFwd9NRXpHDgVJVyAu/pCZhobYQuImL0a1THFEROABVZnm06dio9DMy4v35nT46nC8BLW4ZkNtze/sfclsmcIQ0kpPyuy8bvurtxVpc6tk5kQK+cATfmiZ4c=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=gSJzEqKlRXdHyy2s65hqpdp/JraYpglWvC8/kHrw/nQGd3am2aWi5yzGwN5+qOmkcYRDp9sItTofmtdPfQVWLVev8hyAUYKW8g9Q/AukJBXxCjxWnvk3PhH7A2BbdaF+UB2Qg6sUAjKxhxMoQia4TsOCG/wUm5y9uMsHh/HiwOU=
- References: <997a524e0805071412t44e7e6ccv3280989434df110d (at) mail.gmail.com> <48229748.5040201 (at) hebis.uni-frankfurt.de>
On Thu, May 8, 2008 at 1:01 AM, Rolf Schrittenlocher <
schritte (at) hebis.uni-frankfurt.de> wrote:
> Hi Ralph,
>
> I don't think there is something like that in hobbit. But you might want
> to create a custom script including something like (perl)
>
> # Aktuelles Datum
> $t0 = time;
> $ZEITSTEMPEL = localtime($t0);
>
> ##################################################################
> # Check Website
> ##################################################################
> #
> system("wget -o /dev/null -O /tmp/ \"$REQUEST\" 2>/dev/null");
>
> # Bestimmung des Ergebnissstatuses aus der Antwortzeit.
> $elapsed = time - $t0;
> if ( $elapsed <= 6 ){
> $STATUS = $OPTIMAL;
> }
> elsif ( $elapsed <= 12 ){
> $STATUS = $WARNUNG;
> }
> else {
> $STATUS = $FEHLER;
> }
Thanks for that. If I have to I'll do something similar in bash with curl,
as I'm more familiar with that:
elapsed=`curl -s -S -L -w '%{time_total}' http://server.domain.com`
which gives me time in seconds, with millisecond resolution.
I'd like to get the graphs as well, without having to fiddle with the
message format.
Ralph Mitchell