[rrd-users] Re: GetHTTP

Matt mjoyce at iinet.net.au
Tue Dec 12 12:47:18 MET 2006


 
I wanted to check the throughput speed of a wireless link (using nagios) and
none of the nagios plugins were suitible.
I didn't check every option of the many mnay nagios plugins, so perhaps your
right. (google Nagios Exchange)

I ended writing a bash script to do the job, I'm no bash expert, but it
worked.
Essentially, I installed a different version of time, not the shell version,
and placed a 10mb file on a server, then did :

`time -f "e" wget --delete-after -q http://foo.com/10mb`

..and then tested the value of $t
Bash doesn't handle fractions so I used bc to do the math and then tested
for true.

mj


-----Original Message-----
From: rrd-users-bounce at list.ee.ethz.ch
[mailto:rrd-users-bounce at list.ee.ethz.ch] On Behalf Of Simon Hobson
Sent: Tuesday, 12 December 2006 8:41 PM
To: rrd-users at list.ee.ethz.ch
Subject: [rrd-users] Re: GetHTTP

Baker, John wrote:
>Does anybody know of a program for FreeBSD/Linux that acts in the same 
>way as GetHTTP does for windows? It fetches a page from a web server 
>(and optionally content) and then reports back how much time it took in 
>milliseconds.

It might also be worth looking at the plugins available for Nagios - IIRC
the HTTP check is written in Perl and may be adaptable to your needs.

--
Unsubscribe mailto:rrd-users-request at list.ee.ethz.ch?subject=unsubscribe
Help        mailto:rrd-users-request at list.ee.ethz.ch?subject=help
Archive     http://lists.ee.ethz.ch/rrd-users
WebAdmin    http://lists.ee.ethz.ch/lsg2.cgi

--
Unsubscribe mailto:rrd-users-request at list.ee.ethz.ch?subject=unsubscribe
Help        mailto:rrd-users-request at list.ee.ethz.ch?subject=help
Archive     http://lists.ee.ethz.ch/rrd-users
WebAdmin    http://lists.ee.ethz.ch/lsg2.cgi



More information about the rrd-users mailing list