Xymon Mailing List Archive search

http response time

list Rolf Schrittenlocher
Thu, 08 May 2008 08:01:44 +0200
Message-Id: <user-62b57a5eab36@xymon.invalid>

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: (XX) XX - XXX XXXXX   Fax: (XX) XX XXX XXXXX
LBS: user-1e39a1813094@xymon.invalid
Persoenlich: user-ea9d95bffcf0@xymon.invalid