Firefox 3 RC1 was just released and boy is it snazzy. So far, I can only see a small increase in page rendering times. Hopefully, after running it for a few more hours, it won't wreak havoc on my RAM and stay at a lean 79MB.
Anywho, it disabled my delicious bookmarks plugin, but you can get one that works with Firefox 3 here:
http://del.icio.us/extensions/firefox/delicious.xpi
Saturday, May 17. 2008
Firefox 3 RC1
monitoring latency and packet loss with mrtg and ping
I've been using MRTG for years to graph traffic on switch ports, but only recently started using it to graph other fun things.
Recently, I've started using it for latency.
/usr/local/bin/ping-host.sh:
Then in your mrtg.conf file:
You can also execute remote commands over SSH. I use that for load averages. You'll have to figure out how to set up authentication keys. Otherwise, the automated script will be prompted for a password on the console, which you won't be attached to. I might post later about setting up authentication keys for password-less login, but for now, here's my load average script, to be run on the remote host:
loadavg.sh:
Then on your MRTG host do something like:
Recently, I've started using it for latency.
/usr/local/bin/ping-host.sh:
#!/bin/sh
PING="/bin/ping"
ADDR="172.16.0.100"
DATA=`$PING -c10 -s500 $ADDR -q `
LOSS=`echo $DATA | awk '{print $18 }' | tr -d %`
echo $LOSS
if [ $LOSS = 100 ];
then echo 0
else
echo $DATA | awk -F/ '{print $5 }'
fi
Then in your mrtg.conf file:
Title[ping-host]: RTT to host
PageTop[ping-host]: <H1>Host Round Trip Time</H1>
Target[ping-host]: `/usr/local/bin/ping-host.sh`
MaxBytes[ping-host]: 2000
Options[ping-host]: growright,unknaszero,nopercent,gauge
LegendI[ping-host]: Pkt loss %
LegendO[ping-host]: Avg RTT
YLegend[ping-host]: RTT (ms)
ShortLegend[_]: p/s
You can also execute remote commands over SSH. I use that for load averages. You'll have to figure out how to set up authentication keys. Otherwise, the automated script will be prompted for a password on the console, which you won't be attached to. I might post later about setting up authentication keys for password-less login, but for now, here's my load average script, to be run on the remote host:
loadavg.sh:
#!/bin/bash
awk /proc/loadavg '{print (100*$1) "\n" (100*$2) }'
Then on your MRTG host do something like:
Target[Mail-LoadAvg]: `ssh -l mailnull mail.host.tld ./loadavg.sh`
(Page 1 of 1, totaling 2 entries)


