This is a discussion on [rrd-users] getting MAX, within the RRD Users forums, part of the Networking and Network Related category; This is a multi-part message in MIME format. --===============1478739465== Content-class: urn:content-classes:message Content-Type: multipart/alternative; ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
This is a multi-part message in MIME format.
--===============1478739465== Content-class: urn:content-classes:message Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01C86E32.1FCD3CB7" This is a multi-part message in MIME format. ------_=_NextPart_001_01C86E32.1FCD3CB7 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Hello all =20 I have some existing rrdfile with some data in them. =20 I was reading about the VDEF capabilities of the rrdgraph command. =20 I am using the c library functions to manipulate the rrd files. =20 I want the MAX and LAST from a graph, but I don't want the graph. =20 At the command line I would do: =20 rrdtool graph xy.png -aPNG DEF:curclientconns=3D/var/rrd/connections:curclientconns:AVERAGE VDEF:connsmax=3Dcurclientconns,MAXIMUM = VDEF:connslast=3Dcurclientconns,LAST PRINT:connslast:"last=3D%12.0lf" PRINT:connsmax:"max=3D%12.0lf" =20 This prints to stdout. =20 If I am calling rrd_graph() C function, how do I get this data?=20 =20 =20 Is there a better way to do this? I m very open to suggestions, but I have to stick with the C library calls. =20 Ok, one more question: I dont see any API docs for theC library on the web site. Are there any? =20 Thanks again -- Jack Tavares Reminder: I am at GMT+2, 10 hours AHEAD of Seattle. My workweek is Sunday-Thursday. Email sent to me Thursday afternoon (PST) may not be viewed until Sunday morning (GMT+2). =20 =20 ------_=_NextPart_001_01C86E32.1FCD3CB7 Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <HTML><HEAD> <META http-equiv=3DContent-Type content=3D"text/html; = charset=3Dus-ascii"> <META content=3D"MSHTML 6.00.3790.4134" name=3DGENERATOR></HEAD> <BODY> <DIV><SPAN class=3D820021515-12022008><FONT face=3DArial size=3D2>Hello=20 all</FONT></SPAN></DIV> <DIV><SPAN class=3D820021515-12022008><FONT face=3DArial=20 size=3D2></FONT></SPAN> </DIV> <DIV><SPAN class=3D820021515-12022008><FONT face=3DArial size=3D2>I have = some existing=20 rrdfile with some data in them.</FONT></SPAN></DIV> <DIV><SPAN class=3D820021515-12022008><FONT face=3DArial=20 size=3D2></FONT></SPAN> </DIV> <DIV><SPAN class=3D820021515-12022008><FONT face=3DArial size=3D2>I was = reading =20 about the VDEF capabilities of the rrdgraph</FONT></SPAN></DIV> <DIV><SPAN class=3D820021515-12022008><FONT face=3DArial=20 size=3D2>command.</FONT></SPAN></DIV> <DIV><SPAN class=3D820021515-12022008><FONT face=3DArial=20 size=3D2></FONT></SPAN> </DIV> <DIV><SPAN class=3D820021515-12022008><FONT face=3DArial size=3D2>I am = using the c=20 library functions to manipulate the rrd files.</FONT></SPAN></DIV> <DIV><SPAN class=3D820021515-12022008><FONT face=3DArial=20 size=3D2></FONT></SPAN> </DIV> <DIV><SPAN class=3D820021515-12022008><FONT face=3DArial size=3D2>I want = the MAX and=20 LAST from a graph, but I don't want the graph.</FONT></SPAN></DIV> <DIV><SPAN class=3D820021515-12022008><FONT face=3DArial=20 size=3D2></FONT></SPAN> </DIV> <DIV><SPAN class=3D820021515-12022008><FONT face=3DArial size=3D2>At the = command line=20 I would do:</FONT></SPAN></DIV> <DIV><SPAN class=3D820021515-12022008><FONT face=3DArial=20 size=3D2></FONT></SPAN> </DIV> <DIV><SPAN class=3D820021515-12022008></SPAN><SPAN = class=3D820021515-12022008><FONT=20 face=3DArial size=3D2>rrdtool graph xy.png -aPNG=20 DEF:curclientconns=3D/var/rrd/connections:curclientconns:AVERAGE=20 VDEF:connsmax=3Dcurclientconns,MAXIMUM = VDEF:connslast=3Dcurclientconns,LAST=20 PRINT:connslast:"last=3D%12.0lf" = PRINT:connsmax:"max=3D%12.0lf"</FONT></SPAN></DIV> <DIV><SPAN class=3D820021515-12022008><FONT face=3DArial=20 size=3D2></FONT></SPAN> </DIV> <DIV><SPAN class=3D820021515-12022008><FONT face=3DArial size=3D2>This = prints to=20 stdout.</FONT></SPAN></DIV> <DIV><SPAN class=3D820021515-12022008><FONT face=3DArial=20 size=3D2></FONT></SPAN> </DIV> <DIV><SPAN class=3D820021515-12022008><FONT face=3DArial size=3D2>If I = am calling=20 rrd_graph() C function, how do I get this data? </FONT></SPAN></DIV> <DIV><SPAN class=3D820021515-12022008><FONT face=3DArial=20 size=3D2></FONT></SPAN> </DIV> <DIV><SPAN class=3D820021515-12022008><FONT face=3DArial=20 size=3D2></FONT></SPAN> </DIV> <DIV><SPAN class=3D820021515-12022008><FONT face=3DArial size=3D2>Is = there a better=20 way to do this? I m very open to suggestions, but I have to stick with=20 the C library calls.</FONT></SPAN></DIV> <DIV><SPAN class=3D820021515-12022008><FONT face=3DArial=20 size=3D2></FONT></SPAN> </DIV> <DIV><SPAN class=3D820021515-12022008><FONT face=3DArial size=3D2>Ok, = one more=20 question:</FONT></SPAN></DIV> <DIV><SPAN class=3D820021515-12022008><FONT face=3DArial size=3D2>I dont = see any API=20 docs for theC library on the web site. Are there = any?</FONT></SPAN></DIV> <DIV><SPAN class=3D820021515-12022008><FONT face=3DArial=20 size=3D2></FONT></SPAN> </DIV> <DIV><SPAN class=3D820021515-12022008><FONT face=3DArial size=3D2>Thanks = again</DIV> <DIV><BR></DIV></FONT></SPAN> <DIV><FONT face=3DArial><FONT size=3D2><SPAN=20 class=3D820021515-12022008></SPAN></FONT></FONT></DIV> <DIV align=3Dleft> <DIV dir=3Dltr align=3Dleft><FONT face=3DArial size=3D2>--</FONT></DIV> <DIV dir=3Dltr align=3Dleft><FONT face=3DArial size=3D2>Jack = Tavares</FONT></DIV> <DIV dir=3Dltr align=3Dleft><FONT face=3DArial size=3D2>Reminder: I am = at GMT+2, 10=20 hours AHEAD of Seattle.</FONT></DIV> <DIV dir=3Dltr align=3Dleft><FONT face=3DArial size=3D2>My workweek is=20 Sunday-Thursday.</FONT></DIV> <DIV dir=3Dltr align=3Dleft><FONT face=3DArial size=3D2>Email sent to me = Thursday=20 afternoon (PST) may not be viewed until Sunday morning=20 (GMT+2).</FONT></DIV></DIV> <DIV align=3Dleft><FONT face=3DArial size=3D2></FONT> </DIV> <DIV> </DIV></BODY></HTML> ------_=_NextPart_001_01C86E32.1FCD3CB7-- --===============1478739465== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ rrd-users mailing list rrd-users@lists.oetiker.ch https://lists.oetiker.ch/cgi-bin/listinfo/rrd-users --===============1478739465==-- |