RRDtool consolidation not going as expected


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers RRDtool consolidation not going as expected
# 1  
Old 04-15-2011
RRDtool consolidation not going as expected

Hello all,

I am new to RRDtool and have made a RRDtool database with one data-source. Information of this data-source is stored in four different RRA's with different intervals for different time spans.

Database create command:

Code:
rrdtool create /root/mde.rrd --step 300 \
DS:kwh1:COUNTER:600:U:U \
RRA:LAST:0.5:1:2016 \
RRA:LAST:0.5:3:2921 \
RRA:LAST:0.5:12:8765 \
RRA:LAST:0.5:288:1826

The first RRA stores the stores the new value minus the last value (as expected). The other RRA's store only the last result of the first RRA. It doesn't store the new value minus the last value of that RRA. Am i doing something wrong or isn't this possible?

Thanks in advance

ArtOfLosing

Last edited by ArtOfLosing; 04-15-2011 at 07:17 AM..
# 2  
Old 04-19-2011
Maybe i didn't explain it good enough so i added a table where you can see what i mean.

As you can see the 5 min interval works. but 15 min interval does not, it had the same value as the 5 min interval at that time. What i want it to be is the total of those 5 min intervals.

Is this possible? Or do i have to make a very big 5 min interval and leave the rest out?

Timestamp>5 Min Interval15 Min Interval15 Min i want
1302679200 >4.2929259482e+02  
1302679500>2.5069977985e+00  
1302679800>3.6908983814e+023.6908983814e+028.0088943076e+02
1302680100>8.0391143842e+03  
1302680400>4.4017006223e+03  
1302680700>4.7308772502e+024.7308772502e+021.2913902732e+04
1302681000>3.7983144383e+02  
1302681300>1.5559865037e+00  
1302681600>4.1231985070e+024.1231985070e+027.9370728103e+02
# 3  
Old 05-26-2011
Need to add more RRA's

You have only defined a LAST RRA so there is nothing to consolidate. . You need to add either an AVE or a MAX RRA . All the info is in the RRDTool tutorials available in multiple places in the web...
 
Login or Register to Ask a Question

Previous Thread | Next Thread

3 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Python-rrdtool try except rrdtool.error module object has no attribute error

I have this code that gives this error on Linux and will be grateful if you can help import rrdtool try: ret_asd = rrdtool.update(myfile.rrd,'N:%s:%s' %(metric1, metric2)); except rrdtool.error, e: print e When i run the above i get the below error except... (1 Reply)
Discussion started by: kaf3773
1 Replies

2. Shell Programming and Scripting

Apache Subnet consolidation script/routine help needed

I have a rather simple routine that I would like to fine tune. I am having scripters block if that exists. Trying to tally up that amount of subnets after I performed an awk and uniq from zipped apache logs. For instance, on a solaris 10 system: This does work gunzip -c access_log1.200834.gz |... (2 Replies)
Discussion started by: NYG71
2 Replies

3. UNIX for Dummies Questions & Answers

Code Consolidation

My code currently looks like this: #!/usr/bin/ksh clear while true do clear echo "Menu" echo " 1. WPPHA1" echo " 2. WPPHA2" echo " 3. WPPHA3" echo " 4. WPPHB1" echo " 5. WPPHB2" echo " 6. WPPHC0" echo " 7. WPPHD0" echo " 8. WPPHD1" echo " 9. WPPHD2" echo "10. WPPHD3" (1 Reply)
Discussion started by: misterpinkey
1 Replies
Login or Register to Ask a Question