Please note: This project is no longer active. The website is kept online for historic purposes only.
If you´re looking for a Linux driver for your Atheros WLAN device, you should continue here .

Changes between Version 1 and Version 2 of UserDocs/Tools/rrdtooSnmpget

Author:
Duncan Webb <duncan-wifi@linuxowl.com> (IP: 0.0.0.0)
Timestamp:
08/20/06 15:34:46 (13 years ago)
Comment:

Added image and small corrections

Legend:

Unmodified
Added
Removed
Modified
  • UserDocs/Tools/rrdtooSnmpget

    v1 v2  
    55== Output == 
    66The graph from the wifi-daily.png will look similar to this: 
    7 ![[Image(wifi-bandwidth.png)]] 
     7[[Image(day-net-ath0.png)]] 
    88 
    99== Create == 
    1212{{{ 
    1313#! /bin/bash 
    14 # create-bandwidth.sh 
     14# create-throughput.sh 
    1515 
    1616# check every 5 minutes for 7 days 
    17 rrdtool create /var/lib/sensord/bandwidth.rrd --start N \ 
     17rrdtool create /var/lib/sensord/throughput.rrd --start N \ 
    1818  DS:in:COUNTER:600:U:U \ 
    1919  DS:out:COUNTER:600:U:U \ 
    3131{{{ 
    3232#! /bin/bash 
    33 # update-bandwidth.sh 
     33# update-throughput.sh 
    3434 
    3535# check every 5 minute for 7 days 
    36 /usr/bin/rrdupdate /var/lib/sensord/bandwidth.rrd \ 
     36/usr/bin/rrdupdate /var/lib/sensord/throughput.rrd \ 
    3737  N:\ 
    3838  $(/usr/bin/snmpget -v 1 -c public -Oqv localhost IF-MIB::ifInOctets.4):\ 
    4343 
    4444{{{ 
    45 */5 * * * * update-bandwidth.sh 
     45*/5 * * * * update-throughput.sh 
    4646}}} 
    4747 
    5252{{{ 
    5353#! /usr/bin/python 
    54 # graph-quality.py 
     54# graph-throughput.py 
    5555 
    5656import rrdtool 
    5757 
    5858# Generate a graph of the last 24 hours of the data throughput 
    59 rrdtool.graph('/usr/share/freevo/htdocs/sensors/pix/day-net-ath0.png', 
     59rrdtool.graph('day-net-ath0.png', 
    6060    '--imgformat', 'PNG', 
    6161    '--height', '200', '--width', '800', 
    6565    '--start', '-1days', 
    6666    '--x-grid', 'HOUR:1:HOUR:3:HOUR:3:0:%b %d %H:00', 
    67     'DEF:in=/var/lib/sensord/bandwidth.rrd:in:AVERAGE', 
    68     'DEF:out=/var/lib/sensord/bandwidth.rrd:out:AVERAGE', 
     67    'DEF:in=/var/lib/sensord/throughput.rrd:in:AVERAGE', 
     68    'DEF:out=/var/lib/sensord/throughput.rrd:out:AVERAGE', 
    6969    'CDEF:kbin=in,1024,/', 
    7070    'CDEF:kbout=out,1024,/', 
    7777 
    7878# Generate a graph of the last 7 days of the data throughput 
    79 rrdtool.graph('/usr/share/freevo/htdocs/sensors/pix/week-net-ath0.png', 
     79rrdtool.graph('week-net-ath0.png', 
    8080    '--imgformat', 'PNG', 
    8181    '--height', '200', '--width', '800', 
    8585    '--start', '-1week', 
    8686    '--x-grid', 'HOUR:6:DAY:1:DAY:1:86400:%a %b %d', 
    87     'DEF:in=/var/lib/sensord/bandwidth.rrd:in:AVERAGE', 
    88     'DEF:out=/var/lib/sensord/bandwidth.rrd:out:AVERAGE', 
     87    'DEF:in=/var/lib/sensord/throughput.rrd:in:AVERAGE', 
     88    'DEF:out=/var/lib/sensord/throughput.rrd:out:AVERAGE', 
    8989    'CDEF:kbin=in,1024,/', 
    9090    'CDEF:kbout=out,1024,/',