[mrtg] Re: Newbie data analysis / script question

Takumi Yamane yamtak at b-session.com
Thu Jul 29 20:36:43 MEST 2004

On Thu, 29 Jul 2004 10:56:55 -0600, "Dan Tappin" wrote 
in <GBEFINNCIELENBMHGLJDAEFFECAA.dan.tappin at orourke.ca>:
> following data that I want to use via MRTG:
> Signal Strength.............. 80      Stream Msg-Ackd/Nakd........ 
> curl http://myurl | grep "Signal Strength" which will get the line 
> containing my required data.  From here I am lost.

curl http://myurl | grep "Signal Strength" | cut -c31-33


curl http://myurl | awk '/^Signal Strength/ {print $3}'
curl http://myurl | perl -ne 'print $1, "\n" if (/^Signal\D+(\d+)/o); '

Takumi Yamane <yamtak at b-session.com>

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