[hobbit] http response time

Rolf Schrittenlocher schritte at hebis.uni-frankfurt.de
Thu May 8 08:01:44 CEST 2008


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 




More information about the Xymon mailing list