On Thu, May 8, 2008 at 1:01 AM, Rolf Schrittenlocher <<a href="mailto:schritte@hebis.uni-frankfurt.de">schritte@hebis.uni-frankfurt.de</a>> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi Ralph,<br>
<br>
I don't think there is something like that in hobbit. But you might want to create a custom script including something like (perl)<br>
<br>
# Aktuelles Datum<br>
$t0          = time;<br>
$ZEITSTEMPEL = localtime($t0);<br>
<br>
##################################################################<br>
# Check Website<br>
##################################################################<br>
#<br>
system("wget -o /dev/null -O /tmp/ \"$REQUEST\" 2>/dev/null");<br>
<br>
# Bestimmung des Ergebnissstatuses aus der Antwortzeit.<br>
$elapsed = time - $t0;<br>
if ( $elapsed <= 6 ){<br>
 $STATUS = $OPTIMAL;<br>
}<br>
elsif ( $elapsed <= 12 ){<br>
 $STATUS = $WARNUNG;<br>
}<br>
else {<br>
 $STATUS = $FEHLER;<br>
}</blockquote><div><br>Thanks for that.  If I have to I'll do something similar in bash with curl, as I'm more familiar with that:<br><br>   elapsed=`curl -s -S -L -w '%{time_total}' http://server.domain.com` <br>
</div></div><br>which gives me time in seconds, with millisecond resolution.<br><br>I'd like to get the graphs as well, without having to fiddle with the message format.<br><br>Ralph Mitchell<br>