Ok, so I got this cool tool and now I need to learn how to use it :) First off let me state that I have read the doc's and thats what has gotten me this far.
I'm not a coder, I don't think like a coder, but I want to learn. So with that established that I'm an idiot I can proceed :) I have a need to graph the iostat on a number of boxes. So I have create a rrd file to track 4 of the fields, rkB/s, wkB/s, await, and %util. I understand that I will need a seperate rrd file for each partition, /dev/hda, /dev/hda1, etc... So this is what I came up with... rrdtool create \ localhost_iostat_hda.rrd \ --step 300 \ DS:hda_read:GAUGE:600:0:U \ DS:hda_write:GAUGE:600:0:U \ DS:hda_await:GAUGE:600:0:U \ DS:hda_percent:GAUGE:600:0: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 Now in a simple shell script I have the following, since I will be inputting the device manually for now, later it will be automatic to query the fstab file and get the list of partitions from there to feed into the iostat and then into the rrdtool. #!/bin/sh iostat -d -x 2 2| grep $1\ | awk '{print $8":"$9":"$13":"$14}' When I have attempted to add these four entries manually it seems to work just fine doing... rrdtool update localhost_iostat_hda.rrd N:62.07:36.09:27.14:101.02 Yet when I try to fetch I get the following... [EMAIL PROTECTED] scripts]# rrdtool fetch localhost_iostat_hda.rrd AVERAGE -r 300 -s -1h hda_read hda_write hda_await hda_percent 1085515200: nan nan nan nan 1085515500: nan nan nan nan 1085515800: nan nan nan nan 1085516100: nan nan nan nan 1085516400: nan nan nan nan 1085516700: nan nan nan nan 1085517000: nan nan nan nan 1085517300: nan nan nan nan 1085517600: nan nan nan nan 1085517900: nan nan nan nan 1085518200: nan nan nan nan 1085518500: nan nan nan nan 1085518800: nan nan nan nan 1085519100: nan nan nan nan What am I doing wrong? Am I doing anything right? As for the rrd I want to keep a 5 min log for 6 hours, 15 min log for 12 hours, a 30 min log for 24 hours but I no I don't have my numbers correct in the create section but I can always redo that. Thanks, and sorry for the questions. Joe -- 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