[rrd-users] Calculating rate of change from gauge

This is a discussion on [rrd-users] Calculating rate of change from gauge within the RRD Users forums, part of the Networking and Network Related category; Hi, I am graphing barometric pressure, with the graph showing a two day period. I would like use gprint to ...


Go Back   Usenet Forums > Networking and Network Related > RRD Users

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 04-17-2008
jrshenk
 
Posts: n/a
Default [rrd-users] Calculating rate of change from gauge


Hi,

I am graphing barometric pressure, with the graph showing a two day period.
I would like use gprint to add the rate of change over the last hour to the
graph. I would like to take the value from 1 hour ago and subtract the LAST
value. The trouble I am having is getting the value from 1 hour ago. Below
is what I am trying to do:

VDEF:last=pressure,LAST GPRINT:last:"Current=%4.2lf%s" \
CDEF:old=pressure,LAST-1h
VDEF:ROC=old,LAST,- GPRINT:ROC:"Change=%4.2lf%s" \

But I am unsure how to get the value from 1 hour ago. which is what I was
hoping "CDEF:old=pressure,LAST-1h" would accomplish.
Thanks in advance for any help,

Jeff


--
View this message in context: http://www.nabble.com/Calculating-ra...p16693297.html
Sent from the RRDTool - User mailing list archive at Nabble.com.

_______________________________________________
rrd-users mailing list
rrd-users@lists.oetiker.ch
https://lists.oetiker.ch/cgi-bin/listinfo/rrd-users
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 08:03 PM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0