[rrd-users] Re: Cryptic RRDTool error?

2001-07-06 Thread Alex van den Bogaerdt

James Mancini wrote:

 When I try to use the RRDs::Graph function, the error I get is cryptic and I
 can't find it in the documentation.I'm wondering if the RRD files got
 corrupted somehow.

If feasable, dump the database to ascii format and check.  The structure
of an RRD file is quite simple.  It should not be too hard to check this.

 I've already tried deleting them and they're either getting re-corrupted, or
 I don't understand what's going on -- Some of the other .rrd's created by
 the same process are fine, while several (maybe .1%) of them give me this
 error. The RRD in question has very little data in it, but usually RRDTool
 just returns a NaN if I ask for something that isn't there, right?

This is not correct.  If RRDtool gives you NaN values, it is simply
returning data that *is* there.  The data just is NaN.
Of course somebody will correct me if I'm wrong on this.

 The error is:
   RRD ERROR: fetching cdp from rra

I'm not entirely sure but it seems that you are asking for an entry
that is not in any RRA.  If you have created the dump, you can easely
check this; all available intervals are shown.

 The @graphOpts variables are:
  [snip]
   -s -2000m

Is this perhaps a RRD that has no RRA which stores upto 2000 minutes ?
Or maybe the 'm' is mistaken to mean months? (just try it by specifying
'min' in stead of 'm').

HTH
-- 
   __
 / [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] Help needed on rrdtool create and rrdtool update

2001-07-06 Thread Chang-Ping Hsiao
Content-Type: text/plain;
charset=iso-8859-1
Content-Transfer-Encoding: 8bit

Hi!  Dear all:
 
    I am debugging a little program I am writing for data not showing in
the RRDs after update.  Could anyone help?  I can't seem to find where the
problem is.  Did I make some mistakes in rrdtool create, rrdtool
update, or rrdtool fetch?
 
    Thanks in advance.
 
/usr/local/rrdtool-1.0.28/bin/rrdtool create
Flipper_Drops/apserv5.lax.netzero.net-nzApp1.rrd \
--start 9 \
--step 3600 \
DS:Flipper_Drops:GAUGE:3600:0:U \
RRA:AVERAGE:0.5:1:3600

/usr/local/rrdtool-1.0.28/bin/rrdtool update
Flipper_Drops/apserv5.lax.netzero.net-nzApp1.rrd   \
994176000:3 994183200:1 994190400:1 994194000:4 994197600:4 994201200:5
994204800:4 994212000:8 \
994215600:1 994219200:1 994255200:1 994258800:2 994262400:4 994266000:2
994269600:3 994273200:2 \
994276800:2 994284000:4 994287600:3 994291200:6 994294800:1 994298400:1
994302000:1 994309200:1 \
994341600:2 994352400:4 994356000:2 994359600:1 994363200:5 994374000:3
994377600:3

/usr/local/rrdtool-1.0.28/bin/rrdtool fetch
Flipper_Drops/apserv5.lax.netzero.net-nzApp1.rrd AVERAGE --start -3d --end
now
    Flipper_Drops
 
 994118400: NaN
 994122000: NaN
 994125600: NaN
 994129200: NaN
 994132800: NaN
 994136400: NaN
 99414: NaN
 994143600: NaN
 994147200: NaN
 994150800: NaN
 994154400: NaN
 994158000: NaN
 994161600: NaN
 994165200: NaN
 994168800: NaN
 994172400: NaN
missing- 994176000: NaN
 994179600: NaN
missing-  994183200: NaN
 994186800: NaN
missing- 994190400: NaN
 994194000: 4.00e+00
 994197600: 4.00e+00
 994201200: 5.00e+00
 994204800: 4.00e+00
 994208400: NaN
missing-  994212000: NaN
 994215600: 1.00e+00
 994219200: 1.00e+00
 994222800: NaN
 994226400: NaN
 99423: NaN
 994233600: NaN
 994237200: NaN
 994240800: NaN
 994244400: NaN
 994248000: NaN
 994251600: NaN
missing-  994255200: NaN
 994258800: 2.00e+00
 994262400: 4.00e+00
 994266000: 2.00e+00
 994269600: 3.00e+00
 994273200: 2.00e+00
 994276800: 2.00e+00
 994280400: NaN
missing-  994284000: NaN
 994287600: 3.00e+00
 994291200: 6.00e+00
 994294800: 1.00e+00
 994298400: 1.00e+00
 994302000: 1.00e+00
 994305600: NaN
missing-  994309200: NaN
 994312800: NaN
 994316400: NaN
 99432: NaN
 994323600: NaN
 994327200: NaN
 994330800: NaN
 994334400: NaN
 994338000: NaN
missing-  994341600: NaN
 994345200: NaN
 994348800: NaN
missing-  994352400: NaN
 994356000: 2.00e+00
 994359600: 1.00e+00
 994363200: 5.00e+00
 994366800: NaN
 994370400: NaN
missing-  994374000: NaN
 994377600: 3.00e+00
 994381200: NaN
 

Chang-Ping Hsiao




-- Attached file removed by Listar and put at URL below --
-- Type: application/x-pkcs7-signature
-- Size: 2k (2421 bytes)
-- URL : http://www.ee.ethz.ch/~slist/pantomime/27-smime.p7s


--
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: Help needed on rrdtool create and rrdtool update

2001-07-06 Thread Chris Snell


I took a quick glance at your rrdupdate and it looks like you are 
occasionally updating at an interval different from your --step.

the RRDs after update.  Could anyone help?  I can't seem to find where the
problem is.  Did I make some mistakes in rrdtool create, rrdtool
update, or rrdtool fetch?


--
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] Similar function for WithPeak[] in RRDTool

2001-07-06 Thread Stefan Skotte

Hi,

I was wondering if there's a similar function for MRTG's WithPeak[]
function in RRDTool ?

Problem:

For example 40 % cpu usage on the daily graph gets divided each time it's
put into the next graph (weekly, monthly, yearly), and in the end the value
gets very little. I dont want RRDTool to average my graphs, how can this be
archieved ?

Regards,
Stefan Skotte



--
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: Similar function for WithPeak[] in RRDTool

2001-07-06 Thread Paul Pot

Stefan,

This can be done by adding RRA's of type MAX to the rrd database. In the graphs
you then can point to these 'max' RRA's instead of the 'average' RRA's

hth
paul
*speaking for himself



Hi,

I was wondering if there's a similar function for MRTG's WithPeak[]
function in RRDTool ?

Problem:

For example 40 % cpu usage on the daily graph gets divided each time it's
put into the next graph (weekly, monthly, yearly), and in the end the value
gets very little. I dont want RRDTool to average my graphs, how can this be
archieved ?

Regards,
Stefan Skotte






--
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: Help needed on rrdtool create and rrdtool update

2001-07-06 Thread Serge Maandag

Hmm, what I do see is that you have a heartbeat of 3600 secs. Your
updates (at least the first two ones, didn't check the other ones) on
the other hand are made with a 7200 sec interval. This is well over the
heartbeat threshold, so rrdtool will take the value for a NaN.

Read up on the heartbeat and the step @
http://people.ee.ethz.ch/~oetiker/webtools/rrdtool/manual/rrdcreate.html

Serge.


/usr/local/rrdtool-1.0.28/bin/rrdtool create
--
--step 3600 \
DS:Flipper_Drops:GAUGE:3600:0:U \
RRA:AVERAGE:0.5:1:3600
--

/usr/local/rrdtool-1.0.28/bin/rrdtool update
--
994176000:3 994183200:1 994190400:1 994194000:4 994197600:4 994201200:5
994204800:4 994212000:8 \
--

/usr/local/rrdtool-1.0.28/bin/rrdtool fetch
--
missing- 994176000: NaN
 994179600: NaN
missing-  994183200: NaN
--

--
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: Similar function for WithPeak[] in RRDTool

2001-07-06 Thread Serge Maandag

Either by making AVERAGE RRA's that take up many points, so they too
average over 5 min's just like the 'daygraph'. Something like:

RRA:AVERAGE:0.5:1:288   # takes  288x5min = 24 hr
RRA:AVERAGE:0.5:1:2016  # takes 2016x5min = 1  week

(haven't tested this though)

Another option is to take the max values, assuming your data isn't very
peeky.

Serge.

-Original Message-
From: Stefan Skotte [mailto:[EMAIL PROTECTED]
Sent: vrijdag 6 juli 2001 7:54
To: rrd-users@list.ee.ethz.ch
Subject: [rrd-users] Similar function for WithPeak[] in RRDTool



Hi,

I was wondering if there's a similar function for MRTG's WithPeak[]
function in RRDTool ?

Problem:

For example 40 % cpu usage on the daily graph gets divided each time
it's
put into the next graph (weekly, monthly, yearly), and in the end the
value
gets very little. I dont want RRDTool to average my graphs, how can this
be
archieved ?

Regards,
Stefan Skotte



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


--
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: Help needed on rrdtool create and rrdtool update

2001-07-06 Thread Chang-Ping Hsiao

Exactly!

The data come in at an unknown timing.  That is why I had them updated at
random time and different interval.  I read about the comparison between
heartbeat and step, and didn't seem to find a way around it.  In the
document  written by Don Baarda, it says, 

.If the interval between samples is longer than heartbeat, the entire
interval is considered unknown...

Meanwhile, I am not clear about whether this includes the end points of the
interval if they are primary data points in an RRD.

Serge was right on the data I tried to updated, 7200 is greater than 3600,
but I would think RRDTool can be smart enough to determine 99417900 is
unknown while 994176000 is 3 and 994183200 is 1, instead of thinking
everything in the interval including the end points are unknown.

Due to the nature of the data, if RRDTool cannot help, maybe I will need to
artificially put a 0 for every missing heartbeat.  This isn't hard but is
definitely making my job more trivial.

Thanks, folks!

Chang-Ping

 994176000:3 994183200:1 994190400:1 994194000:4 994197600:4 994201200:5 \
 994204800:4 994212000:8 994215600:1 994219200:1 994255200:1 994258800:2 \
 994262400:4 994266000:2 994269600:3 994273200:2 \

 missing- 994176000: NaN
  994179600: NaN
 missing-  994183200: NaN
  994186800: NaN
 missing- 994190400: NaN
  994194000: 4.00e+00
  994197600: 4.00e+00
  994201200: 5.00e+00
  994204800: 4.00e+00
  994208400: NaN
 missing-  994212000: NaN
  994215600: 1.00e+00
  994219200: 1.00e+00
  994222800: NaN
  994226400: NaN
  99423: NaN
  994233600: NaN
  994237200: NaN
  994240800: NaN
  994244400: NaN
  994248000: NaN
  994251600: NaN
 missing-  994255200: NaN
  994258800: 2.00e+00

 Hmm, what I do see is that you have a heartbeat of 3600 secs. Your
 updates (at least the first two ones, didn't check the other ones) on
 the other hand are made with a 7200 sec interval. This is 
 well over the
 heartbeat threshold, so rrdtool will take the value for a NaN.

 -Original Message-
 From: Chris Snell [mailto:[EMAIL PROTECTED]
 Sent: Thursday, July 05, 2001 6:48 PM
 To: Chang-Ping Hsiao; Rrd-User (E-mail)
 Subject: Re: [rrd-users] Help needed on rrdtool create and rrdtool
 update
 
 
 
 I took a quick glance at your rrdupdate and it looks like you are 
 occasionally updating at an interval different from your --step.
 
 the RRDs after update.  Could anyone help?  I can't seem to 
 find where the
 problem is.  Did I make some mistakes in rrdtool create, rrdtool
 update, or rrdtool fetch?
 

__ 
NetZero Platinum
No Banner Ads and Unlimited Access
Sign Up Today - Only $9.95 per month!
http://www.netzero.net

--
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: Help needed on rrdtool create and rrdtool upd ate

2001-07-06 Thread Chang-Ping Hsiao

  Meanwhile, I am not clear about whether this includes the 
 end points of the
  interval if they are primary data points in an RRD.

 There are no primary data points in an RRD, only intervals.  

Well, according to the document of RRD CREATE, there really is
something called primary data point as in the paragraph

When data is entered into an RRD, it is first fit into time slots of the
length defined with the -s option becoming a primary data point.

although I still don't understand what it is.  :-)

 The interval
 labeled as 99417600 (if heartbeat is 3600) is actually the time period
 from 99417600-99421199.  Any data that comes in during that 
 time is considered as representing the time from the last sample to the
time of 
 the sample.
 If there is an interval of heartbeat seconds that does not 
 contain at least two samples, that interval is treated as NaN (unknown).

Why should there be two data in an interval?  If The samples only
present once an hour, there will be only one datum in 3600 seconds.

  Serge was right on the data I tried to updated, 7200 is 
 greater than 3600,
  but I would think RRDTool can be smart enough to determine 
 99417900 is
  unknown while 994176000 is 3 and 994183200 is 1, instead of thinking
  everything in the interval including the end points are unknown.
  
 Nope.  RRDTool is smarter than that, and it thinks that it 
 doesn't have data for an interval if it doesn't have more than one sample
in 
 the interval.

This is not smart to me.  Why can it not just take what it's fed
with?

 Why not use a small step and a large heartbeat?  The only 
 thing the heartbeat controls is how much time can elapse between samples
without 
 declaring the entire period unknown.  Literally, heartbeat should
represent 
 your MAXIMUM acceptable time between samples, possibly plus some margin.

The thing is, the MAXIMUM is unknown!!  Even if I make the heartbeat
hugely big, the timestamps that have no data would come up as something
inaccurate with the smaller step.

Chang-Ping

__ 
NetZero Platinum
No Banner Ads and Unlimited Access
Sign Up Today - Only $9.95 per month!
http://www.netzero.net

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