[rrd-users] Python errors when compiling rrdtool v.1.2.19

2007-04-04 Thread Roger Young
Hello, I am getting lots of undefined Python references (see below) when 
compiling 
rrdtool (v.1.2.19) from source. The configure script correctly identifies my 
python version (2.4) 
and locates the python include directory:

PYTHON = /usr/bin/python
PYTHON_EXEC_PREFIX = ${exec_prefix}
PYTHON_INCLUDES = -I/usr/include/python2.4
PYTHON_PLATFORM = linux2
PYTHON_PREFIX = ${prefix}
PYTHON_VERSION = 2.4

The undefined references are all resolved in the python include directory,
for example PyTuple_Size (see below) is found in:

/usr/include/python2.4/tupleobject.h:PyAPI_FUNC(int) PyTuple_Size(PyObject *);

I am running Linux kernel 2.6.18 (Slackware 11.0)

Can anyone suggest why I am getting these compile time errors??
And how to fix?

Thankyou,
Roger Young.



make[3]: Entering directory `/usr/local/src/rrdtool-1.2.19/bindings/python'
/bin/sh ../../libtool --tag=CC --mode=link gcc  -g -O2 -fno-strict-aliasing 
-Wall -std=gnu99 -pedantic -Wshadow -Wpointer-arith -Wcast-align 
-Wmissing-prototypes -Wmissing-declarations -Wnested-externs -Winline -W  -fPIC 
-DPIC   -o rrdtoolmodule.so  rrdtoolmodule.o ../../src/librrd.la 
gcc -g -O2 -fno-strict-aliasing -Wall -std=gnu99 -pedantic -Wshadow 
-Wpointer-arith -Wcast-align -Wmissing-prototypes -Wmissing-declarations 
-Wnested-externs -Winline -W -fPIC -DPIC -o .libs/rrdtoolmodule.so 
rrdtoolmodule.o  ../../src/.libs/librrd.so -lpng -lz -lm -Wl,--rpath 
-Wl,/usr/local/rrdtool-1.2.19/lib
rrdtoolmodule.o(.text+0x1d): In function `create_args':
/usr/local/src/rrdtool-1.2.19/bindings/python/rrdtoolmodule.c:59: undefined 
reference to `PyTuple_Size'
rrdtoolmodule.o(.text+0x2f):/usr/local/src/rrdtool-1.2.19/bindings/python/rrdtoolmodule.c:60:
 undefined reference to `PyMem_Malloc'
rrdtoolmodule.o(.text+0x4d):/usr/local/src/rrdtool-1.2.19/bindings/python/rrdtoolmodule.c:64:
 undefined reference to `PyString_Type'
rrdtoolmodule.o(.text+0x78):/usr/local/src/rrdtool-1.2.19/bindings/python/rrdtoolmodule.c:66:
 undefined reference to `PyType_IsSubtype'
rrdtoolmodule.o(.text+0xd6):/usr/local/src/rrdtool-1.2.19/bindings/python/rrdtoolmodule.c:69:
 undefined reference to `PyObject_Free'
rrdtoolmodule.o(.text+0xe7):/usr/local/src/rrdtool-1.2.19/bindings/python/rrdtoolmodule.c:70:
 undefined reference to `PyExc_TypeError'
rrdtoolmodule.o(.text+0xef):/usr/local/src/rrdtool-1.2.19/bindings/python/rrdtoolmodule.c:70:
 undefined reference to `PyErr_Format'

and many more

This message has been scanned for viruses and dangerous content by MailScanner, 
and is believed to be clean.

___
rrd-users mailing list
rrd-users@lists.oetiker.ch
https://lists.oetiker.ch/cgi-bin/listinfo/rrd-users


[rrd-users] This RRD was created on other architecture

2007-04-04 Thread Marcus . Kipp
Hi,

i´ve made an upgrade from opensuse 10.2-32Bit to a new
HW with opensuse 10.2-64Bit.

Since this i using rrdtool 1.0.50 but i gor these message:

2007-04-04 14:49:31: ERROR: Cannot tune logfile: This RRD was created on
other architecture
2007-04-04 14:49:31: ERROR: Cannot update
/usr/local/httpd/htdocs/dialin/vbr/user/user_nbgvbr1.rrd with
'1175690971:218:65533' This RRD was created on other architecture

How can i convert the old rrd-files in the new architecture ?

Thx

Marcus

___
rrd-users mailing list
rrd-users@lists.oetiker.ch
https://lists.oetiker.ch/cgi-bin/listinfo/rrd-users


Re: [rrd-users] This RRD was created on other architecture

2007-04-04 Thread Andreas Maus
On Wed, Apr 04, 2007 at 02:51:35PM +0200, [EMAIL PROTECTED] wrote:
 Hi,
 
 i?ve made an upgrade from opensuse 10.2-32Bit to a new
 HW with opensuse 10.2-64Bit.
 
 Since this i using rrdtool 1.0.50 but i gor these message:
 
 2007-04-04 14:49:31: ERROR: Cannot tune logfile: This RRD was created on
 other architecture
 2007-04-04 14:49:31: ERROR: Cannot update
 /usr/local/httpd/htdocs/dialin/vbr/user/user_nbgvbr1.rrd with
 '1175690971:218:65533' This RRD was created on other architecture
 
 How can i convert the old rrd-files in the new architecture ?
Hi.

 1) Dump your file on the 32bit architecture to an XML file
using rrdtool dump.
 2) Restore the database on the 64bit architecture from the
-previously dumped- XML file using rrdtool restore

HTH,

Andreas.

-- 
Dipl.-Ing. Andreas Maus science+computing ag
System Administration   Hagellocher Weg 73
mail: [EMAIL PROTECTED]   72070 Tuebingen, Germany
tel.: +49 7071 9457 456 www.science-computing.de


pgpcT0unvPGmn.pgp
Description: PGP signature
___
rrd-users mailing list
rrd-users@lists.oetiker.ch
https://lists.oetiker.ch/cgi-bin/listinfo/rrd-users


Re: [rrd-users] problems with rrd and check_traffic

2007-04-04 Thread Andreas Maus
On Wed, Apr 04, 2007 at 11:15:48AM -0300, Henrique Silveira Cadore wrote:
 Hi list.

   I dont know if its the proper forum to expose my problem, if not im sorry.

   I use a plugin for nagios called check_traffic.

   This plugin generates rrd database for monitoring traffic. Looking at the 
 script that generates the .rrd i found something like:

   rrdtool create FILE --start TIME DS:input:COUNTER:600:U:U 
 RRA:AVERAGE:0.5:1:240

   The graphic generated shows me the average each 5 minutes. shouldnt it be 
 every minute since im updating the database every minute?

   Why --step is omited?
   Im updating the database every minuto shouldnt 600 be 120?

   Thank you for any help. 
Hi.

I don't know why --step is omited, but if no value for --step is givven
it defaults to 300 seconds (see man rrdcreate). Also you should adjust 
the 600sec. heartbeat interval and increase the number of rows in the
RRA from 240.

But if you want to know _why_ check_traffic uses 5min interval instead
1minute ... well you have to ask the author.

HTH,

Andreas.

-- 
Dipl.-Ing. Andreas Maus science+computing ag
System Administration   Hagellocher Weg 73
mail: [EMAIL PROTECTED]   72070 Tuebingen, Germany
tel.: +49 7071 9457 456 www.science-computing.de


pgpgFzvJ9d0QR.pgp
Description: PGP signature
___
rrd-users mailing list
rrd-users@lists.oetiker.ch
https://lists.oetiker.ch/cgi-bin/listinfo/rrd-users


Re: [rrd-users] problems with rrd and check_traffic

2007-04-04 Thread Simon Hobson
Henrique Silveira Cadore wrote:

The graphic generated shows me the average each 5 minutes. shouldnt 
it be every minute since im updating the database every minute?

No, I suggest you try and understand what rrd is doing for you. 
Specifically, except under certain very specific circumstances you do 
NOT get out what you put in.


I does not matter how often you update, the rrd only contains a 
simgle data point for each step of time, in this case 5 minutes. No 
matter how frequently, or infrequently, you provide data, it is 
always normalised to these step sized sample periods. To give a 
very simple example, suppose you have a step size of 5 minutes (300s) 
and update every 2 minutes (120s), not ideal but it shows a couple of 
points. Further, lets assume you are able to provide the updates when 
the time (seconds since epoch) is an exact multiple of 120 seconds.

You need to be using a fixed pitch font for this :

Update   x   a   b   c   d   e   f
Store| | |

The first 2 samples (a  b) plus half of the third (c) will be used 
for the first stored interval, the other half of sample c plus the 
next 2 samples (d  e will be used for the next interval, and so on. 
If the data is at a constant rate of 1/second then your updates would 
go like this :

Update a : rate is 1, so 120 (1/s x 120s) is added to the temporary store.
Update b : rate is 1, so 120 (again 1/s x 120s) is added to the store.
Update c : rate is still 1, but this time only 60 (1/s x 60s) is 
added to the store to give a total of 300, this is divided by 300 to 
get 1/s which is entered into the appropriate slot in the rrd. The 
other 60 is then placed in the store having first removed the 300 
from the previous time slot.

If the rate is increasing, you might have the following :
update a : rate is 2/s, so add 240 (2/s * 120s)
update b : rate is 3/s, so add 360
update c : rate is 4/s. Add 240 (4/s * 60s) to get 840, divide by 300 
to get 2.8 which goes into the rrd, finally put the other 240 into 
the store.

Note that other than the internal accumulator used in the 
normalisation process, the values you feed it are never stored 
directly into the RRD.


That's what the rrd contains, but it doesn't have to be what if 
graphed. You could take that rrd and graph it with an interval of 10 
minutes/step, and assuming you ask for average, then each pair of 
samples will be averaged and plotted as one point. It is not even 
essential to have the graph as an integer multiple of the sample 
period, the program will apply a similar normalisation process to 
match the stored data to points on the graph - but obviously every 
such transform is going to further obscure the original data points 
fed in.


If you can understand this fundamental different from an 'ordinary' 
database then you will better understand how to get the right results 
out.

___
rrd-users mailing list
rrd-users@lists.oetiker.ch
https://lists.oetiker.ch/cgi-bin/listinfo/rrd-users


[rrd-users] Re: add rra to rrd file

2007-04-04 Thread Giovanni
I have found a contrib script on this site http://collectd.org/

 Hi,
 
 I need add a new rra to existing RRD-File. I have found a ticket closed as
 duplicate for this feature but nothing in the manual don't talk of this
 possibility.
 I searched in contrib script but nothing.
 As can I to do it?



 

Looking for earth-friendly autos? 
Browse Top Cars by Green Rating at Yahoo! Autos' Green Center.
http://autos.yahoo.com/green_center/

___
rrd-users mailing list
rrd-users@lists.oetiker.ch
https://lists.oetiker.ch/cgi-bin/listinfo/rrd-users


[rrd-users] Questions about different RRA`s

2007-04-04 Thread David Schulz
Hello,

since a while i am digging around the Net to become more clear about  
rrdtool, but i am not making much progress.

My Goal is to graph the Number of Processes on my Server, for the  
last  hour, day, week, month and year. In the beginning i just made  
one big Archive, using

Can someone show me how to best create one such .rrd with multiple  
RRA`s, explain to me the calculations you made to decide on the  
values for the RRA`s? I tried multiple combinations, one -

rrdtool create process_count.rrd --step 60 DS:pc:GAUGE:120:0:U  
RRA:AVERAGE:0.5:1:525960, which is supposed to take one value every  
60 seconds, for one year,

but it appears it is better to split the different required times  
into different RRA`s. I have no idea how to calculate this though. My  
main Problem is to determine the exact Values for the individual  
RRA:AVERAGE:0.5:?:?. I have read that for example this

RRA:AVERAGE:0.5:1:60 should be one hour (1*60*60= 3600 seconds), and  
RRA:AVERAGE:0.5:60:24 should be 24 hours, but how about a week or a  
month for example? Why RRA:AVERAGE:0.5:60:24, and not RRA:AVERAGE: 
0.5:24:60, both should equal a week, right?


I really need a push in the right direction here.
Thanks a lot for any Explanation,
David

___
rrd-users mailing list
rrd-users@lists.oetiker.ch
https://lists.oetiker.ch/cgi-bin/listinfo/rrd-users