[rrd-users] getting MAX,

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; ...


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

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-13-2008
Jack Tavares
 
Posts: n/a
Default [rrd-users] getting MAX,

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>&nbsp;</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>&nbsp;</DIV>
<DIV><SPAN class=3D820021515-12022008><FONT face=3DArial size=3D2>I was =
reading&nbsp;=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>&nbsp;</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>&nbsp;</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>&nbsp;</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>&nbsp;</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>&nbsp;</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>&nbsp;</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>&nbsp;</DIV>
<DIV><SPAN class=3D820021515-12022008><FONT face=3DArial=20
size=3D2></FONT></SPAN>&nbsp;</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&nbsp;C library calls.</FONT></SPAN></DIV>
<DIV><SPAN class=3D820021515-12022008><FONT face=3DArial=20
size=3D2></FONT></SPAN>&nbsp;</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>&nbsp;</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>&nbsp;</DIV>
<DIV>&nbsp;</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==--

Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
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

BB 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 10:48 AM.


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