Re: [rrd-users] [FORGED] Re: Installing rrdtool on Linux machine
Good morning. azeddine bezzir <a_bez...@yahoo.fr> wrote: > The machine i am trying to install rrdtool on it, is not mine, it belong to > my company, so i cannot install another OS on it, or change any configuration. > I want to manually install the tool Why? For the record. rrdtool (although a rather old version 1.3.8) _is_ part of RHEL6 and can be found in the rhel-x86_64-server-optional-6 channel. You should change the channel subscriptions of your server accordingly. Futhermore the tar archive also contains a spec file for an RPM build. Depending on your site policy you may build the RPMs from that file (didn't test it myself for 1.5.5 so you may adjust some settings) and setup a "3rd party" repository. Sincerely yours, Andreas Maus. P.S.: Redhat Enterprise Linux 6.4 is really old, it was released over three years ago (february or march 2013 if I recall correctly). The current version of RHEL6 is 6.7. -- Dipl.-Ing. Andreas Maus science+computing ag System Administration Hagellocher Weg 73 tel.: +49 7071 9457 671 72070 Tuebingen, Germany fax: +49 7071 9457 411 www.science-computing.de signature.asc Description: Digital signature ___ rrd-users mailing list rrd-users@lists.oetiker.ch https://lists.oetiker.ch/cgi-bin/listinfo/rrd-users
Re: [rrd-users] Does rrdtool support floating - point values
Hi. AFAIK this depends on your data source (DS) definition. Floating values can be used for GAUGE. COUNTER and DERIVE are classic counters and are integer only. HTH, Andreas. On 04/18/12 14:15, Rafal Gwizdala wrote: Please forgive a lame question, but does rrdtool support floating-point values or integers only? I mean, can I pass floating points to rrdupdate and is there any difference when processing integers vs floatin points? R ___ rrd-users mailing list rrd-users@lists.oetiker.ch https://lists.oetiker.ch/cgi-bin/listinfo/rrd-users -- Dipl.-Ing. Andreas Maus science+computing ag System Administration Hagellocher Weg 73 tel.: +49 7071 9457 671 72070 Tuebingen, Germany fax: +49 7071 9457 411 www.science-computing.de -- Vorstandsvorsitzender/Chairman of the board of management: Gerd-Lothar Leonhart Vorstand/Board of Management: Dr. Bernd Finkbeiner, Michael Heinrichs, Dr. Arno Steitz, Dr. Ingrid Zech Vorsitzender des Aufsichtsrats/ Chairman of the Supervisory Board: Philippe Miltin Sitz/Registered Office: Tuebingen Registergericht/Registration Court: Stuttgart Registernummer/Commercial Register No.: HRB 382196 ___ rrd-users mailing list rrd-users@lists.oetiker.ch https://lists.oetiker.ch/cgi-bin/listinfo/rrd-users
Re: [rrd-users] rrdtool usage questions
Hi. You may took a look at collectd (http://collectd.org/). It handles the rrd files very well, even for large sites. A list of frontends can be found here: http://collectd.org/wiki/index.php/List_of_front-ends Hope that helps, Andreas. On 01/30/12 14:51, Adriano duke Bacha wrote: Hello everybody! I had never heard anything about rrd but recently I've come across a possible need to use it I have lots of clients sending lots of info over time (i.e. ram used, disk space) and I need to make a panel that I'll monitor all these sensors First I thought of saving the data directly into the rrd, but I could have situations where my server has to restart, is it possible to restart saving data into the old rrd file? what about the risk of corrupting the file? thanks in advance, Adriano ___ rrd-users mailing list rrd-users@lists.oetiker.ch https://lists.oetiker.ch/cgi-bin/listinfo/rrd-users -- Dipl.-Ing. Andreas Maus science+computing ag System Administration Hagellocher Weg 73 tel.: +49 7071 9457 671 72070 Tuebingen, Germany fax: +49 7071 9457 411 www.science-computing.de -- Vorstand/Board of Management: Dr. Bernd Finkbeiner, Michael Heinrichs, Dr. Roland Niemeier, Dr. Arno Steitz, Dr. Ingrid Zech Vorsitzender des Aufsichtsrats/ Chairman of the Supervisory Board: Philippe Miltin Sitz/Registered Office: Tuebingen Registergericht/Registration Court: Stuttgart Registernummer/Commercial Register No.: HRB 382196 ___ rrd-users mailing list rrd-users@lists.oetiker.ch https://lists.oetiker.ch/cgi-bin/listinfo/rrd-users
Re: [rrd-users] Lock issue
Hello. Is this file located on a NFS share ? Usually this error occurs when accessing RRD files located on a NFS mounted filesystem. If it is coming from a NFS mounted filesystem you have to talk to your administrator to fix the NFS locking. HTH, Andreas. On 10/05/11 19:59, Caio Brentano wrote: Hello all I'm facing a lock problem in my software... Sometimes, when the script tries to update a file, it return this message: could not lock RRD. If I make a copy of the file, I can update it normally! So, while I don't discover what is the problem, I'm doing this: $ cp file.rrd file.rrd.new $ rrdtool update file.rrd.new DATA $ mv file.rrd.new file.rrd I'm using python 2.4, python-rrdtool-1.4.5 and rrdtool-1.4.5. Does anyone have faced any similiar issue? Regards -- Caio Brentano ___ rrd-users mailing list rrd-users@lists.oetiker.ch https://lists.oetiker.ch/cgi-bin/listinfo/rrd-users -- Dipl.-Ing. Andreas Maus science+computing ag System Administration Hagellocher Weg 73 tel.: +49 7071 9457 671 72070 Tuebingen, Germany fax: +49 7071 9457 411 www.science-computing.de -- Vorstand/Board of Management: Dr. Bernd Finkbeiner, Dr. Roland Niemeier, Dr. Arno Steitz, Dr. Ingrid Zech Vorsitzender des Aufsichtsrats/ Chairman of the Supervisory Board: Philippe Miltin Sitz/Registered Office: Tuebingen Registergericht/Registration Court: Stuttgart Registernummer/Commercial Register No.: HRB 382196 ___ rrd-users mailing list rrd-users@lists.oetiker.ch https://lists.oetiker.ch/cgi-bin/listinfo/rrd-users
Re: [rrd-users] Fwd: start time
Hello. man rrdfetch says something about the format -s accepts: --start|-s start (default end-1day) start of the time series. A time in seconds since epoch (1970-01-01) is required. Negative numbers are relative to the current time. By default, one day worth of data will be fetched. See also AT-STYLE TIME SPECIFICATION section for a detailed explanation on ways to specify the start time. So -s 3600 is not valid, except you are trying to access data from Thu Jan 1 01:00:00 UTC 1970 So you should use an unix timestamp (e.g. -s 1309512280) or use a negative number to specify a relative offset. HTH, Andreas Maus. On 07/01/11 14:08, fadwa salam wrote: Hello, I'm sorry to bother you again, I tried what you sent me. It gives me the following result: period=300 time=3600 end=`date +%s` gives = end=1309521104 end=$(( ( ${end} / ${period} ) * ${period} )) = after this operations it gives end=1309520880 time=$(( ( ${time} / ${period} ) * ${period} ))= time don't change after operations time=3600 start=$(( ${end} - ${time} ))= this operations gives the value of start start=1309517280 it shows ok, but when i run rrdtool fetch it does not accept the value 3600 rrdtool fetch $rrd AVERAGE -r $period -s $time = ERROR: start time: did you really mean month 3600? thank you very much. ___ rrd-users mailing list rrd-users@lists.oetiker.ch https://lists.oetiker.ch/cgi-bin/listinfo/rrd-users -- Dipl.-Ing. Andreas Maus science+computing ag System Administration Hagellocher Weg 73 tel.: +49 7071 9457 671 72070 Tuebingen, Germany fax: +49 7071 9457 411 www.science-computing.de -- Vorstand/Board of Management: Dr. Bernd Finkbeiner, Dr. Roland Niemeier, Dr. Arno Steitz, Dr. Ingrid Zech Vorsitzender des Aufsichtsrats/ Chairman of the Supervisory Board: Philippe Miltin Sitz/Registered Office: Tuebingen Registergericht/Registration Court: Stuttgart Registernummer/Commercial Register No.: HRB 382196 ___ rrd-users mailing list rrd-users@lists.oetiker.ch https://lists.oetiker.ch/cgi-bin/listinfo/rrd-users
Re: [rrd-users] rrdtool
Hi. No you can't import RRD files into Excel ;) But you may write a shell script that generates CSV files (e.g. from rrdtool fetch) and import the generatet CSV files into Excel. HTH, Andreas. Kaushal Shriyan wrote: On Wed, Jan 27, 2010 at 6:57 PM, Marc Powell m...@ena.com wrote: On Jan 27, 2010, at 7:04 AM, Kaushal Shriyan wrote: I understand that the first column is time since Jan 01,1970 and the second column is the value. When i copy 1.879617e+09 in excel sheet, I get weird values, Actually it should be some readable interger value about memory usage on a particular host. It's in a standard scientific notation. 1.879617e+09 = 187961.7 =~ 1.75 GB, assuming input was in bytes. I'm not really an Excel user but I think all you need to do is make sure the cell type is 'number'. Hi Marc, I have 200 hosts monitored by collectd, can i import it directly in the excel sheet format, Basically I am collecting average mem usage and cpu usage for 200 servers for a period of 1 week and 1 month using rrd file. Is there a better way to do it ? Thanks and Regards, Kaushal ___ rrd-users mailing list rrd-users@lists.oetiker.ch https://lists.oetiker.ch/cgi-bin/listinfo/rrd-users -- Dipl.-Ing. Andreas Maus science+computing ag System Administration Hagellocher Weg 73 tel.: +49 7071 9457 671 72070 Tuebingen, Germany fax: +49 7071 9457 411 www.science-computing.de -- Vorstand/Board of Management: Dr. Bernd Finkbeiner, Dr. Roland Niemeier, Dr. Arno Steitz, Dr. Ingrid Zech Vorsitzender des Aufsichtsrats/ Chairman of the Supervisory Board: Michel Lepert Sitz/Registered Office: Tuebingen Registergericht/Registration Court: Stuttgart Registernummer/Commercial Register No.: HRB 382196 ___ rrd-users mailing list rrd-users@lists.oetiker.ch https://lists.oetiker.ch/cgi-bin/listinfo/rrd-users
Re: [rrd-users] rrdtool fetch: Where does the 'b' come from?
On Tue, Apr 28, 2009 at 11:48:02PM -0700, Bredi wrote: That's it! So ist it possible to suppress the name of the DS and the timestamp? I would like to have only the value! Hi. Use tail or just plain and simple grep. e.g. rrdtool fetch youre parameters | grep '^[0-9]' HTH, Andreas. -- Dipl.-Ing. Andreas Maus science+computing ag System Administration Hagellocher Weg 73 tel.: +49 7071 9457 671 72070 Tuebingen, Germany fax: +49 7071 9457 411 www.science-computing.de pgpeu8I2bI1Ln.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] rrdtool fetch: Where does the 'b' come from?
On Tue, Apr 28, 2009 at 06:58:33AM -0700, Bredi wrote: HI! I'm using the fetch command on the command line with the same start and endtime. I'm getting something like this: b 1250702520: 1.00e+02 What about the 'b' charackter? Hi. 'b' is the name of your DS I guess. HTH, Andreas. -- Dipl.-Ing. Andreas Maus science+computing ag System Administration Hagellocher Weg 73 tel.: +49 7071 9457 671 72070 Tuebingen, Germany fax: +49 7071 9457 411 www.science-computing.de pgp9rOHYqppjU.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] RE : rrdtool fetch: Where does the 'b' come from?
On Tue, Apr 28, 2009 at 04:10:49PM +0200, Alex wrote: Hi Bredi, It is the name of your RRA name, isn't it ? Alex Hi Alex. I guess the DS as RRAs does not have a name (the poor little things ;) ) So long, Andreas. -- Dipl.-Ing. Andreas Maus science+computing ag System Administration Hagellocher Weg 73 tel.: +49 7071 9457 671 72070 Tuebingen, Germany fax: +49 7071 9457 411 www.science-computing.de pgpuiyWJyKMjp.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] Infiniband and Ganglia
On Wed, Dec 10, 2008 at 07:58:40AM -0600, Nazario Jose wrote: Hello, We have a 256 cpu cluster with Infiniband interconnect. Ganglia works well with GigE interconnect but not with Infiniband. What changes are needed to monitor the IB traffic using Ganglia? Thank you, Jose Nazario Hi. No offense but ... shouldn't you ask such questions on the Ganglia mailinglist ? - [EMAIL PROTECTED] So long, Andreas. -- Dipl.-Ing. Andreas Maus science+computing ag System Administration Hagellocher Weg 73 tel.: +49 7071 9457 671 72070 Tuebingen, Germany fax: +49 7071 9457 411 www.science-computing.de pgpXTPxCa3HK3.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] Unable to generate graphs error
On Thu, Oct 09, 2008 at 12:20:37PM +0200, George Mtonga wrote: I am installing rrdtool and when i run the perl script rrd_traffic.pl the following error message appears: /usr/local/bin/rrd_traffic.pl: unable to generate eth0 day traffic graph: opening '/var/lib/rrd/eth0.rrd': No such file or directory [... snipp ...] Well ... Are you sure this file (/var/lib/rrd/eth0.rrd) DO exist ? So long, Andreas. -- Dipl.-Ing. Andreas Maus science+computing ag System Administration Hagellocher Weg 73 tel.: +49 7071 9457 671 72070 Tuebingen, Germany fax: +49 7071 9457 411 www.science-computing.de pgpXB674k4qVh.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] I need help with my rrd file
On Fri, Sep 26, 2008 at 01:50:13AM -0700, alucard95 wrote: Hello!! Hi. I need some help with my rrd file. I want to do graphs of input and output traffic of my network. [... snipp ...] next i create a script to upload my rrd file : #!/bin/sh a=0 while [ $a != 0 ]; do snmpwalk -v2c -c public xxx.xxx.xxx.xxx 1.3.6.1.2.1.2.2.1.10.4 $in snmpwalk -v2c -c public xxx.xxx.xxx.xxx 1.3.6.1.2.1.2.2.1.16.4 $out *ahem* Why do you do an snmpWALK ? To just fetch an SNMP entry use snmpget. Show us the output of your snmpget command. I guess it looks like this: [EMAIL PROTECTED]:~$ snmpwalk -v2c -c public 192.168.1.222 1.3.6.1.2.1.2.2.1.16.4 IF-MIB::ifOutOctets.4 = Counter32: 262658353 # I can use N as a replacement for the current time rrdtool update /home/zabbix/switch.rrd N:$in:$out See the comment about the format above. I guess you are calling rrdtool update /home/zabbix/switch.rrd N:IF-MIB::ifInOctets.4 = Counter32: 262658353:IF-MIB::ifOutOctets.4 = Counter32: 262658353 and this will definetively NOT work. Did you run your script by hand? Did it produce any error messages? # sleep until the next 300 seconds are full perl -e 'sleep 30 - time % 30' Aeeeh ... whats wrong with sleep 300 ? (ah and you will sleep for 30 seconds. not 300). done # end of while loop HTH, Andreas. -- Dipl.-Ing. Andreas Maus science+computing ag System Administration Hagellocher Weg 73 tel.: +49 7071 9457 671 72070 Tuebingen, Germany fax: +49 7071 9457 411 www.science-computing.de pgpY3WH1h7oxp.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] I need help with my rrd file
On Fri, Sep 26, 2008 at 01:45:35PM +0200, Rene Fritzsche wrote: Hi, Show us the output of your snmpget command. I guess it looks like this: [EMAIL PROTECTED]:~$ snmpwalk -v2c -c public 192.168.1.222 1.3.6.1.2.1.2.2.1.16.4 IF-MIB::ifOutOctets.4 = Counter32: 262658353 Yes, the output is : IF-MIB::ifOutOctets.4 = Counter32: 461597000 as Alexander wrote; this whole output-line can not be used to be filled Hi. I'm not Alexander but thats o.k. :P to snmpwalk ... 1.3.6.1.2.1.2.2.1.16.4 | sed 's/^.*: \([0-9]*]\)$/\1/' $out Or just use the man snmpget to get the options for snmpget to get a more parsable result. Obviously this depends on your snmp programs. E.g. my net-snmp uses the switch -Oq to get a result that is easier to parse: [EMAIL PROTECTED]:~$ snmpget -Oq -v2c -c public 192.168.1.222 1.3.6.1.2.1.2.2.1.16.4 IF-MIB::ifOutOctets.4 269735286 [EMAIL PROTECTED]:~$ snmpget -Oq -v2c -c public 192.168.1.222 1.3.6.1.2.1.2.2.1.16.4 | cut -d ' ' -f 2 269736768 HTH, Andreas. -- Dipl.-Ing. Andreas Maus science+computing ag System Administration Hagellocher Weg 73 tel.: +49 7071 9457 671 72070 Tuebingen, Germany fax: +49 7071 9457 411 www.science-computing.de pgpK7m6tPT4bN.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] RRD File Not Being Created (linux, RRDTool 1-1.3.1, rrdlib, c++)
On Tue, Jul 29, 2008 at 05:10:12PM -0700, Robert Easton wrote: I fixed the problem. After looking at rrd_tool.c I realised that it was including the first parameter of create. So, I placed create in to the first array position for opts and it worked. Sorry for troubling you all. Hi. Oh and BTW you should NULL terminate your array. So long, Andreas. -- Dipl.-Ing. Andreas Maus science+computing ag System Administration Hagellocher Weg 73 tel.: +49 7071 9457 671 72070 Tuebingen, Germany fax: +49 7071 9457 411 www.science-computing.de pgp3zeeqpJdb9.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] rrd function in C programming
On Mon, Jul 21, 2008 at 05:14:32PM +0800, [EMAIL PROTECTED] wrote: Hi everyone, I am really breaking my neck trying to figure out how to call rrd functions in C programs (i do not want to fork a process and exelc the script by the way). Unfortunately not so many materials are available. I found in the oetiker website that some wrap functions (such as wrap_rrd_create() can be used in C. I tried this, but problems arise as I want to compile my program. I think i did something wrong while linking, etc. But i am not sure about how to compile it, either the library path. Can anyone please help me with this? Hi Shirley. The API is defined in rrd.h and for most functions they accept the same arguments as the command line call. What problems do you have while compiling ? Can you be a more specific and send the errors you got? Without the error messages no one can help you. HTH, Andreas. -- Dipl.-Ing. Andreas Maus science+computing ag System Administration Hagellocher Weg 73 tel.: +49 7071 9457 671 72070 Tuebingen, Germany fax: +49 7071 9457 411 www.science-computing.de pgpcDF9nuzC2u.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] rrd insert problem
On Tue, Jun 03, 2008 at 05:15:35AM -0700, mobi wrote: hi, Hi. /usr/local/rrd/bin/rrdtool update /usr/local/rrd/db/host1/test.rrd N:1239 and i get no error on insert, but when i look in the graph or dump the rrd this also doesnt happen all the time, but only some time with no pattern. anyone has a clue what can it be ? Time drift? I've seen something like that on systems with a unstable system clock and without ntp. Try using the correct time (date +'%s' on Linux) instead of N. e.g.: now=`date +'%s'` rrdtool update [...] ${now}:[...] (and check the values of $now) and of course run ntp to keep your system time stable. HTH, Andreas. -- Dipl.-Ing. Andreas Maus science+computing ag System Administration Hagellocher Weg 73 tel.: +49 7071 9457 671 72070 Tuebingen, Germany fax: +49 7071 9457 411 www.science-computing.de pgpKgPRzYeED5.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] Noobe needs some adviceing (on rrd and FreeBSD)
On Tue, Apr 22, 2008 at 05:34:21PM +0300, X Y wrote: Hello all! Hi. Im a noobe at bouth BSD and RRD, hope some one will help me understand and find, a solution to my Errors. Pardon me for any missprints or misstakes. Don't worry ;) Then i did some reading on man and googling for solutions (without need to mess with Mysql or Apache). Did create sh file #!/bin/sh rrdtool create /usr/local/rrdtool-1.2.27/db/network_usage.rrd? --start now --step 300\ DS:mail_input:COUNTER:600:U:U \ DS:mail_output:COUNTER:600:U:U \ DS:html_traf:COUNTER:600:U:U \ DS:shtml_traf:COUNTER:600:U:U \ DS:ftp_traf:COUNTER:600:U:U \ DS:all:COUNTER:600:U:U \ RRA:AVERAGE:0.5:1:600 \ RRA:AVERAGE:0.5:6:700 \ RRA:AVERAGE:0.5:24:775 \ RRA:AVERAGE:0.5:288:797 \ RRA:MAX:0.5:1:600 \ RRA:MAX:0.5:6:700 \ RRA:MAX:0.5:24:775 \ RRA:MAX:0.5:288:797 \ It creates fine. Next i try to update existing data base with counter data from ipfw manualy cheched ipfw rules and counders do count ok. #!/bin/sh mail_input=`ipfw show 80 | awk '{print $3}'` mail_output=`ipfw show 81 | awk '{print $3}'` http_traf=`ipfw show 82 | awk '{print $3}'` shttp_traf=`ipfw show 83 | awk '{print $3}'` ftp_traf=`ipfw show 84 | awk '{print $3}'` all=`ipfw show 85 | awk '{print $3}'` rrdtool update /usr/local/rrdtool-1.2.27/db/network_usage.rrd \ ?N:$mail_input:$mail_output:$http_traf:$shttp_traf:$ftp_traf:$all *aeh* whats that '?' before N:... ? Is this an error of your mailclient or is it indeed in your command? Can you attach the script (to avoid error due copy and paste)? *Here i stumbled on first error. ERROR: expected timestamp not found in data source from N:2991935:6312:44368311:5850271:1302:318461263: not found Well maybe the magic '?' in the command is _really_ in the command. This error indicates that you called: rrdtool update ... _AND_ then ?N:$mail_input:$... (These are two errors. expected timestamp from rrdtool and 18461263: not found from the shell). It says it doesnt know what N is! Mkay, i write another line dates=`date +%s | awk '{print $1}'` and add $dates instead of N. Ok no Errors. Next i try to graph it all. With following sh file #!/bin/sh WWWPREFIX=/home/alp/hosting/!default/rrdtool/images RRDPREFIX=/usr/local/rrdtool-1.2.27/db rrdtool graph $WWWPREFIX/network.png \ ?--width 500 --height 500 --imgformat PNG \ ?--start -43200 \ [... snipp ...] See the mystic '?' again ! I guess thats really the reason your commands failed. HTH, Andreas. -- Dipl.-Ing. Andreas Maus science+computing ag System Administration Hagellocher Weg 73 tel.: +49 7071 9457 671 72070 Tuebingen, Germany fax: +49 7071 9457 411 www.science-computing.de pgp38eimngDAS.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] memory corruption
On Thu, Apr 10, 2008 at 06:00:54PM +0200, Kiss Gabor (Bitman) wrote: Dear folks, Hi. $ rrdtool dump /var/lib/cricket//power/klimagepek/fh1.rrd [... snipp ...] type COMPUTE /type *** glibc detected *** realloc(): invalid pointer: 0xbfb01af1 *** Aborted O.K. (Thank god newer libc are more picky about such memory inconsistencies ; ) At first which version of rrdtool do you use ? Maybe you should upgrade to a more recent version? Or - as a workaround - set the environment variable MALLOC_CHECK_ to 0 But I recommed a - possible - upgrade of the rrdtool. I bet this issue has been fixed ;) 1. I don't know if the first command creating database is correct or not. Please help. If it gives no error it should be created correct. 3. I guess rrddump should not crash but check file more strictly. rrdtool fetch /var/lib/cricket//power/klimagepek/fh1.rrd AVERAGE works well. Well if the creation works without error _AND_ you can fill the database with - sane - values. Well I think the database is fine. HTH, Andreas. -- Dipl.-Ing. Andreas Maus science+computing ag System Administration Hagellocher Weg 73 tel.: +49 7071 9457 671 72070 Tuebingen, Germany fax: +49 7071 9457 411 www.science-computing.de pgpvM8VH0kWaG.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] ERROR: not a simple integer:
On Wed, Apr 02, 2008 at 08:53:32PM +1100, [EMAIL PROTECTED] wrote: Hello, Hi. I would like to ask for some assistance. I am trying log bandwidth data from a cisco device with rrdtool. I can get data from snmpget at the command line: [EMAIL PROTECTED] ~]# snmpget -c public -v 1 -Oqv 192.168.1.1 ifInOctets. 12767494300 O.K. The database was created as follows: [EMAIL PROTECTED] ~]# rrdtool create inside.rrd -s 300 DS:in:COUNTER:600:U:U DS:out:COUNTER:600:U:U RRA:AVERAGE:0.5:1:576 RRA:AVERAGE:0.5:6:672 RRA:AVERAGE:0.5:24:732 RRA:AVERAGE:0.5:144:1460 O.K. Updated as follows - basically 2 data source values for in and out. [EMAIL PROTECTED] ~]# rrdupdate /var/lib/rrd/outside.rrd N:'snmpget -c public -v 1 -Oqv 192.168.1.1 ifInOctets.1' N:'snmpget -c public -v 1 -Oqv 192.168.1.1 ifOutOctets.1' RRDtool 1.2.99907080300 Copyright by Tobi Oetiker, 1997-2007 Usage: rrdupdate filename [--template|-t ds-name:ds-name:...] time|N:value[:value...] [EMAIL PROTECTED]:value...] [ time:value[:value...] ..] ERROR: not a simple integer: 'snmpget -c public -v 1 -Oaqv 192.168.1.1 ifInOctets.1' [EMAIL PROTECTED] ~]# Read the error message again! You run rrdupdate /var/lib/rrd/outside.rrd N:'snmpget -c ... This is not what you want! You have to fix your quoting. You want something like rrdupdate /var/lib/rrd/outside.rrd N:`snmpget -c ... (Notice the backtic ` instead the single quote ' !) Anyway I recommend storing the output inside a shell variable like: in1=`snmpget -c public -v 1 -Oqv 192.168.1.1 ifInOctets.1` and use this in your rrdtool call: rrdtool update ... N:${in1} ... This would result in a more readable code ;) HTH, Andreas. -- Dipl.-Ing. Andreas Maus science+computing ag System Administration Hagellocher Weg 73 tel.: +49 7071 9457 671 72070 Tuebingen, Germany fax: +49 7071 9457 411 www.science-computing.de pgpKwtC2qfhcI.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 rrdtool
On Tue, Dec 04, 2007 at 09:51:16PM +0100, H?ttmann, Holger wrote: Hi, sorry for my question iam a Neebie on linux. I have install Bigsister. It is a Network Monitor it works fine. But when i will see the Graphs it not display me the Data from the line. I Date and procent (sorry for my english) Can anybody help me and give me the correct Order to repair my system? Hi Holger. No offense, but would you mind asking Bigsister related questions on the Bigsister Mailinglist? - http://sourceforge.net/mail/?group_id=14120 BTW, because Bigsister isn't display anything doen't mean your system is broken ;) So long, Andreas. -- Dipl.-Ing. Andreas Maus science+computing ag System Administration Hagellocher Weg 73 tel.: +49 7071 9457 671 72070 Tuebingen, Germany fax: +49 7071 9457 411 www.science-computing.de pgpDjFE1B8YFV.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] help for a better perspective
On Tue, Nov 13, 2007 at 12:29:29PM +0100, Pili Mu?oz Gargallo wrote: hello, my name is Pili Hi. I'm a student and i'm trying to understand how cacti works. I know that it is the evolution of RDDtool and you need to have it installed to made it works. I have been reading tutorials, to try understanding but there's a thing i don't manage to find: Where i could find information about how configure the agents? i mean, i think i understand that the NMS needs a suite like cacti, in the agent must be running Net-SNMP or similar, but i don't know how both interact... Where i would say the ip of the device i want to monitor? what happens it the net is already done and there's a switch that supports SNMP? how i could install Net- SNMP in an agent? [... snipp ...] No offense but you should ask the cacti-users mailinglist at [EMAIL PROTECTED] You can subscribe to the list here: https://lists.sourceforge.net/lists/listinfo/cacti-user May be these are no the kind of questions you are used to read, but i'm a student and i can't install things in the lab (i can't enter as root). The AhhhYou may install the client part of snmp without root privileges. Personally I install such things in a path in my $HOME. You can do this using several ways. All depending on the software. Some software allows you to specify the installation prefix (e.g. ./configure --prefix) other software -like Net::SNMP- requires manual editing of some files (e.g. Makefile). BTW ... You can also install the snmp server in a different place but this wont make any sense because you need root privileges to run snmpd (es. to bind to the privileged port 161). HTH, Andreas. -- Dipl.-Ing. Andreas Maus science+computing ag System Administration Hagellocher Weg 73 tel.: +49 7071 9457 671 72070 Tuebingen, Germany fax: +49 7071 9457 411 www.science-computing.de pgpeRBiNPlLGQ.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] Need a way to show 2(or more) lines on a graph that have nearly identical values
On Tue, Sep 25, 2007 at 12:59:44AM -0700, Jack Tavares wrote: Hi. In many cases the lines have nearly identical values and it is difficult to see them. (2 of the four lines are not shown because the DS's are empty) http://jacktavares.com/rrd/unstacked.png Jepp. I know that I can STACK them, but then I see lines that look like this http://jacktavares.com/rrd/stacked.png and it looks like the line above has a value of ~20, when in fact they both have a value of ~10 Of course. This is what STACKing does. It stacks line #2 on top of line #1. doing them as AREA has the same problem. Same as above. area #2 is stacked above area #1. Other than putting them in individual graphs, am I missing a simple solution? Hmmm ... In this case (CPU utilization of 4 severs I assume) I would use individual graphs. HTH, Andreas. -- Dipl.-Ing. Andreas Maus science+computing ag System Administration Hagellocher Weg 73 tel.: +49 7071 9457 671 72070 Tuebingen, Germany fax: +49 7071 9457 411 www.science-computing.de pgpRrLn5fyC7W.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] error experienced while installing rrdtool 1.3 beta
On Mon, Sep 10, 2007 at 08:08:32PM +0530, Sattish Vaasudevan wrote: Dear Sir, Hi. Herewith i attached the error prompted while installing rrdtool 1.3 beta At first, rrdtool 1.3 is _BETA_ so I guess it is not a good advice to use this version in a production environment! Platform : RedHAt Linux Rel 3 What do you mean with RH Release 3? Fedora Core 3? RedHat Enterprise 3? RedHat Enterprise 4 Update 3? (And if you use Enterprise what flavor do you use? ES? AS? WS? ) Find 3rd-Party Libraries checking for cairo_font_options_create in -lcairo... yes checking cairo.h usability... no checking cairo.h presence... no checking for cairo.h... no checking for pkg-config... pkg-config configure: WARNING: * I found a copy of pkgconfig, but there is no cairo-png.pc file around. You may want to set the PKG_CONFIG_PATH variable to point to its location. configure: WARNING: * I could not find a working copy of cairo-png. Check config.log for hints on why this is the case. Maybe you need to set LDFLAGS and CPPFLAGS appropriately so that compiler and the linker can find libcairo and its header files. If you have not installed cairo-png, you can get it either from its original home on http://cairographics.org/releases/ You can find also find an archive copy on http://oss.oetiker.ch/rrdtool/pub/libs The last tested version of cairo-png is 1.4.6. LIBS=-lm LDFLAGS= CPPFLAGS= [... snipp ...] It just means what it said. It is likely that you don't have cairo installed on your system. Or it is not installed correctly. If you run pkg-config --list-all you should see a this line: [... snipp ...] cairo cairo - Multi-platform 2D graphics library [... snipp ...] If you have installed cairo to some weird location (like /usr/local/cairo/version) you may set the environment variable PKG_CONFIG_PATH and make sure you include the correct paths in the variables CPPFLAGS and/or LDFLAGS. If you don't have cairo installed ... well you have to install it ;) As said above I think you should not use the beta version of 1.3 (which svn snapshot did you use anyway ?) on a productive system. Use 1.2.x instead. I had no problems compiling this version under RHEL4U3 on x86,x86_64 and ia64. HTH, Andreas. -- Dipl.-Ing. Andreas Maus science+computing ag System Administration Hagellocher Weg 73 tel.: +49 7071 9457 671 72070 Tuebingen, Germany fax: +49 7071 9457 411 www.science-computing.de pgp5KUEbSTbo3.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] Problem with different architectures
On Thu, Aug 23, 2007 at 03:10:37PM +0200, Fredrik W?nglund wrote: there is actually two problems, CPU and amount of data; O.K. I didn't thought about the amount of data because I assumed the rrdfiles were stored on an external USB disk (the Asus has external USB 2.0 ports). I have rrd-files with 1 to ~8 ds and two rra's. It takes about 50 seconds to dump a file with one ds and 70 seconds for a file with 3 ds'es. I plan to have about 30 rrd-files, so it would take about 30 minutes just to convert then. I see. That is really a problem. Another problem is that the ASUS is located in Singapore, and the central server in Sweden. The communication between them is via an quite slow VPN-link. Ouch! Now _that_ is a long distance !;) An rrd-file with one ds is 730kB and the corresponding xml-file is 6.6MB, so its almost ten times more data to transfer between the hosts! Hmmm ... How about compressing the XML data before you transfer it using gzip or bzip2 ? OTOH this will require some CPU additional cycles. What is the difference between the rrd-files? The ASUS is MIPS-based and the central server is an PC. Both platforms are 32-bit, but the PC is little-endian and MIPS is big. If this is the only difference, it should not be so hard for an C-programmer to write routine that converts the rrd-files between different architectures... Ahhh no. Unfortunately it is not that trivial. Although IEEE specify the format of floating numbers the represantation of floats also depends on the architecture. There are different representations of some magic floats like -NaN, +NaN, Inf,-1,+1. Even the alignment may vary! For some examples you can take a look at http://oss.oetiker.ch/rrdtool-trac/wiki/PortableRrdFormat (And yes a portable way representing rrd date is planned ;) I don't know your infrastructure (line speed, etc.) but my first try would be do rrdtool dump | gzip -9 -c | nc remote_server port and set up an listener on the remote server using nc -l IP -p port | rrdtool restore ... But thats just my wild speculation. YMMV. So long, Andreas Maus. -- Dipl.-Ing. Andreas Maus science+computing ag System Administration Hagellocher Weg 73 tel.: +49 7071 9457 671 72070 Tuebingen, Germany fax: +49 7071 9457 411 www.science-computing.de pgprpYA4BTGOR.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] (no subject)
On Fri, Jun 22, 2007 at 08:01:02AM -0700, Valeria Gomez wrote: Hi everybody. I need to migrate some RRD files from a machine to another, both with different versions of RRD tool. The first machine has RRDtool 1.0.49 Copyright 1997-2004 and the other, RRDtool 1.2.11 Copyright 1997-2005. If I copy the file directly from a machine to another, I get the following message: rrdtool info 37854.rrd ERROR: This RRD was created on other architecture If I make a rrdtool dump and then a rrdtool restore, I get the following message: rrdtool restore 73/31740.xml 73/31740.rrd ERROR: Can only restore version = 2 (Not ). Dump your old rrd using a current rrdtool dump. Any idea? Thanks in advance. Hi ! You should install rrdtool 1.2.x on the first machine and dump the rrd files using version 1.2.x (not 1.0.49). See http://oss.oetiker.ch/rrdtool-trac/ticket/25 for further informations. HTH, Andreas. -- Dipl.-Ing. Andreas Maus science+computing ag System Administration Hagellocher Weg 73 mail: [EMAIL PROTECTED] 72070 Tuebingen, Germany tel.: +49 7071 9457 671 www.science-computing.de pgpmmSeszxLsd.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] unsubscribe
On Wed, May 02, 2007 at 06:07:02PM +0800, Judith Pancho wrote: unsubscribe rrd-users You are posting to the wrong address. If you take a look at the mail headers you can see the coorect address to unsubscribe: [... snipp ...] Precedence: list List-Id: Help and discussion among RRDtool users rrd-users.lists.oetiker.ch List-Unsubscribe: https://lists.oetiker.ch/cgi-bin/listinfo/rrd-users, mailto:[EMAIL PROTECTED] List-Archive: http://lists.oetiker.ch/pipermail/rrd-users List-Post: mailto:rrd-users@lists.oetiker.ch List-Help: mailto:[EMAIL PROTECTED] List-Subscribe: https://lists.oetiker.ch/cgi-bin/listinfo/rrd-users, mailto:[EMAIL PROTECTED] Content-Type: multipart/mixed; boundary1204732199== Sender: [EMAIL PROTECTED] Errors-To: [EMAIL PROTECTED] X-Virus-Scanned: by amavisd-new at oetiker.ch X-Virus-Scanned: by amavisd-new at science-computing.de [... snipp ...] 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 pgp0unXqk0U5I.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] RRDTool on OpenBSD 4.0
On Fri, Apr 13, 2007 at 04:34:16PM -0500, Anthony Miller wrote: Hi Anthony. Can't load '/usr/local/libdata/perl5/site_perl/i386-openbsd/auto/RRDs/RRDs.so' for module RRDs: Cannot load specified object at /usr/libdata/perl5/i386-openbsd/5.8.8/DynaLoader.pm line 230. at /cgi-bin/mailgraph.cgi line 8 O.K. Thats not a problem of rrdtool. AFAIK the apache on OpenBSD runs in a chroot()ed environment. man 8 httpd on OpenBSD states that: [... snipp ...] By default, httpd will chroot(2) to the ``ServerRoot'' path, serving doc- uments from the ``DocumentRoot'' path. As a result of the default secure behaviour, httpd cannot access any objects outside ``ServerRoot'' - this security measure is taken in case httpd is compromised. This is not without drawbacks, though: CGI programs may fail due to the limited environment available inside this chroot space. ``UserDir'', of course, cannot access files outside the directory space. Other modules will also have issues. ``DocumentRoot'' directories or any other files needed must be inside ``ServerRoot''. For this to work, pathnames inside the configuration file do not need adjustment relative to ``ServerRoot''. For this option to remain secure, it is important that no files or directories writable by user www or group www are created inside the ``ServerRoot''. [... snipp ...] So you have to setup a proper chroot() or - not recommended - disable the chroot by starting httpd with the -u switch. 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 pgpyMiHW3HKNS.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] This RRD was created on other architecture
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
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] Maximum number of data sources/max cdef size.
On Fri, Feb 09, 2007 at 05:02:27PM +, George Barnett wrote: Hi, I'm aggregating boxes into a graph to draw a cluster and I'm getting null values. Is there a maximum number of datasources in 1 graph? Is there a maximum size of a cdef? I've found that if I do this with only a few DS's, it works fine. Maybe somebody has tried this before? My graph command is below: Hi George. I guess that there is a upper limit, but I don't think you reach it ;) I'm doing similar graphs for 166 nodes, with 4 DS for each node (CPU stats: user,nice,system,idle) without any problem (using rrdtool 1.2.12 - yes I know thats old ;). (This includes several CDEF statements like sorting out unreachable nodes, etc. ) Whats puzzling me are your strange (at least for me) looking DEFs. e.g.: DEF:1aggminclient_requests=sql//RRDValue/UnixTimeStamp/value/RRDKeyID=5057/derive/:value:MIN Whats these sql thingy? Do you store your data in an SQL database ? If yes, maybe thats the problem. I'm storing my data in plain rrd files. 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 pgptCqbXpI80q.pgp Description: PGP signature ___ rrd-users mailing list rrd-users@lists.oetiker.ch https://lists.oetiker.ch/cgi-bin/listinfo/rrd-users
[rrd-users] Re: problem with 1.2.16
On Mon, Jan 22, 2007 at 01:51:31PM +0100, Alexander Krogloth wrote: Hi. hi, yesterday i updated to 1.2.16 (last version was 1.2.15) - following script doesn't work with the new version: [... snipp ...] the error is: --- Content-Type: image/png ERROR: Unknown control code at the end of ' Avg: 24 ?C\n' -- any ideas why my script doesn't work with 1.2.16 - it worked with 1.2.15 i have a couple of scripts that doesn't work with the new version Try to update to 1.2.17. From the CHANGES file of 1.2.17: 2007-01-22 10:28 oetiker * doc/rrdgraph_graph.pod, src/rrd_graph.c: introduced \n as an alias for \l since people seem to be using it despite the documentation not talking about this ... so now it is official and I bet there will soon be people asking why this was only working at the end of a line. -- tobi 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 -- Binary/unsupported file stripped by Ecartis -- -- Err : No filename to use for decode, file stripped. -- Type: application/pgp-signature -- Unsubscribe mailto:[EMAIL PROTECTED] Helpmailto:[EMAIL PROTECTED] Archive http://lists.ee.ethz.ch/rrd-users WebAdminhttp://lists.ee.ethz.ch/lsg2.cgi
[rrd-users] Re: Argument List too long?
On Mon, Dec 18, 2006 at 03:52:38PM -, Kant, D (Dave) wrote: Hi Dave. Hi there, ./tier2.sh: line 3: /usr/bin/rrdtool: Argument list too long We have an rrd script which attempts to graph over 600 data sources. Is there anyway to deal with the Argument list too long error? Is it RRD or the shell thats complaining? The shell expands your wildcards and the list is too long. Either you have to escape something or you can't use that wildcard you are using. Depends on your script, of cause. HTH, Andreas. P.S.: _PLEASE_ don't hijack other threads. Start a new thread instead. -- 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 -- Binary/unsupported file stripped by Ecartis -- -- Err : No filename to use for decode, file stripped. -- Type: application/pgp-signature -- Unsubscribe mailto:[EMAIL PROTECTED] Helpmailto:[EMAIL PROTECTED] Archive http://lists.ee.ethz.ch/rrd-users WebAdminhttp://lists.ee.ethz.ch/lsg2.cgi
[rrd-users] Re: not able to compile rrdtools
On Mon, Dec 04, 2006 at 03:53:22PM +0100, Andreas Meyer wrote: Hi Andreas. It is installed in /opt/gnome. I edited the configure scipt on lines 24554 and 24555 to look in Never (and I mean NEVER !) edit the configure script directly! (If you really, _really_ have to make changes in the configure script edit configure.ac and rebuild the ./configure script) Did you read http://oss.oetiker.ch/rrdtool/doc/rrdbuild.en.html There you can see that you can use env CPPFLAGS=... LDFLAGS=... to help the script to find your libs and headers. 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 -- Binary/unsupported file stripped by Ecartis -- -- Err : No filename to use for decode, file stripped. -- Type: application/pgp-signature -- Unsubscribe mailto:[EMAIL PROTECTED] Helpmailto:[EMAIL PROTECTED] Archive http://lists.ee.ethz.ch/rrd-users WebAdminhttp://lists.ee.ethz.ch/lsg2.cgi
[rrd-users] Re: rrdtool without accurate time
On Thu, Nov 30, 2006 at 02:30:40PM -0800, Joel Lindsay wrote: Hi Joel. Hi, I have no clock on my embedded system so am having problem using rrdtool correctly. I can add a fake date and therefore enter info into the RRD but Not having a time source is usually a bad thing (tm). Can you use NTP on this embedded system? Than you can do a first ntpdate to set the real date and time and run ntpd after this to eliminate clock drifts, etc. So long, 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 -- Binary/unsupported file stripped by Ecartis -- -- Err : No filename to use for decode, file stripped. -- Type: application/pgp-signature -- Unsubscribe mailto:[EMAIL PROTECTED] Helpmailto:[EMAIL PROTECTED] Archive http://lists.ee.ethz.ch/rrd-users WebAdminhttp://lists.ee.ethz.ch/lsg2.cgi
[rrd-users] Re: Segfaulting
Hi Erik. On Wed, Nov 08, 2006 at 08:35:23AM +0100, Erik wrote: I've got some 8000+ rrdfiles in a dir and i am trying to create a graph containing the sum from a selecton of about 1700 rrdfiles. The first problem i ran into is the ARG_MAX limit, by renaming variables i've gotten around that. The problem now is that RRDtool segfaults, is there any other way to create an aggregate graph for my files? Depending on your RRD-Files you should watch your memory. Generating graphs from many files may result in a rrdtool process consuming large amount of memory. So make sure you have enough memory. (and watch your syslog files for out-of-memory conditions). By the way, which versions are we talking about? Which version of rrdtool? 1.2.15? And which OS? I assume Linux. And which platform? x86? x86_64? ia64? something else? If it is really a bug in rrdtool, it would be nice if you load the generated core file (you may set the limits for corefiles from 0 to unlimited, e.g. ulimit -c unlimited) and in gdb an run bt and bt full This will help the developers to debug the problem. *** glibc detected *** free(): invalid pointer: 0x080ef008 *** Hmmm ... Never seen this with a recent version of rrdtool on my systems. You can suppress this warning by setting the environment variable MALLOC_CHECK_=1. 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 -- Binary/unsupported file stripped by Ecartis -- -- Err : No filename to use for decode, file stripped. -- Type: application/pgp-signature -- Unsubscribe mailto:[EMAIL PROTECTED] Helpmailto:[EMAIL PROTECTED] Archive http://lists.ee.ethz.ch/rrd-users WebAdminhttp://lists.ee.ethz.ch/lsg2.cgi
[rrd-users] Re: Printing a text report instead of a graph
On Tue, Oct 24, 2006 at 10:27:17AM -0400, Ruttenberg, Tanya wrote: Hi Tanya. I have been using rrdtool for over a year and I have yet to figure out a reliable way to print my data in a textual report rather than as a graph. What is the best way to do this? I have tried rrdtool xport, but have encountered some problems with it that I can't figure out. I prefer rrdtool xport ;) What is/was your problem with xport? Which language are we talking about? Shell? Perl? Something else? Advice? Again rrdtool xport ;) 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 -- Binary/unsupported file stripped by Ecartis -- -- Err : No filename to use for decode, file stripped. -- Type: application/pgp-signature -- Unsubscribe mailto:[EMAIL PROTECTED] Helpmailto:[EMAIL PROTECTED] Archive http://lists.ee.ethz.ch/rrd-users WebAdminhttp://lists.ee.ethz.ch/lsg2.cgi
[rrd-users] Re: Printing a text report instead of a graph
On Tue, Oct 24, 2006 at 11:08:30AM -0400, Ruttenberg, Tanya wrote: Hi Tanya. I have a perl script that generates a list of around 300 rrd files and cranks through each one, producing an xport for each one. I use RRDp::cmd with xport. The main issue we've seen I posted about previously to this list in a post called Rrdxport issues. Ah, yes. Found that post. Hmmm ... After a very fast look at RRDp.pm it seems that it will call rrdtool directly und uses its output. Usually stdout/stdin are buffered and maybe the buffering produces this mess. (Just a wild guess ;) I used RRDs::xport inside a perl-Script for about 200 Hosts (two RRD files per host) without any problems. It seems like it might be an output buffering issue rather than an rrdxport issue, but I haven't been able to fix it in any case. Could you try RRDs::xport instead? It is directly linked against librrd (at least it doesn't call rrdtool directly). HTH, Andreas. P.S.: _If_ RRDs::xport work I guess you should report this bug with RRDp::cmd -- 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 -- Binary/unsupported file stripped by Ecartis -- -- Err : No filename to use for decode, file stripped. -- Type: application/pgp-signature -- Unsubscribe mailto:[EMAIL PROTECTED] Helpmailto:[EMAIL PROTECTED] Archive http://lists.ee.ethz.ch/rrd-users WebAdminhttp://lists.ee.ethz.ch/lsg2.cgi
[rrd-users] Re: Printing a text report instead of a graph
On Tue, Oct 24, 2006 at 11:37:15AM -0400, Ruttenberg, Tanya wrote: Hi Tanya. I *do* think it seems more like a buffering issue than an xport issue as I said. I think I must have first tried RRDs::xport first. I wonder why I didn't use it? I still think xport seems kind of messy--you have to wade through all that XML to get your data. But if noone has a different suggestion I will go back to trying RRDs::xport. Note: If you use RRDs::xport you don't have to parse XML. RRSs::xport returns an array with all the information you need. I posted sample code some months ago. Search for Re: rrd fetch and RPN or look directly at: http://lists.ee.ethz.ch/rrd-users/msg11005.html (Hint: You can also take a look at shared-demo.pl which ships with rrdtool - at least in the .tar.gz). 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 -- Binary/unsupported file stripped by Ecartis -- -- Err : No filename to use for decode, file stripped. -- Type: application/pgp-signature -- Unsubscribe mailto:[EMAIL PROTECTED] Helpmailto:[EMAIL PROTECTED] Archive http://lists.ee.ethz.ch/rrd-users WebAdminhttp://lists.ee.ethz.ch/lsg2.cgi
[rrd-users] Re: cpu usage please help
Hi. On Tue, Oct 10, 2006 at 09:47:01AM +0900, Mr. Suhas Ghosh wrote: Hi, please some one tell me how to get the cpu usasge ? Is it possible from proc to get it? Sure. What OS you are talking about? Linux? If you use Linux which kernel version? 2.4.x? 2.6.x? Which architecture? x86? x86_64? ia64? I want to draw the graph of cpu usage of my machine. I am giving my DS design. So please help me how to put the data in to it from proc or any other way. The solution is in man 5 proc for Kernel 2.4.x: [... snipp ...] /proc/stat kernel/system statistics. Varies with architecture. Common entries include: cpu 3357 0 4313 1362393 The amount of time, measured in units of USER_HZ (1/100ths of a second on most architectures), that the system spent in user mode, user mode with low priority (nice), system mode, and the idle task, respectively. The last value should be USER_HZ times the second entry in the uptime pseudo-file. In Linux 2.6 this line includes three additional columns: iowait - time waiting for I/O to complete (since 2.5.41); irq - time servicing interrupts (since 2.6.0-test4); softirq - time servicing softirqs (since 2.6.0-test4). [... snipp ...] and for Kernel 2.6.x: [... snipp ...] /proc/stat kernel/system statistics. Varies with architecture. Common entries include: cpu 3357 0 4313 1362393 The number of jiffies (1/100ths of a second) that the system spent in user mode, user mode with low priority (nice), system mode, and the idle task, respectively. The last value should be 100 times the second entry in the uptime pseudo-file. [... snipp ...] I am not using SNMP. Do you collect the data using a Shellscript? Perl? Using the information from /proc/stat you should change your GAUGE declarations to COUNTER (or save the last values, fetch the new one and calculate the difference, so it is far much easier to use COUNTERs). If you change the GAUGEs to COUNTERs you can use: - with Kernel 2.4: # Get user:nice:system:idle cpudata=`grep '^cpu ' /proc/stat | sed -e 's/^cpu */N:/' -e 's/ /:/g'` rrdtool upadte $rrd/cpu.rrd $cpudata - with Kernel 2.6 (I will count the iowait,irq,softirq and values as system values): cpudata=`grep '^cpu ' /proc/stat | awk '{print N:$2:$3:$4+$6+$7:$5;}'` rrdtool update $rrd/cpu.rrd $cpudata 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 -- Binary/unsupported file stripped by Ecartis -- -- Err : No filename to use for decode, file stripped. -- Type: application/pgp-signature -- Unsubscribe mailto:[EMAIL PROTECTED] Helpmailto:[EMAIL PROTECTED] Archive http://lists.ee.ethz.ch/rrd-users WebAdminhttp://lists.ee.ethz.ch/lsg2.cgi
[rrd-users] rrdtool 1.2.x fails on OpenBSD 3.9
Hi. Yesterday I tried to compile rrdtoo 1.2.15 on my OpenBSD machine. ./configure doesn't complain about an error but the compilation fails with: [... snipp ...] ranlib .libs/librrd_th.a creating librrd_th.la (cd .libs rm -f librrd_th.la ln -s ../librrd_th.la librrd_th.la) /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 -L/usr/local/lib -L/usr/local/lib -L/usr/X11R6/lib -o rrdtool librrd.la -lz -lm -lart_lgpl_2 -lpng -lz -lm -lfreetype 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/rrdtool -L/usr/local/lib -L/usr/X11R6/lib -L./.libs -lrrd -lart_lgpl_2 -lpng -lz -lm -lfreetype -Wl,-rpath,/usr/local/rrdtool/1.2.15/lib -Wl,-rpath,/usr/local/lib /usr/local/lib/librrd.so.0.0: warning: strcpy() is almost always misused, please use strlcpy() /usr/local/lib/librrd.so.0.0: warning: sprintf() is often misused, please use snprintf() /usr/local/lib/librrd.so.0.0: warning: strcat() is almost always misused, please use strlcat() /usr/lib/crt0.o(.text+0xd7): In function `___start': : undefined reference to `main' collect2: ld returned 1 exit status *** Error code 1 Stop in /tmp/rrdtool-1.2.15/src (line 490 of Makefile). *** Error code 1 Stop in /tmp/rrdtool-1.2.15 (line 335 of Makefile). *** Error code 1 Stop in /tmp/rrdtool-1.2.15 (line 242 of Makefile). The system runs: OpenBSD gorg.badphish.dyndns.org 3.9 GORG#4 amd64 (OpenBSD 3.9-STABLE). I tested it with rrdtool 1.2.11 - 15 but each version gives this error. Whats puzzling me is that it prints warnings about a (installed) librrd.so in /usr/local/lib Version 1.0.x (tested with 1.0.50) compiles fine. Does anybody know how to get rid of this? Many thanks in advance, 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 -- Binary/unsupported file stripped by Ecartis -- -- Err : No filename to use for decode, file stripped. -- Type: application/pgp-signature -- Unsubscribe mailto:[EMAIL PROTECTED] Helpmailto:[EMAIL PROTECTED] Archive http://lists.ee.ethz.ch/rrd-users WebAdminhttp://lists.ee.ethz.ch/lsg2.cgi
[rrd-users] Re: Hello rrdusers
On Thu, Jun 01, 2006 at 12:11:53PM +0530, Thati Ravi wrote: Hi. hello everybody !! i am new to RRDTool. Welcome ;) Here is a problem (may be simple one ) I am presently collecting the statuses of Network Devices (routers,etc).I am able to plot the graphs. But My requirement is that When Somebody supplies a date (Start and End not in SECs) I should be able to list the averages(or Max) per day between the given 2 dates in a tabular form with dates. Thats not too complicated. Assuming the resolution of your RRD-Databases is fits your needs. First you have to convert the supplied date into the corresponding UN*X epoch (seconds since 01-Jan-1970 00:00 UTC). In PERL you can use the Time::Local module (should be installed or get it from http://search.cpan.org/~drolsky/Time-Local-1.12/) and do something like: $time = timelocal($sec,$min,$hour,$mday,$mon,$year); Having the start and stop date in the right format you can use the xport function from the RRDs perl module (you can even do math with this module !). Now all you have todo to work with the data RRDs::xport() gave you. E.g.: - call RRDs::xport() and it will return an array my ($start,$end,$step,$columcnt,$legend,$data)=RRDs::xport(@cmd); - loop over the data the call to RRDs::xport() returned (convert the seconds since 01-Jan-1970 00:00 back to a normal date using the buildin PERL function localtime) and print your table foreach my $row (@$data) { (undef,my $min,my $hour,my $mday,my $mon,my $year,undef,undef,undef)=localtime($start); $line.=sprintf(%u\t%02u-%s-%04u %02u:%02u,$start,$mday,$Months[$mon],$year+1900,$hour,$min); $start+=$step; foreach my $val (@$row) { if ($val ne '') { $line.=sprintf(\t%.2f,$val); } else { $line.=sprintf(\t-\n,$val); } } } Easy, isn't it ? HTH, Andreas. -- Dipl.-Ing. Andreas Maus science+computing ag System Administration Hagellocher Weg 71-75 mail: [EMAIL PROTECTED] 72070 Tuebingen, Germany tel.: +49 7071 9457 456 www.science-computing.de -- Binary/unsupported file stripped by Ecartis -- -- Err : No filename to use for decode, file stripped. -- Type: application/pgp-signature -- Unsubscribe mailto:[EMAIL PROTECTED] Helpmailto:[EMAIL PROTECTED] Archive http://lists.ee.ethz.ch/rrd-users WebAdminhttp://lists.ee.ethz.ch/lsg2.cgi
[rrd-users] Re: librrd / rrd_graph / getenv
Hi! I'm trying to use librrd from a C main program. Execution fails sometimes when calling to rrd_graph(). The output of the debugger Valgrind is: ==31745== Invalid read of size 2 ==31745== at 0x40CEBA3: getenv (in /lib/tls/libc-2.3.6.so) ==31745==by 0x4125690: (within /lib/tls/libc-2.3.6.so) ==31745==by 0x412635D: tzset (in /lib/tls/libc-2.3.6.so) ==31745==by 0x402FD19: rrd_graph_init (rrd_graph.c:2875) ==31745==by 0x40355AC: rrd_graph (rrd_graph.c:2801) ==31745==by 0x8049B6C: main (in/home/sole/proyecto/erlang/lib/rrdtool_app-1.0/priv/ExtProg) ==31745== Address 0x4115006B is not stack'd, malloc'd or (recently) free'd ==31745== ==31745== Process terminating with default action of signal 11 (SIGSEGV) Could you help me to solve this problem? Sure. But could you sent us the output of a _debugger_ instead of a memory checker? Does the program crash with SIGSEGV if you run it outside of valgrind? Compile your program with debug options. Set your coresize to unlimited, run your program - it caught a SIGSEGV so a core dump will be generated. Run gdb your program core and send the output of backtrace and backtrace full This makes debugging easier. HTH, Andreas. -- Dipl.-Ing. Andreas Maus science+computing ag System Administration Hagellocher Weg 71-75 mail: [EMAIL PROTECTED] 72070 Tuebingen, Germany tel.: +49 7071 9457 456 www.science-computing.de -- Binary/unsupported file stripped by Ecartis -- -- Err : No filename to use for decode, file stripped. -- Type: application/pgp-signature -- Unsubscribe mailto:[EMAIL PROTECTED] Helpmailto:[EMAIL PROTECTED] Archive http://lists.ee.ethz.ch/rrd-users WebAdminhttp://lists.ee.ethz.ch/lsg2.cgi
[rrd-users] Re: rrd fetch and RPN
Hi Bradley. On Thu, Mar 09, 2006 at 02:01:32PM +, Bradley Kite wrote: Hi all. I know how to use RRD fetch to get the raw values from an RRD data file, however, I'm looking to fetch the actual values that would be plotted on a graph, which means applying any RPN calculations etc. that are used by 'rrd graph'... Is it possible to do this? Sure. Try the xport option. xport appears at version 1.0.38 (or so). Hope that helps, Andreas. -- Dipl.-Ing. Andreas Maus science+computing ag System Administration Hagellocher Weg 71-75 mail: [EMAIL PROTECTED] 72070 Tuebingen, Germany tel.: +49 7071 9457 456 www.science-computing.de -- Binary/unsupported file stripped by Ecartis -- -- Err : No filename to use for decode, file stripped. -- Type: application/pgp-signature -- Unsubscribe mailto:[EMAIL PROTECTED] Helpmailto:[EMAIL PROTECTED] Archive http://lists.ee.ethz.ch/rrd-users WebAdminhttp://lists.ee.ethz.ch/lsg2.cgi
[rrd-users] Re: RRD 95 percent
Hi Steven. Hello, I have checked the docs and am having some problems. Using RRDgraph, I am able to get the 95th percentile, graph it, calculate it etc.. but now I need to be able to pull it out without the graph. I was trying some things with rrdfetch but am totally lost. Pretty much I have a php site that needs to be able to grab the 95th percentile for a month based on a .rrd file... Which version of rrdtool do you use? If you are using version =1.0.39 (*) you can use xport statement (rrdtool xport ...) to do get this job done. See man rrdxport for details. Hope that helps, Andreas. (*) According to the CHANGES file. -- Dipl.-Ing. Andreas Maus science+computing ag System Administration Hagellocher Weg 71-75 mail: [EMAIL PROTECTED] 72070 Tuebingen, Germany tel.: +49 7071 9457 456 www.science-computing.de -- Binary/unsupported file stripped by Ecartis -- -- Err : No filename to use for decode, file stripped. -- Type: application/pgp-signature -- Unsubscribe mailto:[EMAIL PROTECTED] Helpmailto:[EMAIL PROTECTED] Archive http://lists.ee.ethz.ch/rrd-users WebAdminhttp://lists.ee.ethz.ch/lsg2.cgi
[rrd-users] Re: RRD Error: Garbage ':46:00 AM\r' after command: COMMENT:11/18/2005 7:46:00 AM\r
Hi Miachael. Hi all, using RRD Tool and Routers 2 to display my graphs. I get the following error RRD Error: Garbage ':46:00 AM\r' after command: COMMENT:11/18/2005 7:46:00 AM\r on all of my targets. I searched the WEB and have not found anything, has anyone seen this before? Which version of rrdtool do you use? I guess you are using rrdtool 1.2.x?. In version 1.2.x you _have to_ esacpe _all_ colons. See the NEWS file and look in the section called Incompatibilities: [... snipp ...] * Colons in COMMENT arguments to rrdtool graph must be escaped with a backslash [... snipp ...] HTH, Andreas. -- Dipl.-Ing. Andreas Maus science+computing ag System Administration Hagellocher Weg 71-75 mail: [EMAIL PROTECTED] 72070 Tuebingen, Germany tel.: +49 7071 9457 456 www.science-computing.de -- Binary/unsupported file stripped by Ecartis -- -- Err : No filename to use for decode, file stripped. -- Type: application/pgp-signature -- Unsubscribe mailto:[EMAIL PROTECTED] Helpmailto:[EMAIL PROTECTED] Archive http://lists.ee.ethz.ch/rrd-users WebAdminhttp://lists.ee.ethz.ch/lsg2.cgi
[rrd-users] Re: graph 0x0
On Fri, Oct 28, 2005 at 09:03:16AM +0100, Olivier Kabukala wrote: Hi Olivier. I know it's not cute, but it's just a test to like things goes Here is the statement : rrdtool graph cpu.gif DEF:speed=cpu.rrd:speed:AVERAGE -w 300 -h 100 *ahem* How does rrdtool know _HOW_ you want to graph the data? As a line? An area? You forget such a statement. Try appending something like: LINE2:speed#ff:Speed To your command line. HTH, Andreas. -- Dipl.-Ing. Andreas Maus science+computing ag System Administration Hagellocher Weg 71-75 mail: [EMAIL PROTECTED] 72070 Tuebingen, Germany tel.: +49 7071 9457 456 www.science-computing.de -- Binary/unsupported file stripped by Ecartis -- -- Err : No filename to use for decode, file stripped. -- Type: application/pgp-signature -- Unsubscribe mailto:[EMAIL PROTECTED] Helpmailto:[EMAIL PROTECTED] Archive http://lists.ee.ethz.ch/rrd-users WebAdminhttp://lists.ee.ethz.ch/lsg2.cgi
[rrd-users] Re: help
On Wed, Oct 12, 2005 at 08:43:19AM +0100, ashwin dandwate wrote: Hi. dear users we are a bunch of struggling students , trying to learn RRD. can you help us by sending some basic code for generating graphs. Well ... Would you be more specific with the word code ? Which programming language do you mean? C? C++? Perl? Python? Tcl? Shell? ... ??? Did you look at man rrdgraph ? There are examples for the shell. Perl calls using RRDs::graph() are similar. the peoblem we faced during coding was. we were able to create a database and update values but not able to fetch the values. i guess we are facing trouble with the time that goes from the 1970.can u explain it as well. Errr ... It is very difficulty to explain something if we don't know what trouble do you mean. It would be much easier if you provide error messages and/or code snippets that produces the errors. HTH, Andreas. -- Dipl.-Ing. Andreas Maus science+computing ag System Administration Hagellocher Weg 71-75 mail: [EMAIL PROTECTED] 72070 Tuebingen, Germany tel.: +49 7071 9457 456 www.science-computing.de -- Binary/unsupported file stripped by Ecartis -- -- Err : No filename to use for decode, file stripped. -- Type: application/pgp-signature -- Unsubscribe mailto:[EMAIL PROTECTED] Helpmailto:[EMAIL PROTECTED] Archive http://lists.ee.ethz.ch/rrd-users WebAdminhttp://lists.ee.ethz.ch/lsg2.cgi
[rrd-users] Re: librrd / C API Documentation
On Wed, Sep 07, 2005 at 11:26:44AM -0700, Steve wrote: Hi Steve. Hi, Is there any documentation of the rrdtool-API? Uhhh... I think there is no documentation available. But for the non-threaded functions I have some knowledge in /dev/brain :) I would like to update RRD from a C program. Thats really easy ... The update function is declared as: int rrd_update(int rrd_argc, char **rrd_argv); Similar to the usual main-Function inside a normal program int is the number of arguments (ala argc) and char ** (ala argv) is a an array of char * . The array rrd_argv contains rrd_argc elements (from 0..rrd_argc-1) and the element rrd_argv[rrd_argc] _MUST_ be NULL. The function does not care about rrd_argv[0] so it can be anything (but not NULL). I recommend that you put the name of the function (update in this case) that uses this array in this field. There is no difference calling the update function from command line (via rrdtool update ... ) or from a C program. The parameters for this routine are the same as described in the manual page for rrdupdate. So lets assume I want to update the file test.rrd (located in my $HOME) with the value N:1:1:1 (it holds three DS). All I have to do is to construct the array rrd_argv and set rrd_argc. The commandline from a shell would look like: [EMAIL PROTECTED] ~ # rrdtool update /home/maus/test.rrd N:1:1:1 and so the corresponding structures in the API-Call will: rrd_argv[0]=update rrd_argv[1]=/home/maus/test.rrd rrd_argv[2]=N:1:1:1 rrd_argv[3]=NULL rrd_argc=3 Then call: int rrd_ret=rrd_update(rrd_argc,rrd_argv); rrd_ret is 0 on success It is a good advice to call rrd_clear_error() before you call rrd_update to possible errors. You can also test for errors using the function rrd_test_error() -a return value of 0 means no error. A string describing the error can be obtained by calling rrd_get_error(). PITFALLS AND COMMON PROBLEMS: A lot of obscure problems arise if you forget about the variables optind and opterr. These variables are declared in the getopt headerfile (used for parsing the options) as _global_ ! So you have to set these variables back to 0 _before_ you call any rrd_* function in your program. Final code snippet: So finally your update of a rrd-database from your C program would look like: [... snipp ...] /* Code that fills rrd_argv and sets rrd_argc to the correct values */ optind=0;opterr=0; rrd_clear_error(); rrd_ret=rrd_update(rrd_argc,rrd_argv); if (rrd_test_error()!=0) { /* Handle error condition */ } [... snipp ...] Easy, isn't it? Hope that helps. Andreas. P.S.: Same procedure applies to rrd_create,rrd_restore,rrd_dump,rrd_tune,rrd_last and rrd_resize -- Dipl.-Ing. Andreas Maus science+computing ag System Administration Hagellocher Weg 71-75 mail: [EMAIL PROTECTED] 72070 Tuebingen, Germany tel.: +49 7071 9457 456 www.science-computing.de -- Binary/unsupported file stripped by Ecartis -- -- Err : No filename to use for decode, file stripped. -- Type: application/pgp-signature -- Unsubscribe mailto:[EMAIL PROTECTED] Helpmailto:[EMAIL PROTECTED] Archive http://lists.ee.ethz.ch/rrd-users WebAdminhttp://lists.ee.ethz.ch/lsg2.cgi
[rrd-users] Re: Bug? : RRDs perl module is very picky about trailing white spaces
On Fri, Aug 26, 2005 at 07:45:38PM +0200, Tobias Oetiker wrote: Hi Tobias. But this doesn't work with the errors generated by the COMMENT statement :/ it would be interesting to see a script proofing that since the code for parsing strings is the same in COMMENT and AREA, which in turn is the reason for COMMENT being picky about : in the first place which it was not in 1.0.x O.K. this is the function: [... snipp ...] sub graph_load_linux() { my $host=shift; my $i=0; my $RealImgWidth=0; my $RealImgHeight=0; my @avg=(5 min,30 min,2 hour,1 day); for ($i=0;$i@Times;$i++) { my $Time=$Times[$i]; (undef,$RealImgWidth,$RealImgHeight)=RRDs::graph($ImageDir./.$host.-load-.$Time..png,--imgformat,PNG,--start,-1$Time,--lower,0, --width,$ImgWidth,--height,$ImgHeight, DEF:load1=$DataDir./.$host./load.rrd:load1:AVERAGE,DEF:load5=.$DataDir./.$host./load.rrd:load5:AVERAGE, DEF:load15=$DataDir./.$host./load.rrd:load15:AVERAGE, DEF:usercpu=$DataDir./.$host./cpu.rrd:user:AVERAGE, DEF:systemcpu=$DataDir./.$host./cpu.rrd:system:AVERAGE,DEF:nicecpu=$DataDir./.$host./cpu.rrd:nice:AVERAGE, DEF:idlecpu=$DataDir./.$host./cpu.rrd:idle:AVERAGE,CDEF:up=systemcpu,usercpu,nicecpu,+,+, CDEF:lw=up,idlecpu,+,CDEF:cpu=up,lw,/,100,*,CDEF:cpu10=cpu,10,LE,load15,UNKN,IF, CDEF:cpu20=cpu,10,GT,cpu,20,LE,*,load15,UNKN,IF, CDEF:cpu30=cpu,20,GT,cpu,30,LE,*,load15,UNKN,IF,CDEF:cpu40=cpu,30,GT,cpu,40,LE,*,load15,UNKN,IF, CDEF:cpu50=cpu,40,GT,cpu,50,LE,*,load15,UNKN,IF,CDEF:cpu60=cpu,50,GT,cpu,60,LE,*,load15,UNKN,IF, CDEF:cpu70=cpu,60,GT,cpu,70,LE,*,load15,UNKN,IF,CDEF:cpu80=cpu,70,GT,cpu,80,LE,*,load15,UNKN,IF, CDEF:cpu90=cpu,80,GT,cpu,90,LE,*,load15,UNKN,IF,CDEF:cpu100=cpu,90,GT,cpu,100,LE,*,load15,UNKN,IF, COMMENT:CPU Utilization (%)\\n, AREA:cpu10#0043ff: 0%-10%,AREA:cpu20#01b2f6:10%-20%,AREA:cpu30#02fcf2:20%-30%,AREA:cpu40#04ff01:30%-40%, AREA:cpu50#cbfe22:40%-50%, COMMENT: Minimum,GPRINT:cpu:MIN:%3.2lf%%,COMMENT:Maximum\: ,GPRINT:cpu:MAX:%3.2lf%%\\n, AREA:cpu60#f6fd2a:50%-60%,AREA:cpu70#f7e526:60%-70%,AREA:cpu80#f9a71b:70%-80%, AREA:cpu90#fb7113:80%-90%,AREA:cpu100#fe2406:90%-100%, COMMENT:Average\\: ,GPRINT:cpu:AVERAGE:%3.2lf%%\\n, COMMENT:\\n, COMMENT:Load average\\n, LINE1:load1#af06bf:1 minute , COMMENT:Minimum: , GPRINT:load1:MIN:%3.2lf,COMMENT:Maximum: ,GPRINT:load1:MAX:%3.2lf\\n, LINE1:load5#ef0cd1:5 minutes ,COMMENT: Average: , GPRINT:load1:AVERAGE:%3.2lf\\n, LINE1:load15#00:15 minutes\\n, HRULE:0#00); if (RRDs::error) { printf(buError:/u%s/b\n,RRDs::error); } else { printf(centerbiLoad average on %s - last %s (%s average)/i/b/centerbr,$host,$Time,$avg[$i]); printf(img src=\%s\ width=\%u\ height=\%u\ alt=\Load average on %s over last %s - %s average\\n,$WWWImageDir./.$host.-load-.$Time..png,$RealImgWidth,$RealImgHeight,$host,$Time,$avg[$i]); } printf(hr\n); } } [... snipp ...] $DataDir is /home/www/systems Running this (perl) script (as CGI) produces: Error:Garbage ': ' after command: COMMENT:Maximum: Well, I could live without colons ;) Hope that helps ... Andreas. -- Dipl.-Ing. Andreas Maus science+computing ag System Administration Hagellocher Weg 71-75 mail: [EMAIL PROTECTED] 72070 Tuebingen, Germany tel.: +49 7071 9457 456 www.science-computing.de -- Binary/unsupported file stripped by Ecartis -- -- Err : No filename to use for decode, file stripped. -- Type: application/pgp-signature -- Unsubscribe mailto:[EMAIL PROTECTED] Helpmailto:[EMAIL PROTECTED] Archive http://lists.ee.ethz.ch/rrd-users WebAdminhttp://lists.ee.ethz.ch/lsg2.cgi
[rrd-users] Re: Bug? : RRDs perl module is very picky about trailing white spaces
On Mon, Aug 29, 2005 at 11:33:52AM +0200, Alex van den Bogaerdt wrote: Hi Alex. You enter \\n and rrdtool gets to see \n You enter \: and rrdtool gets to see : Notice the pattern? COMMENT:Average\\: ,GPRINT:cpu:AVERAGE:%3.2lf%%\\n, You enter \\: and rrdtool gets to see \:. RRDtool will not complain about that comment line. It has seen an escape character and knows not to interpret that colon. DOH! You are right! Error:Garbage ': ' after command: COMMENT:Maximum: Slightly confusing: the command is COMMENT:Maximum and that colon is not from your script line but from english text. In other words, rrdtool accepted until maximum and complained about every token that followed, including its token separator :. You gave it a token separator of : and a token of . Yes. That is the part that confuses me. It think it should care about the the first colon in the COMMENT statement because it separates the statement from text and don't care about colons after that first one. Or at least this was the behavior in rrdtool 1.0.x Well, I could live without colons ;) Not necessary. Just escape colons like every other special char. Your operating system and/or your script parser may eat some escape characters (yours does) in which case you need to escape an escape char. Yes. If I escape the collons with \ and escape the escape character it works. Escaping all relevant colons (and escaping the escape character) is not to much work ... Thanks a lot! Andreas. -- Dipl.-Ing. Andreas Maus science+computing ag System Administration Hagellocher Weg 71-75 mail: [EMAIL PROTECTED] 72070 Tuebingen, Germany tel.: +49 7071 9457 456 www.science-computing.de -- Binary/unsupported file stripped by Ecartis -- -- Err : No filename to use for decode, file stripped. -- Type: application/pgp-signature -- Unsubscribe mailto:[EMAIL PROTECTED] Helpmailto:[EMAIL PROTECTED] Archive http://lists.ee.ethz.ch/rrd-users WebAdminhttp://lists.ee.ethz.ch/lsg2.cgi
[rrd-users] Bug? : RRDs perl module is very picky about trailing white spaces
Hello *! Monitoring hundreds of nodes with the help of rrdtool is fun and so I decided it is time to upgrade from 1.0.49 to 1.2.11. Everything worked well (compiled from the source tarball) but my perl script to produce nifty pictures now starts complaining about numerous errors. Checking the script and it seems that the perl module RRDs bundled with the new version is _really_ picky about trailing white spaces in DEF and CDEF statements. E.g. DEF:load15=$DataDir./.$host./load.rrd:load15:AVERAGE gives: Error:Cannot parse CF in 'DEF:load15=/home/www/systems/node064/load.rrd:load15:AVERAGE ' or CDEF:lw=up,idlecpu,+ results in: Error:invalid rpn expression in: up,idlecpu,+ Hmmm ... I guess trailing spaces in _these_ statements will produce no confusion (and with rrdtool 1.2.11 (1.2.x?) this whitespace is not considered as an error). Furthermore it now starts complaining about statements like this: COMMENT:Maximum: this produces this error: Error:Garbage ': ' after command: COMMENT:Maximum: Similar entries in AREA statements will produce: (e.g. AREA:procurfport16in#00ff00:Incoming traffic: ) Garbage found where STACK expected But this could be solved by escaping the colon like this: AREA:procurfport16in#00ff00:Incoming traffic\\: But this doesn't work with the errors generated by the COMMENT statement :/ Can I consider this behaviour as a bug? Or is it this the intended behaviour? Does anybody out there has a clue/workaround for this? Many thanks in advance, Andreas. P.S.: Have a nice weekend anyway ;) -- Dipl.-Ing. Andreas Maus science+computing ag System Administration Hagellocher Weg 71-75 mail: [EMAIL PROTECTED] 72070 Tuebingen, Germany tel.: +49 7071 9457 456 www.science-computing.de -- Binary/unsupported file stripped by Ecartis -- -- Err : No filename to use for decode, file stripped. -- Type: application/pgp-signature -- Unsubscribe mailto:[EMAIL PROTECTED] Helpmailto:[EMAIL PROTECTED] Archive http://lists.ee.ethz.ch/rrd-users WebAdminhttp://lists.ee.ethz.ch/lsg2.cgi
[rrd-users] Re: problem with mailgraph_virus.rrd
Hi. my server is running under red hat 7.2 Ugh! Thats pretty old, isnt it? How about upgrading? i've installed mailgraph on my server. now the problem is that i can view the mailgraph but i can't see mailgraph_virus I don't know what mailgraph is or what it is doing ... but ... :) my error log from httpd is Premature end of script headers: /data/www/myserver.com/cgi-bin/mailgraph.cgi ERROR: opening 'var/lib/mailgraph/mailgraph_virus.rrd': No such file or directory The error messages tells you where the problem is... Shouldn't there be a / in front of var/ ? i've checked the config on mailgraph.cgi and i've put the correct directorys for each of the services. my $rrd = '/var/lib/mailgraph/mailgraph.rrd'; # path to where the RRD database is my $rrd_virus = 'var/lib/mailgraph/mailgraph_virus.rrd'; # path to where the Virus RRD database is ^ So I guess here you forgot the leading / so this is threated as a relative path instead as an absolute path. Try to add the leading / and try again. It should work. Hope this helps, Andreas. -- Dipl.-Ing. Andreas Maus science+computing ag System Administration Hagellocher Weg 71-75 mail: [EMAIL PROTECTED] 72070 Tuebingen, Germany tel.: +49 7071 9457 456 www.science-computing.de -- Binary/unsupported file stripped by Ecartis -- -- Err : No filename to use for decode, file stripped. -- Type: application/pgp-signature -- Unsubscribe mailto:[EMAIL PROTECTED] Helpmailto:[EMAIL PROTECTED] Archive http://lists.ee.ethz.ch/rrd-users WebAdminhttp://lists.ee.ethz.ch/lsg2.cgi
[rrd-users] Re: Dump from rrd 1.0.x and restore to rrd 1.2.x
On Tue, Jul 19, 2005 at 09:46:06AM +0200, FIGARO Nicolas wrote: Hi Nicolas. I'd like to convert an rrd file from 1.0.x to 1.2.x format. Hmmm ... I am not sure but do you _really_ have to dump/restore a database created with 1.0.x to use it with 1.2.x ? I tried to dump to xml and restore, but I still have error message about different architectures. Can you show us how do you dump and restore? Running: rrdtool dump oldarchitecture.rrd oldarchitecture.xml rrdtool restore oldarchitecture.xml newarchitecture.rrd Will usually do the trick. So long, Andreas. -- Dipl.-Ing. Andreas Maus science+computing ag System Administration Hagellocher Weg 71-75 mail: [EMAIL PROTECTED] 72070 Tuebingen, Germany tel.: +49 7071 9457 456 www.science-computing.de -- Binary/unsupported file stripped by Ecartis -- -- Err : No filename to use for decode, file stripped. -- Type: application/pgp-signature -- Unsubscribe mailto:[EMAIL PROTECTED] Helpmailto:[EMAIL PROTECTED] Archive http://lists.ee.ethz.ch/rrd-users WebAdminhttp://lists.ee.ethz.ch/lsg2.cgi
[rrd-users] Re: A question regarding step size in rrdxport ...
On Wed, Jul 06, 2005 at 04:45:01PM +0200, Alex van den Bogaerdt wrote: Hi Alex. of 3600 sec. Running: If you desire specific step sizes, the first thing to make sure is that you don't use now in start nor end, neither implicit or explicit. rrdtool xport --start=-1year --end now --step 3600 DEF:node01=node01/load.rrd:load1:AVERAGE XPORT:node01:loadonnode01 O.K. The final script will not use any references to 'now' (it will use UTC timestamps for start end end). This contains an implicit now, in --start now-1year. Unfortunately this doesn't work: [EMAIL PROTECTED] strb01 rrdtool xport --start=1089717833 --step=3600 --end=1121253833 DEF:load15b01=load.rrd:load15:AVERAGE XPORT:load15b01:load1 ?xml version=1.0 encoding=ISO-8859-1? xport meta start1089766800/start step78900/step end1121326800/end rows401/rows columns1/columns legend entryload1/entry /legend /meta data rowt1089766800/tvNaN/v/row [... snipp ...] The solution suggested by Wolfgang Schrimm on this list (using --maxrows) does the trick. (but I didnt test it with a referenc to now). Anyway thanks for your help. Andreas. -- Dipl.-Ing. Andreas Maus science+computing ag System Administration Hagellocher Weg 71-75 mail: [EMAIL PROTECTED] 72070 Tuebingen, Germany tel.: +49 7071 9457 456 www.science-computing.de -- Binary/unsupported file stripped by Ecartis -- -- Err : No filename to use for decode, file stripped. -- Type: application/pgp-signature -- Unsubscribe mailto:[EMAIL PROTECTED] Helpmailto:[EMAIL PROTECTED] Archive http://lists.ee.ethz.ch/rrd-users WebAdminhttp://lists.ee.ethz.ch/lsg2.cgi
[rrd-users] Re: A question regarding step size in rrdxport ...
On Wed, Jul 06, 2005 at 05:24:37PM +0200, Wolfgang Schrimm wrote: Hi Wolfgang. Hello Andreas, you have to give an appropriate maxrows parameter. The default is 400. That's because xport uses logic from the graph command where the step size is choosen based on the width of the graph. With the default maxrows value and your start and end values you get: 365 x 24 x 3,600 = 31,536,000 (seconds) 31,536,000 / 400 = 78,840 (step size) rounded to a multiple of 300 is 78900 Your are right. Running rrdtool xport with --maxrows -which can be calculated from a given start, stop and step- does the trick. PS: xport is available in the perl module (try the shared-demo.pl in the examples directory) Ooops. Missed that I was only looking through man 3 RRDs and didn't found an entry for RRDs::xport. Thanks, Andreas. -- Dipl.-Ing. Andreas Maus science+computing ag System Administration Hagellocher Weg 71-75 mail: [EMAIL PROTECTED] 72070 Tuebingen, Germany tel.: +49 7071 9457 456 www.science-computing.de -- Binary/unsupported file stripped by Ecartis -- -- Err : No filename to use for decode, file stripped. -- Type: application/pgp-signature -- Unsubscribe mailto:[EMAIL PROTECTED] Helpmailto:[EMAIL PROTECTED] Archive http://lists.ee.ethz.ch/rrd-users WebAdminhttp://lists.ee.ethz.ch/lsg2.cgi
[rrd-users] A question regarding step size in rrdxport ...
Hello everybody. Perhaps someone out there can enlight me... :) I am collecting some statistics from several cluster nodes and store them in a rrd-database. Each database holds 216000 samples of 5 min (don't ask ... I really need this amount of data for such a long timespan ...). To generate some reports I tried to call rrdxport with a step size of 3600 sec. Running: rrdtool xport --start=-1year --end now --step 3600 DEF:node01=node01/load.rrd:load1:AVERAGE XPORT:node01:loadonnode01 But I get the expcted XML output with a step of 78900 seconds although the database is capable of handling this stepsize. Does anybody know how I get the desired step size of 3600 seconds via rrdxport? Many thanks in advance ... Andreas. P.S.: Is there a reason that there is no RRDs::xport() in the perl module ? -- Dipl.-Ing. Andreas Maus science+computing ag System Administration Hagellocher Weg 71-75 mail: [EMAIL PROTECTED] 72070 Tuebingen, Germany tel.: +49 7071 9457 456 www.science-computing.de -- Binary/unsupported file stripped by Ecartis -- -- Err : No filename to use for decode, file stripped. -- Type: application/pgp-signature -- Unsubscribe mailto:[EMAIL PROTECTED] Helpmailto:[EMAIL PROTECTED] Archive http://lists.ee.ethz.ch/rrd-users WebAdminhttp://lists.ee.ethz.ch/lsg2.cgi
[rrd-users] Re: Converting rrd files from one system to another
On Thu, Jan 20, 2005 at 08:04:56AM -0500, James B Horwath wrote: Hi James. for x in `ls *.rrd` do rrdtool xport ${x} ${x}_xport ---^ xport ??? Thats wrong. The name (and description in the man page) is a little bit misleading (rrdxport - Export data in XML format based on data from one or several RRD) You should use rrdtool dump and rrdtool restore to convert databases. rrddump - dump the contents of an RRD to XML format rrdrestore - restore the contents of an RRD from its XML dump format So you should run: rrdtool dump rrd_on_old_host.rrd rrd_on_old_host_dumped.xml and restore them on the new host via: rrdtool restore rrd_on_old_host_dumped.xml rrd_on_new_host.rrd Easy, isn't it? ;) Hope that helps, Andreas. -- Dipl.-Ing. Andreas Maus science+computing ag System Administration Hagellocher Weg 71-75 mail: [EMAIL PROTECTED] 72070 Tuebingen, Germany tel.: +49 7071 9457 456 www.science-computing.de -- Binary/unsupported file stripped by Ecartis -- -- Err : No filename to use for decode, file stripped. -- Type: application/pgp-signature -- 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: Win32 RRD's not read by UNIX RRDTool
On Thu, Nov 11, 2004 at 08:19:17AM -0500, Sunil Modi (IT) wrote: Hi Sunil. No no no no no no ... You have to dump the file on the _UNIX_ host that created the file (e.g. rrdtool dump foobar.rrd foobar.xml) Transfer the XML-File to your _Windows_ box and restore the rrd-File from the XML-File (e.g. rrdtool restore foobar.xml foobar_on_windows.rrd) You don't have to write a batch script unless you have to dump/restore more rrd files. Hope that helps ... So long, Andreas. -- Dipl.-Ing. Andreas Maus science+computing ag System Administration Hagellocher Weg 71-75 mail: [EMAIL PROTECTED] 72070 Tuebingen, Germany tel.: +49 7071 9457 456 www.science-computing.de -- Binary/unsupported file stripped by Ecartis -- -- Err : No filename to use for decode, file stripped. -- Type: application/pgp-signature -- 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: Graphs overlap with legend
On Fri, Sep 03, 2004 at 09:44:29AM +0200, Andreas Maus wrote: Hi. --lower-limit 0? Nope. But I will try it. Yes, that fixed it. Although I don't know why this happens just sometimes. Anyway. Many thanks for this quick fix. Andreas. -- Dipl.-Ing. Andreas Maus science+computing ag System Administration Hagellocher Weg 71-75 mail: [EMAIL PROTECTED] 72070 Tuebingen, Germany tel.: +49 7071 9457 456 www.science-computing.de -- Binary/unsupported file stripped by Ecartis -- -- Err : No filename to use for decode, file stripped. -- Type: application/pgp-signature -- 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: Graphs overlap with legend
On Thu, Sep 02, 2004 at 11:26:52PM +0600, Shariful Anam Shuman wrote: Hi. Hi, I have not seen your attached graph. But have you tried using -l 0 or The mailinglist program strip attachment from mails an put them on a HTTP-Server. This is what I get from my mail to the list: -- Attached file removed by Ecartis and put at URL below -- -- Type: application/octet-stream -- Size: 8k (8892 bytes) -- URL : http://www.ee.ethz.ch/~slist/p/rtt_and_loss.png --lower-limit 0? Nope. But I will try it. Thanks, Andreas. -- Dipl.-Ing. Andreas Maus science+computing ag System Administration Hagellocher Weg 71-75 mail: [EMAIL PROTECTED] 72070 Tuebingen, Germany tel.: +49 7071 9457 456 www.science-computing.de -- Binary/unsupported file stripped by Ecartis -- -- Err : No filename to use for decode, file stripped. -- Type: application/pgp-signature -- 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] Graphs overlap with legend
Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hello. I'm graphing roundtrip times and packet loss rates using rrdtool. The graphs are creates using: rrdtool graph /tmp/rtt_and_loss.png -a PNG \ --width 600 --height 300 --start -1month \ DEF:rttmin=3Drtt_195.62.99.234.rrd:min:MIN \ DEF:rttavg=3Drtt_195.62.99.234.rrd:avg:AVERAGE \ DEF:rttmax=3Drtt_195.62.99.234.rrd:max:MAX \ DEF:loss=3Drtt_195.62.99.234.rrd:loss:AVERAGE \ CDEF:loss1=3Dloss,0,10,LIMIT,UN,UNKN,INF,IF \ CDEF:loss2=3Dloss,10,25,LIMIT,UN,UNKN,INF,IF \ CDEF:loss3=3Dloss,25,50,LIMIT,UN,UNKN,INF,IF \ CDEF:loss4=3Dloss,50,75,LIMIT,UN,UNKN,INF,IF \ CDEF:loss5=3Dloss,75,100,LIMIT,UN,UNKN,INF,IF \ COMMENT:Packet Loss Percentage. \ AREA:rttavg#00ff00:Round-Trip Time in milliseconds\n \ STACK:loss1#6C9BCD:0-10% \ GPRINT:rttmin:LAST:Current\:%8.2lf %s\n \ STACK:loss2#00:10-25% \ GPRINT:rttavg:AVERAGE: Average\:%8.2lf %s\n \ STACK:loss3#FFCC66:25-50% \ GPRINT:rttmax:MAX: Maximum\:%8.2lf %s\n \ STACK:loss4#FF9900:50-75%\n \ STACK:loss5#FF:75-100%\n The result looks o.k, but sometimes the STACK goes below the graph and right through the legend (shown in attached file rtt_and_loss.png). The graph was produced using rrdtool 1.0.49 Does anyone experience similar problems or can point me to a solution? Many thanks in advance, Andreas Maus. --=20 Dipl.-Ing. Andreas Maus science+computing ag System Administration Hagellocher Weg 71-75 mail: [EMAIL PROTECTED] 72070 Tuebingen, Germany tel.: +49 7071 9457 456 www.science-computing.de -- Attached file removed by Ecartis and put at URL below -- -- Type: application/octet-stream -- Size: 8k (8892 bytes) -- URL : http://www.ee.ethz.ch/~slist/p/rtt_and_loss.png -- Binary/unsupported file stripped by Ecartis -- -- Err : No filename to use for decode, file stripped. -- Type: application/pgp-signature -- 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
Hi Bret. You could draw such sweet colors using: CDEF:cpu10=cpu,10,LE,load15,UNKN,IF CDEF:cpu20=cpu,10,GT,cpu,20,LE,*,load15,UNKN,IF CDEF:cpu30=cpu,20,GT,cpu,30,LE,*,load15,UNKN,IF CDEF:cpu40=cpu,30,GT,cpu,40,LE,*,load15,UNKN,IF CDEF:cpu50=cpu,40,GT,cpu,50,LE,*,load15,UNKN,IF CDEF:cpu60=cpu,50,GT,cpu,60,LE,*,load15,UNKN,IF CDEF:cpu70=cpu,60,GT,cpu,70,LE,*,load15,UNKN,IF CDEF:cpu80=cpu,70,GT,cpu,80,LE,*,load15,UNKN,IF CDEF:cpu90=cpu,80,GT,cpu,90,LE,*,load15,UNKN,IF CDEF:cpu100=cpu,90,GT,load15,UNKN,IF and draw them with: AREA:cpu10#0043ff:0\%-10\%AREA:cpu20#01b2f6:10\%-20\%AREA:cpu30#02fcf2:20\%-30\%AREA:cpu40#04ff01:30\%-40\%AREA:cpu50#cbfe22:40\%-50\% AREA:cpu60#f6fd2a:50\%-60\%AREA:cpu70#f7e526:60\%70\%AREA:cpu80#f9a71b:70\%-80\%AREA:cpu90#fb7113:80\%-90\%AREA:cpu100#fe2406:90\%-100\% Hope that helps. Andreas. -- Dipl.-Ing. Andreas Maus science+computing ag System Administration Hagellocher Weg 71-75 mail: [EMAIL PROTECTED] 72070 Tuebingen, Germany tel.: +49 7071 9457 456 www.science-computing.de -- Binary/unsupported file stripped by Ecartis -- -- Err : No filename to use for decode, file stripped. -- Type: application/pgp-signature -- 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: rrd-users - Using librrd in C programs
On Fri, Nov 07, 2003 at 04:30:42PM +0100, Pitisi wrote: Hi. I write a C program and try to use RRD commands in it, but I can't find any documentation about librrd API. Unfortunately there is no documentation of the API around. :-( Can somebody tell me where I can find such a documentation, or describe the syntax of the update command. I tried the following: int ret; char *cmd_update[5]; cmd_update[0] = update; cmd_update[1] = fic.rrd; cmd_update[2] = --template; cmd_update[3] = DSName; cmd_update[4] = 1067264490:1280; Is cmd_update[5] === NULL ? If I recall correctly the rrd_* functions parse the input with getopt and if you give options on the command line the argv array is NULL terminated at argv[argc]. Another pitfall is caused by the fact that getopt uses the optind variable and this variable is global ! So you have to reset optind before each call to rrd_*() It's a simple optind=0 but its annoying... Hope this helps...Andreas. P.S.: Hmmm... Maybe I will write a small documentation of the rrdtool-API. -- Dipl.-Ing. Andreas Maus science+computing ag System Administration Hagellocher Weg 71-75 mail: [EMAIL PROTECTED] 72070 Tuebingen, Germany tel.: +49 7071 9457 456 www.science-computing.de -- Binary/unsupported file stripped by Ecartis -- -- Err : No filename to use for decode, file stripped. -- Type: application/pgp-signature -- 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: rrd-users - Using librrd in C programs
On Mon, Nov 10, 2003 at 09:17:50AM +0100, Pitisi wrote: Hi Didier. seems to work without adding a NULL pointer as the last parameter, but I keep it since it doesn't cost a lot! I guess it worked before, because the memory area at cmd_update[5] was set to NULL by your system. Perhaps you calloc()ed it? Anyway. Adding the NULL pointer at the end doesn't cost a lot and is easy. I found out another strange thing: before a call to rrd_update I print my command line: for ( i = 0; i 5; i++) printf(%s ,cmd_update[i]); and I have on the screen: update fic.rrd --template DSName 1067264490:5.50 and that's correct Then I call: rrd_update(5,cmd_update); And, just after, print my command line one more time with the same instructions, and I have: update --template DSName fic.rrd 1067264490:5.50 Parameter 2 (fic.rrd) is now in 4th position ! ! ! ! ! Don't worry. The position doesn't matter. Do you have an explanation for that?? I guess it is the getopt_long call inside the rrd_*() call that changes the order of the arguments. It's nothing I would worry about. Thank you for your help Nevermind. So long ... Andreas. -- Dipl.-Ing. Andreas Maus science+computing ag System Administration Hagellocher Weg 71-75 mail: [EMAIL PROTECTED] 72070 Tuebingen, Germany tel.: +49 7071 9457 456 www.science-computing.de -- Binary/unsupported file stripped by Ecartis -- -- Err : No filename to use for decode, file stripped. -- Type: application/pgp-signature -- 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] No int rrd_info(int,char**); in rrd.h ?
Hi everybody! I use the C lib from the rrdtool (version 1.0.37) and a simple question arose ... Why is there no definition of the rrd_info function (and struct info_t, enum info_type and union infoval) in the rrd.h file? The function is defined in librrd.{a,so} and exists since version 1.0.17 (rrd.h since 1.0.22) -- so says the CHANGES file. So is there a special reason not to include this function in rrd.h? (But in the rrd_tool.h from the sources) Many thanks in advance, Andreas. -- For a moment, nothing happened. Then, after a second or so, nothing continued to happen. @---@ |WWW:http://home.arcor.de/maus_andreas/ | |ICQ:#30762215 | |PGP:http://home.arcor.de/maus_andreas/pgp/maus.asc | |Fingerprint:439ccecd-9c7821e7-13f4f8b7-3b78d459| @---@ __ All inclusive! 100 MB Speicher, SMS 50% gunstiger, 32 MB Attachment-Grosse, Preisvorteile und mehr unter http://club.web.de/?mc=021104 -- 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: Problems
John wrote: Hey all... I've just tried compiling rdd on a Linux machine. hi john. gcc version egcs-2.91.66 19990314/Linux (egcs-1.1.2 release) perl, version 5.005_03 built for i386-linux I get so many compile errors even though it compiles and installs. Nope. There are no errors, only warnings. You can ignore this. It happens on all my linux boxen, I ignored all of them and everything works fine... :) Am wondering if this is common and should be forgotten, or if this is the reason why Cricket isn't working properly :) I don't know...I don't use cricket... Cheers John So long...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] Accessing a rrd-database using C?
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: Accessing a rrd-database using C?
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: RRD error
Hi Phil! [EMAIL PROTECTED] wrote: Can someone give me some insight on this please ERROR while updating /home/bronc/rrd_files/cruller-inbound.rrd [ 982083962::0 ]: expected 2 data source readings (got 1) from 982083962:0:... I think the problem is caused by the two colons (::). If this happens in a shell or Perl-script, there may be a unitialized variable. Hope that helps, 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