[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: Rolf Schrittenlocher <schritte (at) hebis.uni-frankfurt.de>
- Date: Thu, 08 May 2008 08:01:44 +0200
- References: <997a524e0805071412t44e7e6ccv3280989434df110d (at) mail.gmail.com>
- User-agent: Thunderbird 2.0.0.14 (Windows/20080421)
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;
}
regards
Rolf
I've just been asked if it's possible to alert on the response time
recorded in the built-in http test. Anybody know?? I don't see
anything in the manual pages that would suggest it can be done.
Thanks,
Ralph Mitchell
--
Mit freundlichen Gruessen
Rolf Schrittenlocher
Bitte beachten Sie die neue Emailadresse!
HeBIS-IT, Senckenberganlage 31, 60054 Frankfurt
Tel: (49) 69 - 798 28908 Fax: (49) 69 798 28817
LBS: lbs-f (at) mlist.uni-frankfurt.de
Persoenlich: schritte (at) hebis.uni-frankfurt.de