Re: [rrd-users] getting MAX,

This is a discussion on Re: [rrd-users] getting MAX, within the RRD Users forums, part of the Networking and Network Related category; Is that for inspiration on 1. is there another way to do this or 2. how do I do this ...


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 Re: [rrd-users] getting MAX,

Is that for inspiration on

1. is there another way to do this

or

2. how do I do this with a c function?

I assume #2 :-)

Thanks


> -----Original Message-----
> From: Tobias Oetiker [mailto:tobi@oetiker.ch]
> Sent: Wednesday, February 13, 2008 4:17 AM
> To: Jack Tavares
> Cc: rrd-users@lists.oetiker.ch
> Subject: Re: [rrd-users] getting MAX, LAST VDEFs without
> generating graph from C library
>
> Hi Jack,
>
> check out rrd_tool.c for inspiration
>
> cheers
> tobi
>
> Today Jack Tavares wrote:
>
> > Hello all
> >
> > I have some existing rrdfile with some data in them.
> >
> > I was reading about the VDEF capabilities of the rrdgraph
> > command.
> >
> > I am using the c library functions to manipulate the rrd files.
> >
> > I want the MAX and LAST from a graph, but I don't want the graph.
> >
> > At the command line I would do:
> >
> > 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"
> >
> > This prints to stdout.
> >
> > If I am calling rrd_graph() C function, how do I get this data?
> >
> >
> > Is there a better way to do this? I m very open to

> suggestions, but I
> > have to stick with the C library calls.
> >
> > Ok, one more question:
> > I dont see any API docs for theC library on the web site.

> Are there any?
> >
> > 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).
> >
> >
> >

>
> --
> Tobi Oetiker, OETIKER+PARTNER AG, Aarweg 15 CH-4600 Olten
> http://it.oetiker.ch tobi@oetiker.ch ++41 62 213 9902
>


_______________________________________________
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:51 PM.


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