<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.3790.4134" name=GENERATOR></HEAD>
<BODY>
<DIV><SPAN class=820021515-12022008><FONT face=Arial size=2>Hello
all</FONT></SPAN></DIV>
<DIV><SPAN class=820021515-12022008><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=820021515-12022008><FONT face=Arial size=2>I have some existing
rrdfile with some data in them.</FONT></SPAN></DIV>
<DIV><SPAN class=820021515-12022008><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=820021515-12022008><FONT face=Arial size=2>I was reading
about the VDEF capabilities of the rrdgraph</FONT></SPAN></DIV>
<DIV><SPAN class=820021515-12022008><FONT face=Arial
size=2>command.</FONT></SPAN></DIV>
<DIV><SPAN class=820021515-12022008><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=820021515-12022008><FONT face=Arial size=2>I am using the c
library functions to manipulate the rrd files.</FONT></SPAN></DIV>
<DIV><SPAN class=820021515-12022008><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=820021515-12022008><FONT face=Arial size=2>I want the MAX and
LAST from a graph, but I don't want the graph.</FONT></SPAN></DIV>
<DIV><SPAN class=820021515-12022008><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=820021515-12022008><FONT face=Arial size=2>At the command line
I would do:</FONT></SPAN></DIV>
<DIV><SPAN class=820021515-12022008><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=820021515-12022008></SPAN><SPAN class=820021515-12022008><FONT
face=Arial size=2>rrdtool graph xy.png -aPNG
DEF:curclientconns=/var/rrd/connections:curclientconns:AVERAGE
VDEF:connsmax=curclientconns,MAXIMUM VDEF:connslast=curclientconns,LAST
PRINT:connslast:"last=%12.0lf" PRINT:connsmax:"max=%12.0lf"</FONT></SPAN></DIV>
<DIV><SPAN class=820021515-12022008><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=820021515-12022008><FONT face=Arial size=2>This prints to
stdout.</FONT></SPAN></DIV>
<DIV><SPAN class=820021515-12022008><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=820021515-12022008><FONT face=Arial size=2>If I am calling
rrd_graph() C function, how do I get this data? </FONT></SPAN></DIV>
<DIV><SPAN class=820021515-12022008><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=820021515-12022008><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=820021515-12022008><FONT face=Arial size=2>Is there a better
way to do this? I m very open to suggestions, but I have to stick with
the C library calls.</FONT></SPAN></DIV>
<DIV><SPAN class=820021515-12022008><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=820021515-12022008><FONT face=Arial size=2>Ok, one more
question:</FONT></SPAN></DIV>
<DIV><SPAN class=820021515-12022008><FONT face=Arial size=2>I dont see any API
docs for theC library on the web site. Are there any?</FONT></SPAN></DIV>
<DIV><SPAN class=820021515-12022008><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=820021515-12022008><FONT face=Arial size=2>Thanks again</DIV>
<DIV><BR></DIV></FONT></SPAN>
<DIV><FONT face=Arial><FONT size=2><SPAN
class=820021515-12022008></SPAN></FONT></FONT></DIV>
<DIV align=left>
<DIV dir=ltr align=left><FONT face=Arial size=2>--</FONT></DIV>
<DIV dir=ltr align=left><FONT face=Arial size=2>Jack Tavares</FONT></DIV>
<DIV dir=ltr align=left><FONT face=Arial size=2>Reminder: I am at GMT+2, 10
hours AHEAD of Seattle.</FONT></DIV>
<DIV dir=ltr align=left><FONT face=Arial size=2>My workweek is
Sunday-Thursday.</FONT></DIV>
<DIV dir=ltr align=left><FONT face=Arial size=2>Email sent to me Thursday
afternoon (PST) may not be viewed until Sunday morning
(GMT+2).</FONT></DIV></DIV>
<DIV align=left><FONT face=Arial size=2></FONT> </DIV>
<DIV> </DIV></BODY></HTML>