[rrd-users] Re: Help

2003-06-11 Thread Markus Mayer
On Wed, Jun 11, 2003 at 10:48:57AM -0400, Dave Parrott wrote:
> Any Ideas or links where I can find the information?
> 
> > gcc -c -I../src -I../gd1.3  -xO3 -xdepend [...]

You are using Sun Workshop/Forte compiler-flags with GCC. GCC doesn't
understand -xO3 (it's just -O3) and -xdepend (I don't know of any GCC
equivalent here).

I guess this happens automatically compiling RRD under Solaris (I've never
done that myself, but I know it from compiling other Perl modules). So you
have basically 2 choices if you want to compile RRD yourself:

1) Write a wrapper script for gcc (called 'mycc' or some such) that catches
all Sun compiler flags and converts them to GCC flags (-xO3 -> -O3, -KPIC ->
-fPIC, etc.) and then calls GCC. Of course the makefile must then call
'mycc' as C compiler.

2) Or you download a demo-version of Sun's compiler from their web-site for
free. It runs for 30 or 60 days (can't remember).

Hope that helps.

Markus

--
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] First data set missing

2003-05-27 Thread Markus Mayer
Hi,

I'm new to RRDTool, so please bear with me.

While I was trying to get my first RRD graph up and working I noticed that
the first value written to an RRD is ignored, as is the last (using data
type GAUGE).

This is my RRD:
  RRDs::create($rrdb,
 '--start', 'now - 1year',
 '--step', 300,
 'DS:myval:GAUGE:600:-100:100',
 "RRA:AVERAGE:0.5:1:600",
 "RRA:AVERAGE:0.5:6:700",
 "RRA:AVERAGE:0.5:24:775",
 "RRA:AVERAGE:0.5:288:797");

I'm adding these values
  1053988500:3500
  1053988800:1000
  1053989100:-800
  1053989400:-1800
  1054059000:-7000

When I'm dumping or fetching data from the RRD, I the first (3500) and last
(-7000) value are missing:

1053988500: nan
1053988800: 1.00e+03
1053989100: -8.00e+02
1053989400: -1.80e+03

How can I change that?

This is basically the same problem that I found in the archives, posted
almost 2 years ago: http://www.ee.ethz.ch/~slist/rrd-users/msg03490.html

Unfortunately there was never a reply to this post (or at least it's not in
the archives).

My RRD version is 1.0.42 on a RedHat 7.3 machine.

Thanks for your help.

Best regards,
Markus

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