tag:blogger.com,1999:blog-3153881528840143069.post7417518485269897608..comments2023-08-02T20:54:52.429+10:00Comments on Grant Trebbin: Logging and Graphing Ping from the Linux Command LineGrant Trebbinhttp://www.blogger.com/profile/13253301568478517009noreply@blogger.comBlogger5125tag:blogger.com,1999:blog-3153881528840143069.post-91975176662333774992017-03-27T02:27:43.407+10:002017-03-27T02:27:43.407+10:00This comment has been removed by the author.indirectionhttps://www.blogger.com/profile/08337250302841987350noreply@blogger.comtag:blogger.com,1999:blog-3153881528840143069.post-42281736972361608582016-01-05T01:52:42.178+10:002016-01-05T01:52:42.178+10:00your script didn't work for me very well, but ...your script didn't work for me very well, but your idea was really good, so I did this:<br /><br />HORA=./hora<br />DATOS=./datos<br />LOGS=/scripts/graph/PING_outside*.log<br />echo > $HORA<br />echo > $DATOS<br /><br />for FILE in `ls $LOGS`;do<br /> echo $FILE | awk 'BEGIN { FS = "_" } ; { print $6":"$7":"$8 }' | sed 's/.log//g' >> $HORA<br /> cat $FILE | awk -F '[ /]' '/rtt/{ print $8 }' >> $DATOS<br />done<br />sed '/^$/d' -i $DATOS<br />sed '/^$/d' -i $HORA<br /><br />gnuplot -persist << EOF<br />filename="$DATOS";<br />set terminal dumb 121 28;<br />set title 'Ping (ms)';<br />plot filename with impulses title "Ping (ms)"<br />EOF<br />for LINEA in `seq 1 $(wc -l $DATOS | awk '{print $1}')`; do<br /> VALX=`head -n $LINEA $DATOS | tail -n 1`<br /> VALY=`head -n $LINEA $HORA | tail -n 1`<br /> echo "$VALX - $VALY"<br />done;<br />Unknownhttps://www.blogger.com/profile/11789611206884146369noreply@blogger.comtag:blogger.com,1999:blog-3153881528840143069.post-18463628850877372192015-05-15T10:25:18.410+10:002015-05-15T10:25:18.410+10:00This comment has been removed by the author.Anonymoushttps://www.blogger.com/profile/00795049854282918947noreply@blogger.comtag:blogger.com,1999:blog-3153881528840143069.post-72831233991105686052013-08-22T19:19:57.054+10:002013-08-22T19:19:57.054+10:00First of all, are you using Linux? If you're u...First of all, are you using Linux? If you're using windows I'm not sure how to go about doing it. If you're using Linux let me know what part you're having trouble with and I'll try to helpGrant Trebbinhttps://www.blogger.com/profile/13253301568478517009noreply@blogger.comtag:blogger.com,1999:blog-3153881528840143069.post-46243901125597795812013-08-22T07:12:30.684+10:002013-08-22T07:12:30.684+10:00this is great but I couldnt quite follow your step...this is great but I couldnt quite follow your steps. Could you guide me a little? Im trying to monitor my AT&T T1 traffic so I can see when it spikes.Joeyhttps://www.blogger.com/profile/10589141758965515816noreply@blogger.com