[rrd-users] ANNOUNCE: dsreport 1.22

2001-03-15 Thread steve rader

A new dsreport can be found at [1].  This version correctly
reports NaN values (which were previously reported as being
zero.)  

(My thanks to Mark Mills <[EMAIL PROTECTED]> for pointing
out my silly perl coding error that caused the problem.)

steve 
- - - 
systems & network guy
high energy physics
university of wisconsin

 [1] ftp://nrg.hep.wisc.edu/pub/src/misc/dsreport


--
Unsubscribe mailto:[EMAIL PROTECTED]
Helpmailto:[EMAIL PROTECTED]
Archive http://www.ee.ethz.ch/~slist/rrd-users
WebAdminhttp://www.ee.ethz.ch/~slist/lsg2.cgi


[rrd-users] Re: Accessing a rrd-database using C?

2001-03-15 Thread Andreas Maus

Alex van den Bogaerdt wrote:
> 
> Andreas Maus wrote:
> 
> > But if I try to compile the program gcc says:
> > [EMAIL PROTECTED]:~/code/c/rrd:gcc -o rrdtest -L/usr/local/rrdtool/lib
> > -I/usr/local/rrdtool/include rrdtest.c -lrrd
> >
> >  /usr/local/rrdtool/include/rrd.h:60: parse error before `*'
> >
> > Hmmm...Whats the problem?
> > Line 60 in rrd.h is:
> >
> > int  LockRRD(FILE *);
> 
> I think you should include stdio.h from your program.
Well thats it. I thought rrd.h did this. 
It seems that today is my brain-damage day... ;-)
Nevertheless many thanks. Now it works.

Andreas.

> 
> cheers,
> --
>__
>  / [EMAIL PROTECTED]  [EMAIL PROTECTED] \
> | work private |
> | My employer is capable of speaking therefore I speak only for myself |
> +--+
> | Technical questions sent directly to me will be nuked. Use the list. |
> +--+
> | http://faq.mrtg.org/ |
> | http://rrdtool.eu.org  --> tutorial  |
> +--+

-- 
@-@
|   email: [EMAIL PROTECTED]   |
|http://www.bigfoot.com/~andreas_maus/|
@-@

--
Unsubscribe mailto:[EMAIL PROTECTED]
Helpmailto:[EMAIL PROTECTED]
Archive http://www.ee.ethz.ch/~slist/rrd-users
WebAdminhttp://www.ee.ethz.ch/~slist/lsg2.cgi


[rrd-users] Re: Accessing a rrd-database using C?

2001-03-15 Thread Alex van den Bogaerdt

Andreas Maus wrote:

> But if I try to compile the program gcc says:
> [EMAIL PROTECTED]:~/code/c/rrd:gcc -o rrdtest -L/usr/local/rrdtool/lib
> -I/usr/local/rrdtool/include rrdtest.c -lrrd
> 
>  /usr/local/rrdtool/include/rrd.h:60: parse error before `*'
> 
> Hmmm...Whats the problem?
> Line 60 in rrd.h is:
> 
> int  LockRRD(FILE *);

I think you should include stdio.h from your program.

cheers,
-- 
   __
 / [EMAIL PROTECTED]  [EMAIL PROTECTED] \
| work private |
| My employer is capable of speaking therefore I speak only for myself |
+--+
| Technical questions sent directly to me will be nuked. Use the list. | 
+--+
| http://faq.mrtg.org/ |
| http://rrdtool.eu.org  --> tutorial  |
+--+

--
Unsubscribe mailto:[EMAIL PROTECTED]
Helpmailto:[EMAIL PROTECTED]
Archive http://www.ee.ethz.ch/~slist/rrd-users
WebAdminhttp://www.ee.ethz.ch/~slist/lsg2.cgi


[rrd-users] Storing integer values in RRD?

2001-03-15 Thread Anders Ringaby


Hello everybody!

Is there anyone who knows what kind of data
that can be stored in a RRD database? The
manual talks about numerical values, but I
suspect they always mean alphanumerical
characters. As an example, if you want to
store the value 99 in RRD, you store the
string "99".

But in this case, I would like to store integer
VALUES in a RRD database, as integers, and I
would like rrdtool to interpret them correctly,
and to show them in a graph correctly.

The reason for this is that I have wrote
a C program that reads unsigned 32 and
64 bit integers from a socket, and I would
like to store them in their original form
in RRD, without having to convert them
to strings first ( WITHOUT having to run
fprintf(..,"%d") or sprintf(..,"%d") ).

Can this be done? If so, how?

Regards

Anders Ringaby




--
Unsubscribe mailto:[EMAIL PROTECTED]
Helpmailto:[EMAIL PROTECTED]
Archive http://www.ee.ethz.ch/~slist/rrd-users
WebAdminhttp://www.ee.ethz.ch/~slist/lsg2.cgi


[rrd-users] Accessing a rrd-database using C?

2001-03-15 Thread Andreas Maus

Hi!

I want to update my RRDs using C.
So I guess, I have to includ rrd.h and link the program against the
librrd. Right?
But if I try to compile the program gcc says:
[EMAIL PROTECTED]:~/code/c/rrd:gcc -o rrdtest -L/usr/local/rrdtool/lib
-I/usr/local/rrdtool/include rrdtest.c -lrrd

 /usr/local/rrdtool/include/rrd.h:60: parse error before `*'

Hmmm...Whats the problem?
Line 60 in rrd.h is:

int  LockRRD(FILE *);

So this shouldn't be a problem...
The problem I try to compile (rrdtest.c) is:

#include "rrd.h"

int main (int argc,char** argv)
{
  int i=rrd_update(argc,argv);
  return 0;
}

(Yeah, I know it is silly, but its just a test.)

Is there anyone out there who can give me a hint how to get rid of this
problem?

Thanks in advance...Andreas.

-- 
@-@
|   email: [EMAIL PROTECTED]   |
|http://www.bigfoot.com/~andreas_maus/|
@-@

--
Unsubscribe mailto:[EMAIL PROTECTED]
Helpmailto:[EMAIL PROTECTED]
Archive http://www.ee.ethz.ch/~slist/rrd-users
WebAdminhttp://www.ee.ethz.ch/~slist/lsg2.cgi


[rrd-users] Re: Changing an RRA CF after creation of an RRA

2001-03-15 Thread Freddy Frouin

Thanks at all,

I've done it using ths following process:

rrdtool dump myrrd.rrd > myrrd.xml
vi myrrd.xml (modification by hand of the RRA type)
rm myrrd.rrd
rrdtool restore myrrd.xml myrrd.rrd

f.

On Thu, 15 Mar 2001 11:28:40 +0100
Freddy Frouin <[EMAIL PROTECTED]> wrote:

> 
> Hi,
> 
>   I would like to know if it is possible to alter the Consolidated
>   Function (CF) of an RRA after the Round Robin Database has been
>   created.
> 
>   For exemple: How can I migrate a RRA:LAST:0.5:1:2880 to
>   RRA:MAX:0.5:2880 ?
> 
> Thanks in advance,Freddy.
> 
> -- 
> Freddy Frouin
> 30, rue du Château des Rentiers
> 75013 Paris
> 
> Tél: 01 44 97 70 00
> Fax: 01 44 97 70 07
> 
> --
> Unsubscribe mailto:[EMAIL PROTECTED]
> Helpmailto:[EMAIL PROTECTED]
> Archive http://www.ee.ethz.ch/~slist/rrd-users
> WebAdminhttp://www.ee.ethz.ch/~slist/lsg2.cgi
> 
> 


-- 
Freddy Frouin
30, rue du Château des Rentiers
75013 Paris

Tél: 01 44 97 70 00
Fax: 01 44 97 70 07

--
Unsubscribe mailto:[EMAIL PROTECTED]
Helpmailto:[EMAIL PROTECTED]
Archive http://www.ee.ethz.ch/~slist/rrd-users
WebAdminhttp://www.ee.ethz.ch/~slist/lsg2.cgi


[rrd-users] update_RRD

2001-03-15 Thread Radek Machan

I want to use my C program (demon) to update several RRDs every
second. How to do it? I can't call external program rrdtool update. Is
there any library to use directly in C? I can't find any solution and
examples in manual.   

Radek


--
Unsubscribe mailto:[EMAIL PROTECTED]
Helpmailto:[EMAIL PROTECTED]
Archive http://www.ee.ethz.ch/~slist/rrd-users
WebAdminhttp://www.ee.ethz.ch/~slist/lsg2.cgi


[rrd-users] Re: Changing an RRA CF after creation of an RRA

2001-03-15 Thread Tobias Oetiker

Today Freddy Frouin wrote:

 |
 | of course I red it ! If I ask the question in this mailing list,
 | it is that I did not find it. Coul'd you precise me exactly where
 | in the tutorial or in the man pages I can find this information ?

try the rrdtune manual

tobi
 |
 | thanks,  Freddy.
 |
 | On Thu, 15 Mar 2001 11:36:26 +0100 (CET)
 | Alex van den Bogaerdt <[EMAIL PROTECTED]> wrote:
 |
 | > Freddy Frouin wrote:
 | >
 | > >  I would like to know if it is possible to alter the Consolidated
 | > >  Function (CF) of an RRA after the Round Robin Database has been
 | > >  created.
 | >
 | > Yes it is
 | >
 | > >  For exemple: How can I migrate a RRA:LAST:0.5:1:2880 to
 | > >  RRA:MAX:0.5:2880 ?
 | >
 | > You read that fine manual
 | >
 | > --
 | >__
 | >  / [EMAIL PROTECTED]  [EMAIL PROTECTED] \
 | > | work private |
 | > | My employer is capable of speaking therefore I speak only for myself |
 | > +--+
 | > | Technical questions sent directly to me will be nuked. Use the list. |
 | > +--+
 | > | http://faq.mrtg.org/ |
 | > | http://rrdtool.eu.org  --> tutorial  |
 | > +--+
 | >
 |
 |
 |

-- 
 ____   _
/_  __/_  / /  (_) Oetiker, Timelord & SysMgr @ EE-Dept ETH-Zurich
 / // _ \/ _ \/ / TEL: +41(0)1-6325286  FAX:...1517  ICQ: 10419518
/_/ \.__/_.__/_/ [EMAIL PROTECTED] http://ee-staff.ethz.ch/~oetiker


--
Unsubscribe mailto:[EMAIL PROTECTED]
Helpmailto:[EMAIL PROTECTED]
Archive http://www.ee.ethz.ch/~slist/rrd-users
WebAdminhttp://www.ee.ethz.ch/~slist/lsg2.cgi


[rrd-users] Re: Changing an RRA CF after creation of an RRA

2001-03-15 Thread Freddy Frouin

of course I red it ! If I ask the question in this mailing list,
it is that I did not find it. Coul'd you precise me exactly where
in the tutorial or in the man pages I can find this information ?

thanks, Freddy.

On Thu, 15 Mar 2001 11:36:26 +0100 (CET)
Alex van den Bogaerdt <[EMAIL PROTECTED]> wrote:

> Freddy Frouin wrote:
> 
> > I would like to know if it is possible to alter the Consolidated
> > Function (CF) of an RRA after the Round Robin Database has been
> > created.
> 
> Yes it is
> 
> > For exemple: How can I migrate a RRA:LAST:0.5:1:2880 to
> > RRA:MAX:0.5:2880 ?
> 
> You read that fine manual
> 
> -- 
>__
>  / [EMAIL PROTECTED]  [EMAIL PROTECTED] \
> | work private |
> | My employer is capable of speaking therefore I speak only for myself |
> +--+
> | Technical questions sent directly to me will be nuked. Use the list. | 
> +--+
> | http://faq.mrtg.org/ |
> | http://rrdtool.eu.org  --> tutorial  |
> +--+
> 


-- 
Freddy Frouin
30, rue du Château des Rentiers
75013 Paris

Tél: 01 44 97 70 00
Fax: 01 44 97 70 07

--
Unsubscribe mailto:[EMAIL PROTECTED]
Helpmailto:[EMAIL PROTECTED]
Archive http://www.ee.ethz.ch/~slist/rrd-users
WebAdminhttp://www.ee.ethz.ch/~slist/lsg2.cgi


[rrd-users] Re: using resolution on rrdtool fetch

2001-03-15 Thread Darren/Torin/Who Ever...

Alex van den Bogaerdt, in an immanent manifestation of deity, wrote:
>This will almost always result in a time series that is NOT
>in the RRA. Therefore the highest resolution RRA will be chosen
>which is not what you want.
>
>Make sure that
>a) both start and end time are a multiple of 1800
>b) both start and end time are within the RRA
>
>So: if time now is called "t", do end time == int(t/1800)*1800,
>start time == end time -1d, resolution == 1800.

Wow.  That's exactly what I needed.  It works..

Thanks,
  Darren
-- 
<[EMAIL PROTECTED]> <[EMAIL PROTECTED]><[EMAIL 
PROTECTED]>
Darren Stalder/2608 Second Ave, @282/Seattle, WA 98121-1212/USA/+1-206-ELF-LIPZ
@Make a little hot-tub in your soul.  @

--
Unsubscribe mailto:[EMAIL PROTECTED]
Helpmailto:[EMAIL PROTECTED]
Archive http://www.ee.ethz.ch/~slist/rrd-users
WebAdminhttp://www.ee.ethz.ch/~slist/lsg2.cgi


[rrd-users] Re: Changing an RRA CF after creation of an RRA

2001-03-15 Thread Alex van den Bogaerdt

Freddy Frouin wrote:

>   I would like to know if it is possible to alter the Consolidated
>   Function (CF) of an RRA after the Round Robin Database has been
>   created.

Yes it is

>   For exemple: How can I migrate a RRA:LAST:0.5:1:2880 to
>   RRA:MAX:0.5:2880 ?

You read that fine manual

-- 
   __
 / [EMAIL PROTECTED]  [EMAIL PROTECTED] \
| work private |
| My employer is capable of speaking therefore I speak only for myself |
+--+
| Technical questions sent directly to me will be nuked. Use the list. | 
+--+
| http://faq.mrtg.org/ |
| http://rrdtool.eu.org  --> tutorial  |
+--+

--
Unsubscribe mailto:[EMAIL PROTECTED]
Helpmailto:[EMAIL PROTECTED]
Archive http://www.ee.ethz.ch/~slist/rrd-users
WebAdminhttp://www.ee.ethz.ch/~slist/lsg2.cgi


[rrd-users] Changing an RRA CF after creation of an RRA

2001-03-15 Thread Freddy Frouin

Hi,

I would like to know if it is possible to alter the Consolidated
Function (CF) of an RRA after the Round Robin Database has been
created.

For exemple: How can I migrate a RRA:LAST:0.5:1:2880 to
RRA:MAX:0.5:2880 ?

Thanks in advance,  Freddy.

-- 
Freddy Frouin
30, rue du Château des Rentiers
75013 Paris

Tél: 01 44 97 70 00
Fax: 01 44 97 70 07

--
Unsubscribe mailto:[EMAIL PROTECTED]
Helpmailto:[EMAIL PROTECTED]
Archive http://www.ee.ethz.ch/~slist/rrd-users
WebAdminhttp://www.ee.ethz.ch/~slist/lsg2.cgi