[mrtg] Re: Timing web page loads

Stephane Bortzmeyer bortzmeyer at gandi.net
Fri Oct 19 11:37:52 MEST 2001


On Thu, Oct 18, 2001 at 07:04:34AM -0700,
 Eric Garnel <egarnel3470 at yahoo.com> wrote 
 a message of 57 lines which said:

> I did it a while back at my last job. Check out "web page load time
> script for MRTG" on http://www.geocities.com/egarnel3470/

I prefer my script :-)

#!/bin/sh

PATH=/bin:/usr/bin:/usr/local/bin

DELAY=`echoping -n 3 -h /tests/bidon www.gandi.net | \
        grep Median | \
        awk '{print int ($3 * 1000)}' `
echo $DELAY
echo $DELAY

UPTIME=`wget -O - -q http://www.gandi.net/server-status | \
    grep uptime | \
    awk -F: '{print $2}' | sed 's/<br>//' `

echo $UPTIME
echo Web server



where echoping can be found:

http://echoping.sourceforge.net/

--
Unsubscribe mailto:mrtg-request at list.ee.ethz.ch?subject=unsubscribe
Archive     http://www.ee.ethz.ch/~slist/mrtg
FAQ         http://faq.mrtg.org    Homepage     http://www.mrtg.org
WebAdmin    http://www.ee.ethz.ch/~slist/lsg2.cgi



More information about the mrtg mailing list