[rrd-users] Re: Help about creating graphs
On Sun, Jul 13, 2003 at 05:16:02PM -0300, [EMAIL PROTECTED] wrote: And I did this to make gif files: /usr/local/rrdtool-1.0.42/bin/rrdtool graph test.gif --start 0 \ DEF:in_bytes=/var/local/flows/graphs/total.rrd:in_bytes:AVERAGE \ LINE2:in_bytes#FF000:in_bytes Go back to the manual page for rrdtool graph and focus on the time value given to --start. Alex -- Received on my linux server: Increase the speed of your PC in minutes! Stop windows from crashing, improve internet security and optimize your computers performance with just a few easy mouse clicks! -- Unsubscribe mailto:[EMAIL PROTECTED] Helpmailto:[EMAIL PROTECTED] Archive http://www.ee.ethz.ch/~slist/rrd-users WebAdminhttp://www.ee.ethz.ch/~slist/lsg2.cgi
[rrd-users] strange numbers
I'm getting some weird outputs on a counter graph I have, and I'm just trying to understand why. I'm actually using Cacti as a front-end, but I believe the problem is either with rrdtool, or confusion/misconfiguration on my part (which is likely). This is a quick log of the update commands, showing the actual counter value: 07/14/2003 11:42 AM - CMD: /var/mwt/rrdtool/bin/rrdtool update /var/mwt/htdocs/cacti/rra/in1cnt_9.rrd --template in1cnt N:532 07/14/2003 11:43 AM - CMD: /var/mwt/rrdtool/bin/rrdtool update /var/mwt/htdocs/cacti/rra/in1cnt_9.rrd --template in1cnt N:541 07/14/2003 11:44 AM - CMD: /var/mwt/rrdtool/bin/rrdtool update /var/mwt/htdocs/cacti/rra/in1cnt_9.rrd --template in1cnt N:550 07/14/2003 11:45 AM - CMD: /var/mwt/rrdtool/bin/rrdtool update /var/mwt/htdocs/cacti/rra/in1cnt_9.rrd --template in1cnt N:559 07/14/2003 11:46 AM - CMD: /var/mwt/rrdtool/bin/rrdtool update /var/mwt/htdocs/cacti/rra/in1cnt_9.rrd --template in1cnt N:569 07/14/2003 11:47 AM - CMD: /var/mwt/rrdtool/bin/rrdtool update /var/mwt/htdocs/cacti/rra/in1cnt_9.rrd --template in1cnt N:578 07/14/2003 11:48 AM - CMD: /var/mwt/rrdtool/bin/rrdtool update /var/mwt/htdocs/cacti/rra/in1cnt_9.rrd --template in1cnt N:586 07/14/2003 11:49 AM - CMD: /var/mwt/rrdtool/bin/rrdtool update /var/mwt/htdocs/cacti/rra/in1cnt_9.rrd --template in1cnt N:594 07/14/2003 11:50 AM - CMD: /var/mwt/rrdtool/bin/rrdtool update /var/mwt/htdocs/cacti/rra/in1cnt_9.rrd --template in1cnt N:604 07/14/2003 11:51 AM - CMD: /var/mwt/rrdtool/bin/rrdtool update /var/mwt/htdocs/cacti/rra/in1cnt_9.rrd --template in1cnt N:613 07/14/2003 11:52 AM - CMD: /var/mwt/rrdtool/bin/rrdtool update /var/mwt/htdocs/cacti/rra/in1cnt_9.rrd --template in1cnt N:620 rrdtool fetch AVERAGE output: 1058197320: 1.83e-01 1058197380: 1.505556e-01 1058197440: 1.50e-01 1058197500: 1.50e-01 1058197560: 1.663889e-01 1058197620: 1.502778e-01 1058197680: 1.336111e-01 1058197740: 1.33e-01 1058197800: 1.66e-01 1058197860: 1.4785974499e-01 MAX and MIN both have the same output (why is that?) I'm sampling data (and updating rrdtool) once a minute, and the step value for this datasource is 60 seconds: /var/mwt/rrdtool/bin/rrdtool create \ /var/mwt/htdocs/cacti/rra/in1cnt_9.rrd \ --step 60 \ DS:in1cnt:COUNTER:120:0:1000 \ RRA:AVERAGE:0.5:1:1440 \ RRA:AVERAGE:0.5:10:2016 \ RRA:AVERAGE:0.5:60:1440 \ RRA:MIN:0.5:1:1440 \ RRA:MIN:0.5:10:2016 \ RRA:MIN:0.5:60:1440 \ RRA:MAX:0.5:1:1440 \ RRA:MAX:0.5:10:2016 \ RRA:MAX:0.5:60:1440 \ I would think that I should be seeing 9,9,9,10,etc. on the graph, instead of .18 .15 etc that's actually showing up. Do I have something messed up here? Do I just not understand how it works? Or is there actually a problem here? Thanks ttyl, greg -- Unsubscribe mailto:[EMAIL PROTECTED] Helpmailto:[EMAIL PROTECTED] Archive http://www.ee.ethz.ch/~slist/rrd-users WebAdminhttp://www.ee.ethz.ch/~slist/lsg2.cgi
[rrd-users] strange numbers w/ counter
I'm getting some weird outputs on a counter graph I have, and I'm just trying to understand why. I'm actually using Cacti as a front-end, but I believe the problem is either with rrdtool, or confusion/misconfiguration on my part (which is likely). This is a quick log of the update commands, showing the actual counter value: 07/14/2003 11:42 AM - CMD: /var/mwt/rrdtool/bin/rrdtool update /var/mwt/htdocs/cacti/rra/in1cnt_9.rrd --template in1cnt N:532 07/14/2003 11:43 AM - CMD: /var/mwt/rrdtool/bin/rrdtool update /var/mwt/htdocs/cacti/rra/in1cnt_9.rrd --template in1cnt N:541 07/14/2003 11:44 AM - CMD: /var/mwt/rrdtool/bin/rrdtool update /var/mwt/htdocs/cacti/rra/in1cnt_9.rrd --template in1cnt N:550 07/14/2003 11:45 AM - CMD: /var/mwt/rrdtool/bin/rrdtool update /var/mwt/htdocs/cacti/rra/in1cnt_9.rrd --template in1cnt N:559 07/14/2003 11:46 AM - CMD: /var/mwt/rrdtool/bin/rrdtool update /var/mwt/htdocs/cacti/rra/in1cnt_9.rrd --template in1cnt N:569 07/14/2003 11:47 AM - CMD: /var/mwt/rrdtool/bin/rrdtool update /var/mwt/htdocs/cacti/rra/in1cnt_9.rrd --template in1cnt N:578 07/14/2003 11:48 AM - CMD: /var/mwt/rrdtool/bin/rrdtool update /var/mwt/htdocs/cacti/rra/in1cnt_9.rrd --template in1cnt N:586 07/14/2003 11:49 AM - CMD: /var/mwt/rrdtool/bin/rrdtool update /var/mwt/htdocs/cacti/rra/in1cnt_9.rrd --template in1cnt N:594 07/14/2003 11:50 AM - CMD: /var/mwt/rrdtool/bin/rrdtool update /var/mwt/htdocs/cacti/rra/in1cnt_9.rrd --template in1cnt N:604 07/14/2003 11:51 AM - CMD: /var/mwt/rrdtool/bin/rrdtool update /var/mwt/htdocs/cacti/rra/in1cnt_9.rrd --template in1cnt N:613 07/14/2003 11:52 AM - CMD: /var/mwt/rrdtool/bin/rrdtool update /var/mwt/htdocs/cacti/rra/in1cnt_9.rrd --template in1cnt N:620 rrdtool fetch AVERAGE output: 1058197320: 1.83e-01 1058197380: 1.505556e-01 1058197440: 1.50e-01 1058197500: 1.50e-01 1058197560: 1.663889e-01 1058197620: 1.502778e-01 1058197680: 1.336111e-01 1058197740: 1.33e-01 1058197800: 1.66e-01 1058197860: 1.4785974499e-01 MAX and MIN both have the same output (why is that?) I'm sampling data (and updating rrdtool) once a minute, and the step value for this datasource is 60 seconds: /var/mwt/rrdtool/bin/rrdtool create \ /var/mwt/htdocs/cacti/rra/in1cnt_9.rrd \ --step 60 \ DS:in1cnt:COUNTER:120:0:1000 \ RRA:AVERAGE:0.5:1:1440 \ RRA:AVERAGE:0.5:10:2016 \ RRA:AVERAGE:0.5:60:1440 \ RRA:MIN:0.5:1:1440 \ RRA:MIN:0.5:10:2016 \ RRA:MIN:0.5:60:1440 \ RRA:MAX:0.5:1:1440 \ RRA:MAX:0.5:10:2016 \ RRA:MAX:0.5:60:1440 \ I would think that I should be seeing 9,9,9,10,etc. on the graph, instead of .18 .15 etc that's actually showing up. Do I have something messed up here? Do I just not understand how it works? Or is there actually a problem here? Thanks ttyl, greg -- Unsubscribe mailto:[EMAIL PROTECTED] Helpmailto:[EMAIL PROTECTED] Archive http://www.ee.ethz.ch/~slist/rrd-users WebAdminhttp://www.ee.ethz.ch/~slist/lsg2.cgi
[rrd-users] Re: strange numbers w/ counter
On Mon, Jul 14, 2003 at 12:14:13PM -0400, Greg MacLellan wrote: 07/14/2003 11:42 AM - CMD: /var/mwt/rrdtool/bin/rrdtool update /var/mwt/htdocs/cacti/rra/in1cnt_9.rrd --template in1cnt N:532 07/14/2003 11:43 AM - CMD: /var/mwt/rrdtool/bin/rrdtool update /var/mwt/htdocs/cacti/rra/in1cnt_9.rrd --template in1cnt N:541 difference in time: few seconds (60 or so, not very accurate due to N) difference in value: 9 1058197320: 1.83e-01 value in the range of 0.18 per second. 9/60 == .15 -- correct range when compared to 0.18 alike values. MAX and MIN both have the same output (why is that?) min(x) == avg(x) == max(x) It only matters if you have more than one sample: min(x,y) = avg(x,y) = max(x,y) min(x,y,z) == avg(x,y,z) == max(x,y,z) and so on. This will show up in the other RRAs. /var/mwt/rrdtool/bin/rrdtool create \ /var/mwt/htdocs/cacti/rra/in1cnt_9.rrd \ --step 60 \ DS:in1cnt:COUNTER:120:0:1000 \ COUNTER: range = diff(value)/diff(time) see the docs, the faq, the tutorial and the mail archives. RRA:AVERAGE:0.5:1:1440 \ RRA:AVERAGE:0.5:10:2016 \ RRA:AVERAGE:0.5:60:1440 \ RRA:MIN:0.5:1:1440 \ RRA:MIN:0.5:10:2016 \ RRA:MIN:0.5:60:1440 \ RRA:MAX:0.5:1:1440 \ RRA:MAX:0.5:10:2016 \ RRA:MAX:0.5:60:1440 \ the RRAs with only 1 sample per range will not differ between min,max and avg. The other RRAs will differ. Your setup does however make it easy to use the same grapher script for all of min, avg and max. HTH Alex -- Received on my linux server: Increase the speed of your PC in minutes! Stop windows from crashing, improve internet security and optimize your computers performance with just a few easy mouse clicks! -- Unsubscribe mailto:[EMAIL PROTECTED] Helpmailto:[EMAIL PROTECTED] Archive http://www.ee.ethz.ch/~slist/rrd-users WebAdminhttp://www.ee.ethz.ch/~slist/lsg2.cgi
[rrd-users] Re: strange numbers w/ counter
Alex van den Bogaerdt wrote: difference in time: few seconds (60 or so, not very accurate due to N) difference in value: 9 value in the range of 0.18 per second. Like I said, this was probably my fault. I was thinking about it as per minute instead of per second. I'm used to dealing with rrdtool with 5 minute intervals, I guess I had a brainfart trying to think of it in terms of 1 minute. min(x) == avg(x) == max(x) It only matters if you have more than one sample: This makes sense, too. I just got confused when I got the same output, but it's exactly as you say, the reason that's there is to be able to use the same scripts no matter what interval or consolidation function. Probably a bad day for me to be programming... :p Thanks for the help ttyl, greg (btw, sorry about duplicate posts.. mozilla told me it couldn't send, and apparently sent it anyways..) -- Unsubscribe mailto:[EMAIL PROTECTED] Helpmailto:[EMAIL PROTECTED] Archive http://www.ee.ethz.ch/~slist/rrd-users WebAdminhttp://www.ee.ethz.ch/~slist/lsg2.cgi