[rrd-users] Can't load '.....RRDs.so' for module RRDs:

2001-09-21 Thread Chang-Ping Hsiao

Hi!  All:
 
May I seek some help from some of you who have been there and done that?
 
I compiled and installed RRDTool 1.0.33 on Linux (2.2.5-15) without any
problem until I try to use the shared RRDs.  The following is what I got,
but I am sure the file (RRDs.so) is there because I use make
site-perl-install and tried to copy the file manually.  Did I miss
something?
 
I have searched the web but didn't find hints to solve this problem.
Any help is appreciated.
 
Yours,
 
Chang-Ping Hsiao
 
Can't load
'/usr/local/ActivePerl-5.6/lib/site_perl/5.6.1/i686-linux-thread-multi/auto/
RRDs/RRDs.so' for module RRDs: libgcc_s.so.1: cannot open shared object
file: No such file or directory at
/usr/local/ActivePerl-5.6/lib/5.6.1/i686-linux-thread-multi/DynaLoader.pm
line 206.
 
-r-xr-xr-x   1 root root   789906 Sep 20 17:02
/usr/local/ActivePerl-5.6/lib/site_perl/5.6.1/i686-linux-thread-multi/auto/R
RDs/RRDs.so*



__ 
NetZero Platinum
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] 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 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


[rrd-users] Re: Question on rrdtool graph

2001-03-19 Thread Chang-Ping Hsiao

Alex:

  I am having a question on the rrdtool graph output for I don't know
how
  to select an RRA for the output.  I hope I can get some help from here,
and
  it is much appreciated.
 
 You don't select the correct RRA, let rrdtool do this for you.

I guess so, according to the man page (HTML page).

  I am having different RRAs for an RRD.  All RRAs are using CF
AVERAGE as
  you can see below.  In the document for rrdtool graph, in the DEF:
section,
  it says ... The DEF call automatically chooses an RRA which contains CF
  consolidated data in a resolution appropriate for the size of the graph
to
  be drawn.  Since I don't have enough data yet, I would have no way of
  telling where or not I can retrieve data in the range at my will.
 
 1st of all, an RRA must have the same CF properties.  In your case
 there's not much to choose from as you only have AVERAGE RRAs.
 Normally, you can fetch maximum values from the MAX RRA and average
 values from the AVERAGE RRA.  Which CF to use is selected by DEF.

Well, :-), this all-AVERAGE design is to the request from above,
not up to me.  Since they don't need MAX or MIN, there are only AVERAGE's.

 Then, the closest match is found on the time frame you selected.
 
  sub create_rrd {# create an RRD for a production box
  my $start = --start $time_s;
  my $step  = --step 3600;
 
 Step time == 3600 -- one hour per PDP (primary data point)

Intended.

  my $rra1  = RRA:AVERAGE:0.5:1:8784;   # daily
 
 One PDP per CDP (consolidated data point, row) in this RRA
 and 8784 rows.  This makes a total of 366 days, or: a year.

Exactly.  It's designed to be 366 days to cover leap years.

  my $rra2  = RRA:AVERAGE:0.5:3:2928;   # weekly
 
 Three PDPs per CDP, totalling 2928 rows.  This is thus 2928
 rows of 3 hours per row = the same amount of time as the
 previous RRA. (I don't think this one gets used often...)

Good point.  The request came with the ability to retrieve data for
graphing for daily, weekly, monthly, quarterly, and yearly (or annually)
pretty much like the graphs for stocks; without the data being saved in the
RRD and RRA, it would require the graphs to be generated predefined and
stored somewhere.  This doesn't fit the goal of saving disk space while
computation time is not a concern.

  my $rra3  = RRA:AVERAGE:0.5:6:1464;   # monthly
 Ditto
  my $rra4  = RRA:AVERAGE:0.5:12:732;   # quarterly
 Ditto
  my $rra5  = RRA:AVERAGE:0.5:24:366;   # yearly
 Ditto
 
 The purpose of having multiple RRAs is that you can store
 data for a longer time, with a lower resolution.  There's
 nothing agains having such a long daily RRA but it makes
 no sense to have the yearly RRA with the same amount of
 data.  It may speed up graphing a bit but I don't think
 this is noticeable.

For this point of view, I need to ask more if I may.  So if I want
to have lower resolution for a year's worth of data, without saving them
into RRA, how may I proceed and process?  I would love to learn how to save
space and time for having the same result.  :-)

 However, you can run rrdtool fetch with different resolution
 settings and see what consolidation does with your data.
 Do, for instance:
 rrdtool fetch --resolution 3600 --start '00:00' --end start+6h
 and 
 rrdtool fetch --resolution 10800 --start '00:00' --end start+6h
 
 on the same RRD so see the differences.

Thank you for this idea.  I never tried.  For some reason, the RRDs
I have don't pop up information on these queries.  Maybe something is not
right on them.  I'll check.

Chang-Ping Hsiao


__ 
NetZero - Defenders of the Free World
Get your FREE Internet Access and Email at
http://www.netzero.net/download/index.html

--
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] Question on rrdtool graph

2001-03-16 Thread Chang-Ping Hsiao

Hi!
 
I am having a question on the rrdtool graph output for I don't know how
to select an RRA for the output.  I hope I can get some help from here, and
it is much appreciated.
 
I am having different RRAs for an RRD.  All RRAs are using CF AVERAGE as
you can see below.  In the document for rrdtool graph, in the DEF: section,
it says ... The DEF call automatically chooses an RRA which contains CF
consolidated data in a resolution appropriate for the size of the graph to
be drawn.  Since I don't have enough data yet, I would have no way of
telling where or not I can retrieve data in the range at my will.
 
Could anybody give me some hints?  Thanks.  :-)
 
sub create_rrd {# create an RRD for a production box
my $start = --start $time_s;
my $step  = --step 3600;
# heartbeat has to be big enough to allow meaningful data
# i.e. step of 3600 needs approximately 7200 as the heartbreak
my $ds1   = DS:CPUidle:GAUGE:7200:0:100;
my $ds2   = DS:FreeMemory:GAUGE:7200:0:100;
my $ds3   = DS:Capacity:GAUGE:7200:0:100;
my $ds4   = DS:FreeSwapMemory:GAUGE:7200:0:100;
my $rra1  = RRA:AVERAGE:0.5:1:8784;   # daily
my $rra2  = RRA:AVERAGE:0.5:3:2928;   # weekly
my $rra3  = RRA:AVERAGE:0.5:6:1464;   # monthly
my $rra4  = RRA:AVERAGE:0.5:12:732;   # quarterly
my $rra5  = RRA:AVERAGE:0.5:24:366;   # yearly
system $rrdtool create $rrd $start $step $ds1 $ds2 $ds3 $ds4 $rra1
$rra2 $rra3 $rra4 $rra5;
}
 
sub graph_rrd { # create an image file
#   my $rrd = shift;
my $start= --start $time_s;
my $end  = --end $time_e;
my $filetype = -a PNG;
my $title= --title '$DATE $hostname';
my $upper= -u 100 -r;
my $def1 = DEF:CPUidle=$rrd:CPUidle:AVERAGE;
my $def2 = DEF:FreeMemory=$rrd:FreeMemory:AVERAGE;
my $def3 = DEF:Capacity=$rrd:Capacity:AVERAGE;
my $def4 = DEF:FreeSwapMemory=$rrd:FreeSwapMemory:AVERAGE;
my $data1= LINE2:CPUidle#FF:'CPU Idle (%)';
my $data2= LINE2:FreeMemory#00FF00:'Free Memory (%)';
my $data3= LINE2:Capacity#FF:'Capacity of /add_app (%)';
my $data4= LINE2:FreeSwapMemory#FF00FF:'Free Swap Memory (%)';
printf %25s.png  , $hostname;
system $rrdtool graph $graph_dir/$DATE3/$hostname.png $start $end
$filetype \
$title $upper $def1 $def2 $def3 $def4 $data1 $data2 $data3
$data4;
}

Chang-Ping Hsiao


__ 
NetZero - Defenders of the Free World
Get your FREE Internet Access and Email at
http://www.netzero.net/download/index.html

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