Hello! I want to monitor the traffic of my router and i stared of with the example from the tutorial, but i dont understand everything about it yet.
This is my script (see below) wich runs every 5 mins. Created with: rrdtool create myrouter.rrd \ DS:input:COUNTER:600:U:U \ DS:output:COUNTER:600:U:U \ RRA:AVERAGE:0.5:1:600 \ RRA:AVERAGE:0.5:6:700 \ RRA:AVERAGE:0.5:24:775 \ RRA:AVERAGE:0.5:288:797 \ RRA:MAX:0.5:1:600 \ RRA:MAX:0.5:6:700 \ RRA:MAX:0.5:24:775 \ RRA:MAX:0.5:288:797 what woudl i have to change if i would want to run the script every 10seconds? RRA:MAX:0.5:1:600 What does 0.5 stand for? what does 1 stand for? What does 600 stand for? = 600 Samples in 1 minute? I have read the tutorial a few time, but it seems i never understood that! #!/bin/sh i=1 in=10 out=20 while [ $i > 1500 ]; do in=$[$in+25] # make something up out=$[$out+13] # make something up rrdtool update myrouter.rrd N:$in:$out rrdtool graph /usr/local/httpd/htdocs/spiekey/myrouter-day.gif --start -86400 \ DEF:inoctets=myrouter.rrd:input:AVERAGE \ DEF:outoctets=myrouter.rrd:output:AVERAGE \ AREA:inoctets#00FF00:"In traffic" \ LINE1:outoctets#0000FF:"Out traffic" sleep 300 done Thank you very much! Mario Ohnewald -- Unsubscribe mailto:[EMAIL PROTECTED] Help mailto:[EMAIL PROTECTED] Archive http://www.ee.ethz.ch/~slist/rrd-users WebAdmin http://www.ee.ethz.ch/~slist/lsg2.cgi