[mrtg] Re: Graphing Ftp and Http Transfer Time.

Alex van den Bogaerdt alex at slot.hollandcasino.nl
Wed Oct 11 01:47:01 MEST 2000


Martin Rheumer wrote:
> 
> I have achieved ftp speed testing using mrtg and ncftp
> in Debug mode and graph the resulting time to transfer
> certain files.
> 
> I would like to do the same with http.
> Has anyone had any luck with doing this with lynx or
> such on a linux machine ?

How about:

time lynx -dump http://whatever 2>&1 >/dev/null | \
sed -n 's/^.*system//;s/elapsed.*$//p'

This should discard the output of lynx, show the output of the time
command on standard out, trow away most of the output of time.

You will still need to convert the time into a useable form for MRTG but
this should probably get you started.

An alternative approach would be to use the NET::telnet module from
perl, cannot help you (yet) with that.

regards,
-- 
   __________________________________________________________________
 / alex at slot.hollandcasino.nl                  alex at ergens.op.het.net \
| work                                                         private |
| My employer is capable of speaking therefore I speak only for myself |
+----------------------------------------------------------------------+
| Technical questions sent directly to me will be nuked. Use the list. | 
+----------------------------------------------------------------------+
| http://faq.mrtg.org/                                                 |
| http://rrdtool.eu.org  --> tutorial                                  |
+----------------------------------------------------------------------+

--
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