Paul Jennings wrote: > I am gathering data from some wireless radios via > snmpget with a script that runs every five minutes. I > set up a database for each radio with the following > command: > > rrdtool create radio1.rrd --step 300 > DS:btx:COUNTER:600:U:U DS:brx:COUNTER:600:U:U > DS:rssi:GAUGE:600:U:U RRA:AVERAGE:0.5:1:288 > RRA:LAST:0.5:1:600
Assuming the counters are really counters: looking good. Just to make sure: you have to run this once, not every time. It has happened before that someone had this cmd every time :) > I have the script set up to dump the values to the > screen, so I know I'm getting them from snmpget. The > script runs the following command to update the > database (the actual numbers are just examples...): Try saving the commands to a separate file. You can use this to debug your problem *and* to generate a small example when we ask for it. > rrdtool update radio1.rrd N:16319:38384:78 > > If I try this command to view some data, all values > show NaN: > > rrdtool fetch radio1.rrd LAST You should have 600 * 300 seconds worth of data in that RRA (after a while of course, not right away). To debug this: 1) check that the time stamp of the RRD file has changed after an update. If not, there's something going wrong with your update command 2) make sure to see errors when they occur. Things like "1>/dev/null 2>&1" should be avoided at all times, especially when debugging a problem 3) If you don't succeed to debug the problem, create a small example script and send a few lines of update commands. Make sure to use the time, not "N" in the update command. cheers, -- __________________________________________________________________ / [EMAIL PROTECTED] [EMAIL PROTECTED] \ | work private | | My employer is capable of speaking therefore I speak only for myself | +----------------------------------------------------------------------+ | Technical questions sent directly to me will be nuked. Use the list. | +----------------------------------------------------------------------+ | http://faq.mrtg.org/ | | http://rrdtool.eu.org --> tutorial | +----------------------------------------------------------------------+ -- 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
