[rrd-users] Re: Help with Bash script to calc end-time in multiples of 300 ?
Alex van den Bogaerdt wrote: etime=`date +%s` step=300 etime=$(( ${etime} - ( ${etime} % ${step} ) )) etime=$(( ${etime} / ${step} * ${step} )) is 10% faster, at least on my system. I tried this by looping 100,000 times doing those calculations, several runs. Bash uses integer calculations, and my sequence saves a calculation internally. Fair enough. Printing the value can be done using perl, but unless you're going to use perl for other purposes as well you are better off with gnu-date. This runs in 44% of the time needed for starting perl: /bin/date -d 19700101\ 00:00\ +\ ${etime}sec It means: the unix epoch (19700101 00:00, timezone UTC) and then ${etime} seconds further in time (so: reverse of date +%s) Sneeky ! I'd never have thought of that. -- 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 with Bash script to calc end-time in multiples of 300 ?
Rob Conway wrote: I just use date +%s to get the unix time but how can I easily round this value ? etime=`date +%s` step=300 etime=$(( ${etime} - ( ${etime} % ${step} ) )) Now, can someone show me how to convert the resulting end time to a human readable form - eg so I can use it in a gprint statement ? -- 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 with Bash script to calc end-time in multiples of 300 ?
Hi Simon, I would use perl -e 'print .localtime(time - time % 300)' Rob Conway wrote: I just use date +%s to get the unix time but how can I easily round this value ? etime=`date +%s` step=300 etime=$(( ${etime} - ( ${etime} % ${step} ) )) Now, can someone show me how to convert the resulting end time to a human readable form - eg so I can use it in a gprint statement ? -- Unsubscribe mailto:[EMAIL PROTECTED] Helpmailto:[EMAIL PROTECTED] Archive http://lists.ee.ethz.ch/rrd-users WebAdminhttp://lists.ee.ethz.ch/lsg2.cgi -- Tobi Oetiker, OETIKER+PARTNER AG, Aarweg 15 CH-4600 Olten http://tobi.oetiker.ch [EMAIL PROTECTED] ++41 62 213 9902 -- 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 with Bash script to calc end-time in multiples of 300 ?
On Sat, Nov 18, 2006 at 09:32:15AM +, Simon Hobson wrote: Rob Conway wrote: I just use date +%s to get the unix time but how can I easily round this value ? etime=`date +%s` step=300 etime=$(( ${etime} - ( ${etime} % ${step} ) )) etime=$(( ${etime} / ${step} * ${step} )) is 10% faster, at least on my system. I tried this by looping 100,000 times doing those calculations, several runs. Bash uses integer calculations, and my sequence saves a calculation internally. Printing the value can be done using perl, but unless you're going to use perl for other purposes as well you are better off with gnu-date. This runs in 44% of the time needed for starting perl: /bin/date -d 19700101\ 00:00\ +\ ${etime}sec It means: the unix epoch (19700101 00:00, timezone UTC) and then ${etime} seconds further in time (so: reverse of date +%s) I use a hardcoded path, to avoid PATH search (more work, more cpu cycles needed, more time!). Time formatting works, so you can add '+%F %T' to the command and get a nicer format: /bin/date -d 19700101\ 00:00\ +\ ${etime}sec +%F\ %T To get it into a variable, to be used in your graph script: printedtime=$(/bin/date -d 19700101\ 00:00\ +\ ${etime}sec +%F\ %T) printedtime=$(/bin/date -d 19700101 00:00 + ${etime}sec +%F %T) HTH -- Alex van den Bogaerdt http://www.vandenbogaerdt.nl/rrdtool/ -- 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 with Bash script to calc end-time in multiples of 300 ?
Thanks for the input guy's I converted my end time however the generation of 6 graphs still takes 30 seconds on my 266 mhz processor. The script below only shows one rrdtool graph statement however the other 5 graphs statements are the same. Is there anything else I can do to optimise the graph generation. #!/bin/bash etime=$(/bin/date +%s) step=300 etime=$((${etime}/${step}*${step} )) ## Aquarium PH GRAPH ## rrdtool graph /website/ph1d.png --start e-1d --end $etime \ --upper-limit 8.0 --lower-limit 6.2 --units-length 2 \ --rigid --slope-mode --width 426 --height 200 \ --title pH --vertical-label PH --interlaced \ DEF:phv=/public/aquaph.rrd:ph:AVERAGE LINE1:phv#FF:Ph= \ VDEF:phlast=phv,LAST GPRINT:phlast:%3.2lf%S \ VDEF:phavg=phv,AVERAGE GPRINT:phavg:avg=%3.2lf%spH \ --watermark Aquarium PH Graph Above is generated another 5 times -- 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 with Bash script to calc end-time in multiples of 300 ?
On Sun, Nov 19, 2006 at 10:07:47AM +1100, Rob Conway wrote: ## Aquarium PH GRAPH ## rrdtool graph /website/ph1d.png --start e-1d --end $etime \ --upper-limit 8.0 --lower-limit 6.2 --units-length 2 \ --rigid --slope-mode --width 426 --height 200 \ --title pH --vertical-label PH --interlaced \ Change one item at a time, and try a couple of times. This makes sure you know the effect for each separate change, and you know the time needed wasn't affected by other processes that also may consume CPU cycles (at least: not a temporary running program). Can't comment on slope-mode. In general: try removing options you don't really need. If it makes a difference, you can decide what is more important; if it doesn't make a difference, it is easy to put the option back in. (when you've tried, please do report the outcome here for future reference) Duration 1d and width 426. You may want to see if this could be improved. It now is 202.8169014 seconds per pixel. Assuming step==300 seconds and an RRA where steps==1step: Try duration 127800seconds (300*426) or width 288 pixels. Adjusting the width is probably better, as it will use less resources thus less time. I think this should help; also report back please. HTH -- Alex van den Bogaerdt http://www.vandenbogaerdt.nl/rrdtool/ -- 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 for GPRINT
On Tue, Oct 10, 2006 at 08:52:00AM +0200, [EMAIL PROTECTED] wrote: I use rrdtool with mrtg on a windows server, no problems for creating rrdtool graphs, but i have a little problem with the GPRINT comand: Nope, you have a problem with command.com or cmd.exe :) rrdtool graph test.png --imgformat=PNG --start=-86400 --end=-300 --title=Localhost - CPU Utilization - CPU0 --rigid --base=1000 --height=120 --width=500 --alt-autoscale-max --lower-limit=0 --vertical-label=percent --slope-mode DEF:a=cpu.rrd:ds1:AVERAGE AREA:a#FF:CPU Utilization GPRINT:a:LAST:Current\:%8.0lf GPRINT:a:AVERAGE:Average\:%8.0lf GPRINT:a:MAX:Maximum\:%8.0lf Try single quotes, and/or try double percent sign. You may need to experiment a bit: GPRINT:a:LAST:'Current:%8.0lf' GPRINT:a:LAST:'Current\:%8.0lf' GPRINT:a:LAST:'Current\:\%8.0lf' GPRINT:a:LAST:'Current\:%%8.0lf' that sort of stuff. The problem is not RRDtool. RRDtool never gets to see that '%'. Your OS changes %8 into the 8th parameter for your script. HTH -- Alex van den Bogaerdt http://www.vandenbogaerdt.nl/rrdtool/ -- 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 needed here !!!!1
2.I wanted to read the data from RRDTOOL into php web pages. Please suggest me some ways to go ahead. I am helpless now regaring creating web pages with the data from RRDs. Thanks in advance. One method I've used is to execute the command for generating the graph in php. And then opening the image (fopen) and printing it. When you call the php script from within an html-img tag, the graph gets displayed as expected :-) -- regards, Georges Toth -- 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: Help on RRDTOO monitoring cpu loadavg needed!
Firstly, thanks for help from others. I finally got it working by fixing the numbers input to rrdtool. Apparently, just need to remove the eol character from the source. This is how i do it, $line = qx/uptime/; # to chop the trailing newline chomp $line; -- 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 RRDTOO monitoring cpu loadavg needed!
On Sat, Sep 03, 2005 at 08:19:09AM +0900, CHEW YEW CHOONG wrote: Im learning perl and rrdtool now. I try to make rrdtool to monitoring cpu loadavg. Everythings seems working (rrd db created, updated, rrd images created, updated. i check with doing a ls -l and compare the timestamp on those files). However, the is only one problem that screw the whole things -- the graph is blank wiht no line :( When a RRD is updated, it could be that you updated with the NaN (or: Unknown) value. That would show up as an empty line. However, since you are using GAUGE that is unlikely. DS:1min:GAUGE:600:U:U, DS:5min:GAUGE:600:U:U, DS:15min:GAUGE:600:U:U, You set your heartbeat to 600 seconds. That's ten minutes. This is OK, provided that you update multiple times, each no more than 600 seconds apart. Your step time was 300 seconds so your plan is to update every 300 seconds. Those updates are expected to be 300 seconds apart but MUST NOT be more than 600 seconds apart. RRDs::update $rrd/cpu.rrd, -t, 1min:5min:15min, N:$min1:$min5:$min15; That `` -t, 1min:5min:15min, '' is OK but redundant. You should add some debugging to your script and do the computations you expect RRDtool to make by hand. Print those values you are going to give to RRDtool into a file, together with current time (in seconds since unix epoch would be best for easy monitoring). Perhaps $min1, $min5 and/or $min15 are not what you think. Use other available commands to help you figure out what is going on. rrdtool info and rrdtool dump may be of help here. Alex -- 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 RRDTOO monitoring cpu loadavg needed!
Hi Alex, Thanks for the comment and suggestion. As im very to rrdtool and perl, it will take me sometimes to learn how to print those figure to file with timestamp and the computing part. Anyway, i have add a few lines into the script: my $total = $min1 + $min5 + $min15; print $min1 $min5 $min15\n; print $total\n; print $min1; print $min5; print $min15; print update database\n; RRDs::update $rrd/cpu.rrd, #-t, 1min:5min:15min, N:$min1:$min5:$min15; The result show on screes: 0.33 this 3 lines from 0.49 print $min1 $min5 $min15\n; 0.48 strange on the line break and space. 1.3 from print $total\n; 0.33 from print $min1; 0.49 from print $min5; 0.48 from print $min15; Output from rrdtool info cpu.rrd: filename = cpu.rrd rrd_version = 0003 step = 60 last_update = 1125738720 ds[1min].type = GAUGE ds[1min].minimal_heartbeat = 600 ds[1min].min = 0.00e+00 ds[1min].max = NaN ds[1min].last_ds = UNKN ds[1min].value = 0.00e+00 ds[1min].unknown_sec = 0 ds[5min].type = GAUGE ds[5min].minimal_heartbeat = 600 ds[5min].min = 0.00e+00 ds[5min].max = NaN ds[5min].last_ds = UNKN ds[5min].value = 0.00e+00 ds[5min].unknown_sec = 0 ds[15min].type = GAUGE ds[15min].minimal_heartbeat = 600 ds[15min].min = 0.00e+00 ds[15min].max = NaN ds[15min].last_ds = UNKN ds[15min].value = 0.00e+00 ds[15min].unknown_sec = 0 rra[0].cf = AVERAGE rra[0].rows = 576 rra[0].pdp_per_row = 1 rra[0].xff = 5.00e-01 rra[0].cdp_prep[0].value = NaN rra[0].cdp_prep[0].unknown_datapoints = 0 rra[0].cdp_prep[1].value = NaN rra[0].cdp_prep[1].unknown_datapoints = 0 rra[0].cdp_prep[2].value = NaN rra[0].cdp_prep[2].unknown_datapoints = 0 rra[1].cf = AVERAGE rra[1].rows = 672 rra[1].pdp_per_row = 10 rra[1].xff = 5.00e-01 rra[1].cdp_prep[0].value = NaN rra[1].cdp_prep[0].unknown_datapoints = 2 rra[1].cdp_prep[1].value = NaN rra[1].cdp_prep[1].unknown_datapoints = 2 rra[1].cdp_prep[2].value = NaN rra[1].cdp_prep[2].unknown_datapoints = 2 rra[2].cf = AVERAGE rra[2].rows = 732 rra[2].pdp_per_row = 60 rra[2].xff = 5.00e-01 rra[2].cdp_prep[0].value = 0.00e+00 rra[2].cdp_prep[0].unknown_datapoints = 12 rra[2].cdp_prep[1].value = 0.00e+00 rra[2].cdp_prep[1].unknown_datapoints = 12 rra[2].cdp_prep[2].value = 0.00e+00 rra[2].cdp_prep[2].unknown_datapoints = 12 rra[3].cf = AVERAGE rra[3].rows = 1460 rra[3].pdp_per_row = 1440 rra[3].xff = 5.00e-01 rra[3].cdp_prep[0].value = 0.00e+00 rra[3].cdp_prep[0].unknown_datapoints = 532 rra[3].cdp_prep[1].value = 0.00e+00 rra[3].cdp_prep[1].unknown_datapoints = 532 rra[3].cdp_prep[2].value = 0.00e+00 rra[3].cdp_prep[2].unknown_datapoints = 532 I dont understand why all value is either 0 or NaN or UNKN. This must be the reason why lines are not drawing. And when i do a rrdtool dump cpu.rrd, most of the lines display on screen are as below: !-- 2005-08-08 09:00:00 JST / 1123459200 -- rowv NaN /vv NaN /vv NaN /v/row !-- 2005-08-09 09:00:00 JST / 1123545600 -- rowv NaN /vv NaN /vv NaN /v/row !-- 2005-08-10 09:00:00 JST / 1123632000 -- rowv NaN /vv NaN /vv NaN /v/row !-- 2005-08-11 09:00:00 JST / 1123718400 -- rowv NaN /vv NaN /vv NaN /v/row Please help. Thanks. Alex van den Bogaerdt wrote: On Sat, Sep 03, 2005 at 08:19:09AM +0900, CHEW縲YEW縲CHOONG wrote: Im learning perl and rrdtool now. I try to make rrdtool to monitoring cpu loadavg. Everythings seems working (rrd db created, updated, rrd images created, updated. i check with doing a ls -l and compare the timestamp on those files). However, the is only one problem that screw the whole things -- the graph is blank wiht no line :( When a RRD is updated, it could be that you updated with the NaN (or: Unknown) value. That would show up as an empty line. However, since you are using GAUGE that is unlikely. DS:1min:GAUGE:600:U:U, DS:5min:GAUGE:600:U:U, DS:15min:GAUGE:600:U:U, You set your heartbeat to 600 seconds. That's ten minutes. This is OK, provided that you update multiple times, each no more than 600 seconds apart. Your step time was 300 seconds so your plan is to update every 300 seconds. Those updates are expected to be 300 seconds apart but MUST NOT be more than 600 seconds apart. RRDs::update $rrd/cpu.rrd, -t, 1min:5min:15min, N:$min1:$min5:$min15; That `` -t, 1min:5min:15min, '' is OK but redundant. You should add some debugging to your script and do the computations you expect RRDtool to make by hand. Print those values you are going to give to RRDtool into a file, together with current time (in seconds since unix epoch would be best for easy monitoring).
[rrd-users] Re: Help on RRDTOO monitoring cpu loadavg needed!
On Sat, Sep 03, 2005 at 06:31:10PM +0900, CHEW YEW CHOONG wrote: Thanks for the comment and suggestion. As im very to rrdtool and perl, it will take me sometimes to learn how to print those figure to file with timestamp and the computing part. Perhaps you should learn one thing at a time? The result show on screes: 0.33 this 3 lines from 0.49 print $min1 $min5 $min15\n; 0.48 strange on the line break and space. There you have it. Unexpected values in those variables; perhaps RRDtool has a problem with it. Concentrate on that problem first. You want numbers and numbers ONLY. Maybe strip or a similar perl command helps. Don't even look at RRDtool until you have that input as it should be. Write the input to a file and look at that file with a program that allows you to view byte per byte. On unix that would be od, I don't know a similar command on dos. Most likely a perl program exists or can be written with little effort. Only when the input is _exactly_ like you need it to be, continue with debugging rrdtool. Chances are there's nothing left to debug. And when i do a rrdtool dump cpu.rrd, most of the lines display on screen are as below: !-- 2005-08-08 09:00:00 JST / 1123459200 -- rowv NaN /vv NaN /vv NaN /v/row !-- 2005-08-09 09:00:00 JST / 1123545600 -- rowv NaN /vv NaN /vv NaN /v/row !-- 2005-08-10 09:00:00 JST / 1123632000 -- rowv NaN /vv NaN /vv NaN /v/row !-- 2005-08-11 09:00:00 JST / 1123718400 -- rowv NaN /vv NaN /vv NaN /v/row Find the most recent time stamps. When you setup a new database, all those lines will be NaN (by design). When you enter data into the database, those values are replaced including time stamps. You only need to look at time 1125741000 and later. Alex -- 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 with librrd_th
well in my case i compiled rrdtool from source and it installed as a library AND a program, the headers are in /usr/include or /usr/local/include. most of the functions don't need alot in the way of args. you pass them an int of how many args and a char ** array of the args ie: argc, argv. like you ran it from the command line. however the graph function is different and you should dig up some usage of it to see what they did. the newer versions of rrdtool use a file pointer and i am not sure what they did yet. On Fri, 2005-07-29 at 19:18 +0100, Kevin C. wrote: Stephen Hall writes: Can someone tell me how to call rrd_get_context() and interpret the results. Or better yet, can someone point me to a document that explains how to use the C API (multi-threaded or otherwise)? Since the silence on this topic was deafening I conclude that this stuff is simply not documented at all. I suppose that if it was hard to write it should be even harder to use. Thanks anyway. I want to use rrdtool in C/C++. Would love to help create some sort of bindings or do something with the rrdtool source code. I had a look through the rrdtool.h header files, etc. I guess one would use the header files for the functions, and then link in the librrdtool or librrd_th. All the functions are in the header files... even though there's quite a lot of 'em. -- Unsubscribe mailto:[EMAIL PROTECTED] Helpmailto:[EMAIL PROTECTED] Archive http://lists.ee.ethz.ch/rrd-users WebAdminhttp://lists.ee.ethz.ch/lsg2.cgi -- 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 with librrd_th
Stephen Hall writes: Can someone tell me how to call rrd_get_context() and interpret the results. Or better yet, can someone point me to a document that explains how to use the C API (multi-threaded or otherwise)? Since the silence on this topic was deafening I conclude that this stuff is simply not documented at all. I suppose that if it was hard to write it should be even harder to use. Thanks anyway. == --Stephen Hall ma_bellnet: (512)835-3074 Sr. Operating Systems Specialistinternet: [EMAIL PROTECTED] When I die I want to go peacefully. Like my grandfather did, in his sleep. Not screaming like the passengers in his car. Visualize Whirled Peas! -- 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 with librrd_th
Stephen Hall writes: Can someone tell me how to call rrd_get_context() and interpret the results. Or better yet, can someone point me to a document that explains how to use the C API (multi-threaded or otherwise)? Since the silence on this topic was deafening I conclude that this stuff is simply not documented at all. I suppose that if it was hard to write it should be even harder to use. Thanks anyway. I want to use rrdtool in C/C++. Would love to help create some sort of bindings or do something with the rrdtool source code. I had a look through the rrdtool.h header files, etc. I guess one would use the header files for the functions, and then link in the librrdtool or librrd_th. All the functions are in the header files... even though there's quite a lot of 'em. -- 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 with Libraries....
I have done what Kalin has said, there error message has now got a bit smaller! :o) [EMAIL PROTECTED] perl-shared]# /var/rrd/scripts/rrd_load_graph.pl Can't load '/usr/lib/perl5/site_perl/5.8.5/i386-linux-thread-multi/auto/RRDs/RRDs.so' for module RRDs: librrd.so.2: cannot open shared object file: No such file or directory at /usr/lib/perl5/5.8.5/i386-linux-thread-multi/DynaLoader.pm line 230. at /var/rrd/scripts/rrd_load_graph.pl line 5 Compilation failed in require at /var/rrd/scripts/rrd_load_graph.pl line 5. BEGIN failed--compilation aborted at /var/rrd/scripts/rrd_load_graph.pl line 5. -- 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 listing available DEF fields
rddtool info returned me the data below, can you give me a sample command to use xport to retrieve the data in this file? I couldn't imagine how to find a DEF parameter for this info. Here's one for example: rrdtool xport \ --start now-1h --end now \ DEF:xx=172.20.254.1_1.rrd:ds0:AVERAGE \ DEF:yy=172.20.254.1_1.rrd:ds1:AVERAGE \ XPORT:xx:out bytes \ XPORT:yy:in bytes Serge. - Op de inhoud van dit e-mailbericht en de daaraan gehechte bijlagen is de inhoud van de volgende disclaimer van toepassing: http://www.zeelandnet.nl/disclaimer.php - For the content of this e-mail message and its attachment(s) the following disclaimer applies: http://www.zeelandnet.nl/disclaimer.php -- 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 listing available DEF fields
Is there any way to list all available fields in RRD database? Yes, rrdtool info file.rrd | grep type Serge. - Op de inhoud van dit e-mailbericht en de daaraan gehechte bijlagen is de inhoud van de volgende disclaimer van toepassing: http://www.zeelandnet.nl/disclaimer.php - For the content of this e-mail message and its attachment(s) the following disclaimer applies: http://www.zeelandnet.nl/disclaimer.php -- 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 listing available DEF fields
On Thu, Apr 14, 2005 at 04:40:09PM +0200, Serge Maandag wrote: Is there any way to list all available fields in RRD database? Yes, rrdtool info file.rrd | grep type Serge. Thanks for your answers. Now another related question, I hope this is the last one :-) rddtool info returned me the data below, can you give me a sample command to use xport to retrieve the data in this file? I couldn't imagine how to find a DEF parameter for this info. Thanks, Pedro filename = 172.20.254.1_1.rrd rrd_version = 0001 step = 300 last_update = 1113490960 ds[ds0].type = COUNTER ds[ds0].minimal_heartbeat = 600 ds[ds0].min = 0.00e+00 ds[ds0].max = 7.60e+04 ds[ds0].last_ds = 1854409829 ds[ds0].value = 4.44e+04 ds[ds0].unknown_sec = 0 ds[ds1].type = COUNTER ds[ds1].minimal_heartbeat = 600 ds[ds1].min = 0.00e+00 ds[ds1].max = 7.60e+04 cut rra[0].cf = AVERAGE rra[0].rows = 800 rra[0].pdp_per_row = 1 rra[0].xff = 5.00e-01 rra[0].cdp_prep[0].value = NaN rra[0].cdp_prep[0].unknown_datapoints = 0 rra[0].cdp_prep[1].value = NaN rra[0].cdp_prep[1].unknown_datapoints = 0 rra[1].cf = AVERAGE rra[1].rows = 800 rra[1].pdp_per_row = 6 rra[1].xff = 5.00e-01 cut (rra goes up to rra[6]) -- 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 a new and slightly lost user! :(
On Sat, Nov 13, 2004 at 10:20:09AM +, Michael Thompson wrote: Sorry, I just read that message and realised it does not make any sense! Indeed, it does not work is a bit too vague What is happening is that it is logging data, but it is logging the verticle scale as k, it needs to show the difference in packets between each reading, and not have any m k or any other symbols apart from the amounts. You already understand GAUGE may not be the best counter type. The difference between each reading is not something you want to use rrdtool for. For these kind of applications you should choose sql, access, or even a flat file. If you want to see a rate, an amount of rejects per second, then rrdtool is the tool to use. As with any other counter, let rrdtool do the calculations for you. Either counter or derive should do. But that prints m on the GPRINT lines, and I am not sure of how to get rid. I am also not entirly sure of the accuracy of the results. RTFM rrdgraph, stuff about units-exponent HTH Alex -- You want an answer? You'd better follow the following guidelines! Linesize well below 80 chars. Reply to the list, not to me. Trim irrelevant lines. Reply _below_ the relevant lines, not on top. -- Unsubscribe mailto:[EMAIL PROTECTED] Helpmailto:[EMAIL PROTECTED] Archive http://www.ee.ethz.ch/~slist/rrd-users WebAdminhttp://www.ee.ethz.ch/~slist/lsg2.cgi
[rrd-users] Re: Help a new and slightly lost user! :(
On Sunday 14 November 2004 19:20, Alex van den Bogaerdt wrote: On Sat, Nov 13, 2004 at 10:20:09AM +, Michael Thompson wrote: Sorry, I just read that message and realised it does not make any sense! Indeed, it does not work is a bit too vague What is happening is that it is logging data, but it is logging the verticle scale as k, it needs to show the difference in packets between each reading, and not have any m k or any other symbols apart from the amounts. You already understand GAUGE may not be the best counter type. Umm, I have used Counter and DERIVE, yet it still dos'nt get the data right. The difference between each reading is not something you want to use rrdtool for. For these kind of applications you should choose sql, access, or even a flat file. Is that not what DERIVE Should do? If you want to see a rate, an amount of rejects per second, then rrdtool is the tool to use. That is exactly what I am trying to do, but accuracy is important. RTFM rrdgraph, stuff about units-exponent I have RTFM, and the units-exponent is'nt helping. It is the accuracy that I need help with. I have the following Perl Script Code: #!/usr/bin/perl use RRDs; # define location of rrdtool databases my $rrd = '/var/lib/rrd'; # define location of images my $img = '/var/www/localhost/htdocs/temp/'; ProcessChain(DROP-INPUT, Input Chain Drops); ProcessChain(DROP-FORWARD,Forward Chain Drops); sub ProcessChain { # process interface # inputs: $_[0]: Chain Name # $_[1]: Chain Description # get info my $in = `/sbin/iptables -L $_[0] -v | grep LOG | awk '{print \$1}'`; #my $out =`/sbin/iptables -L $_[0] -v | grep LOG | awk '{print \$2}'`; # remove eol chars chomp($in); print $_[0] packets in: $in\n; # if rrdtool database doesn't exist, create it if (! -e $rrd/$_[0].rrd) { print creating rrd database for $_[0]...\n; RRDs::create $rrd/$_[0].rrd, -s 300, DS:drop:DERIVE:600:0:1250, RRA:AVERAGE:0.5:1:576, RRA:AVERAGE:0.5:6:672, RRA:AVERAGE:0.5:24:732, RRA:AVERAGE:0.5:144:1460; } # insert values into rrd RRDs::update $rrd/$_[0].rrd, -t, drop, N:$in; # create traffic graphs CreateGraph($_[0], day, $_[1]); CreateGraph($_[0], week, $_[1]); CreateGraph($_[0], month, $_[1]); CreateGraph($_[0], year, $_[1]); } sub CreateGraph { # creates graph # inputs: $_[0]: Chain Name # $_[1]: interval (ie, day, week, month, year) # $_[2]: Chain Description RRDs::graph $img/$_[0]-$_[1].png, -s -1$_[1], -t $_[0] :: $_[2], # --lazy, -h, 80, -w, 600, -l 0, -a, PNG, -v Packets, DEF:drop=$rrd/$_[0].rrd:drop:AVERAGE, CDEF:dropav=drop,3600,*, AREA:dropav#32CD32:Dropped Packets, LINE1:dropav#336600, GPRINT:dropav:MAX: Max\\: %5.0lf %s, GPRINT:dropav:AVERAGE: Avg\\: %5.1lf %S, GPRINT:dropav:LAST: Current\\: %5.0lf %SPackets, HRULE:0#00; if ($ERROR = RRDs::error) { print $0: unable to generate $_[0] $_[1] traffic graph: $ERR$ } Now this _does_ work, with one problem, the values are all wrong. The graph looks like this http://mains.bounceme.net/DROP-INPUT-day.png As you can see, the current value is 12, however the command returns 4. So where is it getting the value of 12? Could it be the fact that I am storing the Average value in the RRD? I have several other scripts that are virtually the same and they all return the correct values. HTH Alex -- Unsubscribe mailto:[EMAIL PROTECTED] Helpmailto:[EMAIL PROTECTED] Archive http://www.ee.ethz.ch/~slist/rrd-users WebAdminhttp://www.ee.ethz.ch/~slist/lsg2.cgi
[rrd-users] Re: Help a new and slightly lost user! :(
On Sun, Nov 14, 2004 at 07:40:02PM +, Michael Thompson wrote: The difference between each reading is not something you want to use rrdtool for. For these kind of applications you should choose sql, access, or even a flat file. Is that not what DERIVE Should do? Yes, that is not what derive should do. ***EVERYTHING*** is a rate as far as rrdtool is concerned. counter,derive,gauge determine how to transform the input into a rate. If you want to see a rate, an amount of rejects per second, then rrdtool is the tool to use. That is exactly what I am trying to do, but accuracy is important. RTFM rrdgraph, stuff about units-exponent I have RTFM, and the units-exponent is'nt helping. It is the accuracy that I need help with. No, it was m and k and such that you also wanted help with. If you remove context from a quote, please also remove my answers. I have the following Perl Script snip If you really expect me to debug your program, please hire me. Now this _does_ work, with one problem, the values are all wrong. The values are probably all right. Your interpretation is all wrong. Alex -- You want an answer? You'd better follow the following guidelines! Linesize well below 80 chars. Reply to the list, not to me. Trim irrelevant lines. Reply _below_ the relevant lines, not on top. -- Unsubscribe mailto:[EMAIL PROTECTED] Helpmailto:[EMAIL PROTECTED] Archive http://www.ee.ethz.ch/~slist/rrd-users WebAdminhttp://www.ee.ethz.ch/~slist/lsg2.cgi
[rrd-users] Re: Help a new and slightly lost user! :(
On Sunday 14 November 2004 19:52, Alex van den Bogaerdt wrote: If you really expect me to debug your program, please hire me. I dont expect anything. Just a newbie looking for help.. ps. Dont beg. -- Unsubscribe mailto:[EMAIL PROTECTED] Helpmailto:[EMAIL PROTECTED] Archive http://www.ee.ethz.ch/~slist/rrd-users WebAdminhttp://www.ee.ethz.ch/~slist/lsg2.cgi
[rrd-users] Re: Help a new and slightly lost user! :(
On Saturday 13 November 2004 09:50, Michael Thompson wrote: Sorry, I just read that message and realised it does not make any sense! What is happening is that it is logging data, but it is logging the verticle scale as k, it needs to show the difference in packets between each reading, and not have any m k or any other symbols apart from the amounts. I did come up with the following code: # if rrdtool database doesn't exist, create it if (! -e $rrd/$_[0].rrd) { print creating rrd database for $_[0]..\n; RRDs::create $rrd/$_[0].rrd, -s 300, DS:drop:DERIVE:600:0:1250, RRA:AVERAGE:0.5:1:576, RRA:AVERAGE:0.5:6:672, RRA:AVERAGE:0.5:24:732, RRA:AVERAGE:0.5:144:1460; } # insert values into rrd RRDs::update $rrd/$_[0].rrd, -t, in, N:$in; # create traffic graphs CreateGraph($_[0], day, $_[1]); CreateGraph($_[0], week, $_[1]); CreateGraph($_[0], month, $_[1]); CreateGraph($_[0], year, $_[1]); } sub CreateGraph { # creates graph RRDs::graph $img/$_[0]-$_[1].png, -s -1$_[1], -t traffic on $_[0] :: $_[2], --lazy, -h, 80, -w, 600, -l 0, -a, PNG, -v bytes/sec, DEF:drop=$rrd/$_[0].rrd:drop:AVERAGE, AREA:drop#32CD32:Incoming, LINE1:drop#336600, GPRINT:drop:MAX: Max\\: %5.1lf %s, GPRINT:drop:AVERAGE: Avg\\: %5.1lf %S, GPRINT:drop:LAST: Current\\: %5.1lf %Sbytes/sec\\n, HRULE:0#00; if ($ERROR = RRDs::error) { print $0: unable to generate $_[0] $_[1] traffic graph: $ERROR\n; } } But that prints m on the GPRINT lines, and I am not sure of how to get rid. I am also not entirly sure of the accuracy of the results. Any thoughts?? Many Thanks for your time Michael -- Unsubscribe mailto:[EMAIL PROTECTED] Helpmailto:[EMAIL PROTECTED] Archive http://www.ee.ethz.ch/~slist/rrd-users WebAdminhttp://www.ee.ethz.ch/~slist/lsg2.cgi
[rrd-users] Re: help with cdef
On Sat, Aug 14, 2004 at 10:20:16AM -0700, winkey wrote: i cannot seem to figure this out, i get results i do not expect rrdtool graph \ /home/rush/public_html/weather/metar/dir.gif \ --color=BACK#CC \ --color=CANVAS#CC \ --title=Daily Wind Direction \ --width=300 \ DEF:dir=/home/rush/public_html/weather/metar/weather.rrd:winddir:AVERAGE \ DEF:speed=/home/rush/public_html/weather/metar/weather.rrd:windspeed:AVERAGE \ CDEF:calm=speed,0,EQ \ CDEF:mydir=calm,UNKN,dir,IF \ LINE2:mydir#00a000:Degrees basicly if speed is zero i want an unknown value for direction but i seem to be ending up with unknowns for speeds greater than zero and other anomolys EQ gives a boolean as result. calm=speed,0,EQ results in: if speed==0 then return true else return false Next you are using that boolean in an if-then-else: if calm then return UNKN else return direction The end result will be: if (speed==0) then return unknown else return direction. This matches what you expect. If the result is not what you expect, most likely the input is not what you think it is. HTH Alex -- Unsubscribe mailto:[EMAIL PROTECTED] Helpmailto:[EMAIL PROTECTED] Archive http://www.ee.ethz.ch/~slist/rrd-users WebAdminhttp://www.ee.ethz.ch/~slist/lsg2.cgi
[rrd-users] Re: Help on rrdtool cmd_head3
While compiling rrdtool I get this error. Can some one guide me what does it means? Can't locate object method cmd_head3 via package Pod::Man at /usr/local/lib/perl5/5.6.0/Pod/Man.pm line 463, GEN0 line 225. make[1]: *** [rrd-beginners.1] Error 255 Thanks Manoj Koshti CCIE 13142, CCIP -- Unsubscribe mailto:[EMAIL PROTECTED] Helpmailto:[EMAIL PROTECTED] Archive http://www.ee.ethz.ch/~slist/rrd-users WebAdminhttp://www.ee.ethz.ch/~slist/lsg2.cgi
[rrd-users] Re: help with GAUGE and RRAs
On Sun, 1 Aug 2004, M. Yu wrote: I need to monitor, among other things, the Signal-to-Noise Ratio (SNR) of several cable modems to get an accurate picture of the health of the cable plant. Since I will be monitoring 100s of cable modems (CMs) and each CM's SNR values will be stored for a period of 1 year max, I was thinking of using RRD instead of mySQL to store these values. Frankly, I think a SQL database may be better suited for your application. You need to store information with a level of detail that does not fit well in RRD if my interpretation is right. It will surely not fit the detail level you did describe. Hugo. -- All email sent to me is bound to the rules described on my homepage. [EMAIL PROTECTED] http://hvdkooij.xs4all.nl/ Don't meddle in the affairs of sysadmins, for they are subtle and quick to anger. -- Unsubscribe mailto:[EMAIL PROTECTED] Helpmailto:[EMAIL PROTECTED] Archive http://www.ee.ethz.ch/~slist/rrd-users WebAdminhttp://www.ee.ethz.ch/~slist/lsg2.cgi
[rrd-users] Re: help with graph issue
Hello, But would like the graphs it produces to be filled in below , like MRTG graphs are. You must use AREA (and STACK) on place LINE. See http://people.ee.ethz.ch/~oetiker/webtools/rrdtool/manual/rrdgraph.html I thought the setting '--alt-y-mrtg' did that but I seem to get an error when thats placed in the 'rrdtool graph' command line. This option only alternatively computes Y axis. This option is relatively new and was not in older RRDTool versions. Best regards, Pavel Ruzicka -- Unsubscribe mailto:[EMAIL PROTECTED] Helpmailto:[EMAIL PROTECTED] Archive http://www.ee.ethz.ch/~slist/rrd-users WebAdminhttp://www.ee.ethz.ch/~slist/lsg2.cgi
[rrd-users] Re: help a newbie pls
this is what i typed on cmd prompt: rrdtool graph c:\test.png -s 1077529905 -e 1077530205 -t Test def:xx=c:\mrtghtml\log\10.0.0.1_1.rrd:ds0:average def:yy=c:\mrtghtml\log\10.0.0.1_1.rrd:ds1:average and the error message is: ERROR: can't parse 'def:xx=c:\mtrghtml\log\10.0.0.1_1.rrd:ds0:average' The mrtg config file worked perfectly until i implemented rrd tool, It had the following: Htmldir: c:\mrtghtml Imagedir: c:\mrtghtml\img Logdir: c:\mrtghtml\log RunAsDaemon: Yes Interval:5 --- and, of course the targets i wanted to monitor --- After implementing rrd, I added : pathadd: c:\rrdtool\bin libadd: c:\rrdtool\perl-shared logformat: rrdtool When I try to dump the info of a rrd file into a .xml, no .xml file is created... Maybe I did not implement rrd tool corectly, or I used the wrong distribution pack - Original Message - From: Martin Horak [EMAIL PROTECTED] To: Ionescu Ionut [EMAIL PROTECTED] Sent: Monday, February 23, 2004 11:32 AM Subject: Re: [rrd-users] help a newbie pls Try to copy paste your configuration files and error messages you get into your message... Ionescu Ionut wrote: Anyway... I've succeeeded in making rrd files for the device I was trying to monitor... However when I try to graph anything, I always get errors (like: can't parse). All I want to do is to generate on-demand grahps regarding the traffic flow for a given period of time... bits in and bits out for a specific interface.. nothing more. Please, help me and thank you in advance -- Unsubscribe mailto:[EMAIL PROTECTED] Helpmailto:[EMAIL PROTECTED] Archive http://www.ee.ethz.ch/~slist/rrd-users WebAdminhttp://www.ee.ethz.ch/~slist/lsg2.cgi
[rrd-users] Re: help a newbie pls
I apologize It seems that my problem is not the use of graph feature from rrd tool. So i'm gonna put here all the steps i took since i started using mrtg rrd tool 0. use Win2k 1. download install perl (ActivePerl-5.8.2.808-MSWin32-x86.msi) 2. download mrtg (mrtg-2.10.13.zip) 3. use cfgmaker to make a config file 4. use mrtg to graph traffic --- until now everything works perfectly --- 5. download rrdtool (rrdtool-1.0.40.x86distr.zip-5.8.zip) 6. go to 'perl-shared' folder of rrdtool and run the following: ppm install rrds.ppd 7. go to my config file and add: - workdir: c:\rrdtool\rrds // 'rrds' folder created by me - pathadd: c:\rrdtool\bin // the 'bin' folder did not exist (as the guide i was reading said it would) so i created it and copied here the .exe's from 'src' folder - libadd: c:\rrdtool\perl-shared - logformat: rrdtool 8. run mrtg again with the updated config file --- now, the fun part --- 9. at this point, the following happens: - the graph and html generation stops (that's normal) - .rdd files are created for every target i monitor in my 'rrds' folder (about 100KB each; did not modify them in any way) - however, they don't seem to update... (when I run 'rrdtool info' for any one of my rrd's, the 'last_update field' doesn't change its value, even though i ran info several times - 5 to 10 minutes apart) - so, it's only logical to have errors when i try to graph something out of nothing (?) This is my current status i don't know what else to do, as most docs and info are for unix users :( ...help...please...10x - Original Message - From: Alex van den Bogaerdt [EMAIL PROTECTED] To: rrd-users@list.ee.ethz.ch Sent: Monday, February 23, 2004 4:20 PM Subject: [rrd-users] Re: help a newbie pls On Mon, Feb 23, 2004 at 03:10:25PM +0100, Martin Horak wrote: My simplest command: rrdtool graph test.png -s now-10h -e now DEF:a='/var/www/data/rrd/routersce0.rrd':s1in:AVERAGE LINE1:a#ff I can beat that :) I'm not entirely sure about the short form of the colour. Path to png and to rrd can be changed as needed. Multiply the DEF and LINE statements for ds1 if desired rrdtool graph test.png DEF:i=routersce0.rrd:ds0:AVERAGE LINE1:i#f00 cheers, Alex -- -- Unsubscribe mailto:[EMAIL PROTECTED] Helpmailto:[EMAIL PROTECTED] Archive http://www.ee.ethz.ch/~slist/rrd-users WebAdminhttp://www.ee.ethz.ch/~slist/lsg2.cgi
[rrd-users] Re: help a newbie pls
On Mon, Feb 23, 2004 at 05:14:46PM +0200, Ionescu Ionut wrote: So i'm gonna put here all the steps i took since i started using mrtg rrd tool 0. use Win2k 1. download install perl (ActivePerl-5.8.2.808-MSWin32-x86.msi) 2. download mrtg (mrtg-2.10.13.zip) 3. use cfgmaker to make a config file 4. use mrtg to graph traffic --- until now everything works perfectly --- 5. download rrdtool (rrdtool-1.0.40.x86distr.zip-5.8.zip) 6. go to 'perl-shared' folder of rrdtool and run the following: ppm install rrds.ppd 7. go to my config file and add: - workdir: c:\rrdtool\rrds // 'rrds' folder created by me - pathadd: c:\rrdtool\bin // the 'bin' folder did not exist (as the guide i was reading said it would) so i created it and copied here the .exe's from 'src' folder Try one of the following methods to write your paths: workdir: C\:\\rrdtool\\rrds workdir: C\:/rrdtool/rrds same for other paths. Perl is processing C:\rrdtool\rrds into C:rrdtoolrrds which is a dir that does not exist. RRDtool will probably have problems with : (in C:) as this is a separator inside the command: DEF:xyz=C:\rrdtool\rrds/file.rrd:name:AVERAGE will be processed into: DEF:xyz=C:rrdtoolrrds/file.rrd:name:AVERAGE and RRDtool is looking for the datasource named rrdtoolrrds/file.rrd in file C, looking for names in stead of AVERAGEs Alex -- Unsubscribe mailto:[EMAIL PROTECTED] Helpmailto:[EMAIL PROTECTED] Archive http://www.ee.ethz.ch/~slist/rrd-users WebAdminhttp://www.ee.ethz.ch/~slist/lsg2.cgi
[rrd-users] Re: HELP needed in Problem while compiling RRD on SOLARIS 8
Hi, Yah it does exist in the same directory as the make file is using and that directory is also specified in PATH .Actually if i execute the following command diectly i get the same message that means that the only issue is with cc itself and i need to find out what language optional package is not installed or how can i make my MAKEFILE to use gcc rather than cc. /usr/ucb/cc /usr/ucb/cc: language optional software package not installed Thanx Regards Tanveer - Original Message - From: Dave Lugo [EMAIL PROTECTED] To: rrd-users@list.ee.ethz.ch Sent: Sunday, January 18, 2004 7:15 AM Subject: [rrd-users] Re: HELP needed in Problem while compiling RRD on SOLARIS 8 On Sun, 18 Jan 2004, Tanveer Ahmad Dar wrote: I have Solaris 8 and i am trying to compile RRD but getting some strange error couldn't find the clue Can anyone help me out in this .While i do make to RRD i get an error message saying as below in Bold: cc -c -I../src -I../gd1.3 -xO3 -xdepend -DVERSION=\1.000371\ -DXS_VERSION=\1.000371\ -KPIC -I/usr/perl5/5.00503/sun4-solaris/CORE -DPERLPATCHLEVEL=5 RRDs.c /usr/ucb/cc: language optional software package not installed *** Error code 1 ~--~ Now please can anyone tell which optional Language package i need to istall to compile my RRD correctly.any kinda help will be very much appreciated Does /usr/ucb/cc exist on your system? I suspect the makefile is trying to call the Solaris C compiler, not gcc. -- Dave Lugo [EMAIL PROTECTED]LC Unit #260 TINLC Have you hugged your firewall today? No spam, thanks. Are you the police? . . . . No ma'am, we're sysadmins. -- Unsubscribe mailto:[EMAIL PROTECTED] Helpmailto:[EMAIL PROTECTED] Archive http://www.ee.ethz.ch/~slist/rrd-users WebAdminhttp://www.ee.ethz.ch/~slist/lsg2.cgi -- Unsubscribe mailto:[EMAIL PROTECTED] Helpmailto:[EMAIL PROTECTED] Archive http://www.ee.ethz.ch/~slist/rrd-users WebAdminhttp://www.ee.ethz.ch/~slist/lsg2.cgi
[rrd-users] Re: HELP needed in Problem while compiling RRD on SOLARIS 8
On Sun, 18 Jan 2004, Tanveer Ahmad Dar wrote: Hi, Yah it does exist in the same directory as the make file is using and that directory is also specified in PATH .Actually if i execute the following command diectly i get the same message that means that the only issue is with cc itself and i need to find out what language optional package is not installed or how can i make my MAKEFILE to use gcc rather than cc. /usr/ucb/cc /usr/ucb/cc: language optional software package not installed Ugh - yes, you're correct. Have you tried specifying the environment variable 'CC', as mentioned in `configure --help` ? Regards, Dave -- Dave Lugo [EMAIL PROTECTED]LC Unit #260 TINLC Have you hugged your firewall today? No spam, thanks. Are you the police? . . . . No ma'am, we're sysadmins. -- Unsubscribe mailto:[EMAIL PROTECTED] Helpmailto:[EMAIL PROTECTED] Archive http://www.ee.ethz.ch/~slist/rrd-users WebAdminhttp://www.ee.ethz.ch/~slist/lsg2.cgi
[rrd-users] Re: HELP needed in Problem while compiling RRD on SOLARIS 8
Hi again, No i havent specified that but how would we do that as i dont find CC in help . can you gimme any clue on that .thanx Regards Tanveer - Original Message - From: Dave Lugo [EMAIL PROTECTED] To: Tanveer Ahmad Dar [EMAIL PROTECTED] Cc: rrd-users@list.ee.ethz.ch Sent: Sunday, January 18, 2004 7:56 AM Subject: Re: [rrd-users] Re: HELP needed in Problem while compiling RRD on SOLARIS 8 On Sun, 18 Jan 2004, Tanveer Ahmad Dar wrote: Hi, Yah it does exist in the same directory as the make file is using and that directory is also specified in PATH .Actually if i execute the following command diectly i get the same message that means that the only issue is with cc itself and i need to find out what language optional package is not installed or how can i make my MAKEFILE to use gcc rather than cc. /usr/ucb/cc /usr/ucb/cc: language optional software package not installed Ugh - yes, you're correct. Have you tried specifying the environment variable 'CC', as mentioned in `configure --help` ? Regards, Dave -- Dave Lugo [EMAIL PROTECTED]LC Unit #260 TINLC Have you hugged your firewall today? No spam, thanks. Are you the police? . . . . No ma'am, we're sysadmins. -- Unsubscribe mailto:[EMAIL PROTECTED] Helpmailto:[EMAIL PROTECTED] Archive http://www.ee.ethz.ch/~slist/rrd-users WebAdminhttp://www.ee.ethz.ch/~slist/lsg2.cgi
[rrd-users] Re: HELP needed in Problem while compiling RRD on SOLARIS 8
On Sun, 18 Jan 2004, Tanveer Ahmad Dar wrote: Hi again, No i havent specified that but how would we do that as i dont find CC in help . can you gimme any clue on that .thanx It depends what shell you use. for csh and tcsh, I think you'd say: setenv CC /path/to/gcc for sh/bash/ksh, try: CC=/path/to/gcc export CC Regards, Dave -- Dave Lugo [EMAIL PROTECTED]LC Unit #260 TINLC Have you hugged your firewall today? No spam, thanks. Are you the police? . . . . No ma'am, we're sysadmins. -- Unsubscribe mailto:[EMAIL PROTECTED] Helpmailto:[EMAIL PROTECTED] Archive http://www.ee.ethz.ch/~slist/rrd-users WebAdminhttp://www.ee.ethz.ch/~slist/lsg2.cgi
[rrd-users] Re: help with error please
Try the following: - Make sure that your output file (GIF/PNG) is formatted like this: c:\\inetpub\\graphs\\output.gif - Make sure that your RRD definitions are like this: c\\:\\inetpub\\wwwroot\\mrtg\\rrdtool\\drmateo_e4.rrd:ds0:AVERAGE If this doesn't work (I use this in my perl scripts), try single backslashes. Best regards, Stephan Van den Bossche Eric wrote: Hi all, can someone try to find the error here (i'm not that experienced with RRD) C:\Inetpub\wwwrootrrdtool.exe graph c:\inetpub\wwwroot\sher-member-01_mem_fault s_Daily.png -s -2000m -e now -a PNG -w 800 -h 300 --alt-y-grid --lazy -c MGRID#e e -c GRID#00 DEF:in=c:\mrtg_workdir\sher-member-01\sher-member-01_mem_fa ults.rrd:ds0:AVERAGE DEF:out=c:\mrtg_workdir\sher-member-01\sher-member-01_mem_f aults.rrd:ds1:AVERAGE CDEF:pin=in,100,/,100,*,1,/ CDEF:pout=out,1000 000,/,100,*,1,/ DEF:min=c:\mrtg_workdir\sher-member-01\sher-member-01_mem_faults .rrd:ds0:MAX DEF:mout=c:\mrtg_workdir\sher-member-01\sher-member-01_mem_faults.r rd:ds1:MAX AREA:in#005499:Maximal Incoming Traffic\l LINE1:out#e52325:Maximal Outgoing Traffic\l GPRINT:min:MAX:Max In\: %8.3lf %s GPRINT:pin:MAX:(%3.0lf %%) GPRINT:mout:MAX:Max Out\: %8.3lf %s GPRINT:pout:MAX:(%3.0lf%%)\l GPRINT :in:AVERAGE:Avg In\: %8.3lf %s GPRINT:pin:AVERAGE:(%3.0lf%%) GPRINT:out:AVER AGE:Avg Out\: %8.3lf %s GPRINT:pout:AVERAGE:(%3.0lf%%)\l GPRINT:in:LAST:Cur In\: %8.3lf %s GPRINT:pin:LAST:(%3.0lf%%) GPRINT:out:LAST:Cur Out\: %8.3lf %s GPRINT:pout:LAST:(%3.0lf%%)\l ERROR: can't parse DEF 'in=c:\mrtg_workdir\sher-member-01\sher-member-01_mem_fau lts.rrd:ds0:AVERAGE' -2 Greetings Eric -- Unsubscribe mailto:[EMAIL PROTECTED] Helpmailto:[EMAIL PROTECTED] Archive http://www.ee.ethz.ch/~slist/rrd-users WebAdminhttp://www.ee.ethz.ch/~slist/lsg2.cgi -- Stephan Harren Leiter Technik AboveNet Deutschland GmbH - Phone +49 69 90554 153 Fax +49 69 90554 111 Cell +49 173 7011126 -- Unsubscribe mailto:[EMAIL PROTECTED] Helpmailto:[EMAIL PROTECTED] Archive http://www.ee.ethz.ch/~slist/rrd-users WebAdminhttp://www.ee.ethz.ch/~slist/lsg2.cgi
[rrd-users] Re: Help about creating graphs
On Sun, Jul 13, 2003 at 05:16:02PM -0300, [EMAIL PROTECTED] wrote: And I did this to make gif files: /usr/local/rrdtool-1.0.42/bin/rrdtool graph test.gif --start 0 \ DEF:in_bytes=/var/local/flows/graphs/total.rrd:in_bytes:AVERAGE \ LINE2:in_bytes#FF000:in_bytes Go back to the manual page for rrdtool graph and focus on the time value given to --start. Alex -- Received on my linux server: Increase the speed of your PC in minutes! Stop windows from crashing, improve internet security and optimize your computers performance with just a few easy mouse clicks! -- Unsubscribe mailto:[EMAIL PROTECTED] Helpmailto:[EMAIL PROTECTED] Archive http://www.ee.ethz.ch/~slist/rrd-users WebAdminhttp://www.ee.ethz.ch/~slist/lsg2.cgi
[rrd-users] Re: Help
Any Ideas or links where I can find the information? Thanks in Advance, dp - Original Message - From: Dave Parrott [EMAIL PROTECTED] To: rrd-users@list.ee.ethz.ch Sent: Wednesday, June 11, 2003 12:24 AM Subject: [rrd-users] Help When trying to run make site-perl-install I get the following errors Ive tried everything i can think of and searched every where else. Can anyone please help? OS: solaris 8 gcc -c -I../src -I../gd1.3 -xO3 -xdepend-DVERSION=\1.000421\ -DXS_VER SION=\1.000421\ -I/usr/perl5/5.00503/sun4-sola ris/CORE -DPERLPATCHLEVEL=5 RRDs.c gcc: language depend not recognized gcc: RRDs.c: linker input file unused because linking not done LD_RUN_PATH= cc -o blib/arch/auto/RRDs/RRDs.so -G RRDs.o -L../src/.libs/ -lrrd_private -lm cc: RRDs.o: No such file or directory make[2]: *** [blib/arch/auto/RRDs/RRDs.so] Error 1 make[2]: Leaving directory `/export/home/dparrott/rrdtool-1.0.42/perl-shared' make[1]: *** [perl_shared] Error 2 make[1]: Leaving directory `/export/home/dparrott/rrdtool-1.0.42' make: *** [all-recursive] Error 1 Thanks, Dave Parrott -- Unsubscribe mailto:[EMAIL PROTECTED] Helpmailto:[EMAIL PROTECTED] Archive http://www.ee.ethz.ch/~slist/rrd-users WebAdminhttp://www.ee.ethz.ch/~slist/lsg2.cgi -- Unsubscribe mailto:[EMAIL PROTECTED] Helpmailto:[EMAIL PROTECTED] Archive http://www.ee.ethz.ch/~slist/rrd-users WebAdminhttp://www.ee.ethz.ch/~slist/lsg2.cgi
[rrd-users] Re: Help
On Wed, Jun 11, 2003 at 10:48:57AM -0400, Dave Parrott wrote: Any Ideas or links where I can find the information? gcc -c -I../src -I../gd1.3 -xO3 -xdepend [...] You are using Sun Workshop/Forte compiler-flags with GCC. GCC doesn't understand -xO3 (it's just -O3) and -xdepend (I don't know of any GCC equivalent here). I guess this happens automatically compiling RRD under Solaris (I've never done that myself, but I know it from compiling other Perl modules). So you have basically 2 choices if you want to compile RRD yourself: 1) Write a wrapper script for gcc (called 'mycc' or some such) that catches all Sun compiler flags and converts them to GCC flags (-xO3 - -O3, -KPIC - -fPIC, etc.) and then calls GCC. Of course the makefile must then call 'mycc' as C compiler. 2) Or you download a demo-version of Sun's compiler from their web-site for free. It runs for 30 or 60 days (can't remember). Hope that helps. Markus -- Unsubscribe mailto:[EMAIL PROTECTED] Helpmailto:[EMAIL PROTECTED] Archive http://www.ee.ethz.ch/~slist/rrd-users WebAdminhttp://www.ee.ethz.ch/~slist/lsg2.cgi
[rrd-users] Re: Help with counter wrap
On Thursday 05 June 2003 06:24, Iñaki Martínez wrote: Hello Alejandro Diego Garin!!! I have problems with the counters and the wrap issue. My front-end solve the problem of a reset checking the uptime but in case of counters wrap I am with problems. RRD database configuration: DS:testmeasure:COUNTER:1200:U:1250 RRA:MAX:0.5:1:288, RRA:MIN:0.5:1:288, RRA:AVERAGE:0.5:1:288 try to change this line: DS:testmeasure:COUNTER:1200:U:1250 for this one: DS:testmeasure:DERIVE:1200:0:1250 Hello, thanks for your answer, Yes this work fine, but with a gap in the graph I understood that COUNTERs with a MAX can manage this problem nicely. This is just fine for some of my interfaces but others need to manage the wrap because of the hight usage and many counter wraps, so I need the COUNTER DST. I' m checking the sysuptime so if the interfaces counter is reseted i can detect it and handle this with the COUNTER Data source type. Why the COUNTER dst doesn't work in my case ? Alejandro -- -- Unsubscribe mailto:[EMAIL PROTECTED] Helpmailto:[EMAIL PROTECTED] Archive http://www.ee.ethz.ch/~slist/rrd-users WebAdminhttp://www.ee.ethz.ch/~slist/lsg2.cgi
[rrd-users] Re: help me compiling remstats
It all depends on which platform you're using. Check whether you have installed libgd and the perl gd module: http://stein.cshl.org/WWW/software/GD/ Serge. -Original Message- From: Remy Bouba [mailto:[EMAIL PROTECTED] Sent: Tuesday, May 27, 2003 11:40 AM To: rrd-users@list.ee.ethz.ch Subject: [rrd-users] help me compiling remstats hi, i'm student and i'm in intership i have to install remstats and see how it works but i have a big problem, i can't compile it it seems to come from the GD library i get the folowing messages : can't locate GD.pm in @INC so i move GD.pm in a directory contained in @INC but when i do this i get another error message can't load object for module GD ... can someone please help me it's been almost a week since i've begun to try to install remstats, i'm turning crazy -- Unsubscribe mailto:[EMAIL PROTECTED] Helpmailto:[EMAIL PROTECTED] Archive http://www.ee.ethz.ch/~slist/rrd-users WebAdminhttp://www.ee.ethz.ch/~slist/lsg2.cgi -- Unsubscribe mailto:[EMAIL PROTECTED] Helpmailto:[EMAIL PROTECTED] Archive http://www.ee.ethz.ch/~slist/rrd-users WebAdminhttp://www.ee.ethz.ch/~slist/lsg2.cgi
[rrd-users] Re: help with remstats
At 04:09 2003-05-07, David IMANACHE wrote: Hi everybody! I'm a new user of remstats and i have some problems to configure it. I'm working with Debian and i've installed all remstats packets . I've also installed remstats-servers packet on the remote station i want to graph. I've read the installation guide but when i'm executing new-ping-hosts When you invoke new-ping-hosts, you must give it two things: The name of a group and a list of hosts. The syntax is: usage: new-ping-hosts [options] group [hostsfile ...] The hostsfile is just a list (one per line) of host-names. Judging from the errors below, you've given it a host configuration file instead. The next release will have clearer documentation. i've got: ERROR: get_ip: couldn't find IP number for desc remote_machine-name host ERROR: get_ip: couldn't find IP number for group my_group ERROR: get_ip: couldn't find IP number for ip remote_machine_ip What did i forget? Is anybody could help me? Thanks in advance David -- Unsubscribe mailto:[EMAIL PROTECTED] Helpmailto:[EMAIL PROTECTED] Archive http://www.ee.ethz.ch/~slist/rrd-users WebAdminhttp://www.ee.ethz.ch/~slist/lsg2.cgi Thomas Erskine [EMAIL PROTECTED] +1.613.591.8490 -- Unsubscribe mailto:[EMAIL PROTECTED] Helpmailto:[EMAIL PROTECTED] Archive http://www.ee.ethz.ch/~slist/rrd-users WebAdminhttp://www.ee.ethz.ch/~slist/lsg2.cgi
[rrd-users] Re: Help with running remstats
Hi Thomas, Have downloaded and compiled it very fine. You just save me from having to compile a old version of perl. Thank you very much. The only problem now is starting the remstats processes using ./run-remstats2 has you suggested I get this error in the LAST/LOGs 2003-03-17 16:36:56 read config file 2003-03-17 16:36:56 starting 2003-03-17 16:36:56 starting stage check 2003-03-17 16:36:56 forked 31315 for check:check-config 2003-03-17 16:36:57 finished 31315 for check:check-config 2003-03-17 16:36:57 done stage check 2003-03-17 16:36:57 starting stage ping 2003-03-17 16:36:57 forked 31317 for ping:ping 2003-03-17 16:37:10 finished 31317 for ping:ping 2003-03-17 16:37:10 done stage ping 2003-03-17 16:37:10 starting stage collectors 2003-03-17 16:37:10 forked 31323 for collectors:nt-status 2003-03-17 16:37:11 forked 31326 for collectors:dbi 2003-03-17 16:37:12 forked 31329 for collectors:port 2003-03-17 16:37:13 forked 31332 for collectors:log 2003-03-17 16:37:14 forked 31335 for collectors:snmp 2003-03-17 16:37:15 forked 31338 for collectors:unix-status 2003-03-17 16:37:20 finished 31326 for collectors:dbi 2003-03-17 16:37:21 finished 31329 for collectors:port 2003-03-17 16:37:21 finished 31323 for collectors:nt-status 2003-03-17 16:37:21 finished 31332 for collectors:log 2003-03-17 16:37:21 finished 31338 for collectors:unix-status 2003-03-17 16:37:22 finished 31335 for collectors:snmp 2003-03-17 16:37:22 done stage collectors 2003-03-17 16:37:22 starting stage post-collector 2003-03-17 16:37:22 forked 31343 for post-collector:error-collector 2003-03-17 16:37:23 finished 31343 for post-collector:error-collector 2003-03-17 16:37:23 done stage post-collector 2003-03-17 16:37:23 starting stage monitors 2003-03-17 16:37:23 forked 31346 for monitors:ping-monitor 2003-03-17 16:37:24 forked 31348 for monitors:alert-monitor 2003-03-17 16:37:25 finished 31346 for monitors:ping-monitor 2003-03-17 16:37:25 finished 31348 for monitors:alert-monitor 2003-03-17 16:37:25 done stage monitors 2003-03-17 16:37:25 starting stage pagemakers 2003-03-17 16:37:25 check for 'CONFIGCHANGE' failed; skipped 2003-03-17 16:37:25 done stage FINISH DEBUG output of ./run-remstats2 [EMAIL PROTECTED] bin]$ ./run-remstats2 -d 000 DEBUG: DEBUG: Starting stage check DEBUG: check for '' passed snip DEBUG: DEBUG: Starting stage ping DEBUG: check for '' passed snip DEBUG: Starting stage collectors DEBUG: check for '' passed snip DEBUG: DEBUG: Starting stage post-collector DEBUG: check for '' passed DEBUG: freq: post-collector:error-collector: last=0, freq=300 = 1 DEBUG: 2003-03-17 17:09:29 31750 forked for post-collector:error-collector DEBUG: 2003-03-17 17:09:31 31750 finished for post-collector:error-collector DEBUG: DEBUG: Starting stage monitors DEBUG: check for '' passed snip: DEBUG: Starting stage pagemakers DEBUG: last changed config was /var/remstats/etc/config/./html at 2003-03-17 15:49:29 DEBUG: check_when: stage=pagemakers, check=CONFIGCHANGE = 0 DEBUG: check for 'CONFIGCHANGE' failed; skipped 1)when I invoke the ./run-remstats2 command it just hangs then quits. But when I do a ps I see no remstat processes 2)AFAIK All the file have been created under the hosts, data, html etc directories. 3)To go to the remstats url index page. typing the http://ip address of server I presume should take me straight there but all I see is the apache test page. It is saying failed for 'CONFIGCHANGE'. i really dont know what to do with that file or what it does Please any help will me appreciated. I feel so discouraged. regards, seun _ MSN Messenger - fast, easy and FREE! http://messenger.msn.co.uk -- Unsubscribe mailto:[EMAIL PROTECTED] Helpmailto:[EMAIL PROTECTED] Archive http://www.ee.ethz.ch/~slist/rrd-users WebAdminhttp://www.ee.ethz.ch/~slist/lsg2.cgi
[rrd-users] Re: Help me
Jose, I imagine you intended to mail the rrd-users mailing list and not myself. The address is [EMAIL PROTECTED] I am quite new to RRDTool myself but I've found the tutorials to be quite useful. http://www.rrdtool.org/tutorial/ It will give you a good start. Also the mailing list archive will hold many of the answers you're seeking (including the one to the question I just asked). http://www.rrdtool.org/mailinglists.html Justin On Mon, 17 Mar 2003, José Antonio Calderón C. wrote: HI, anyone can say me where can i find how to configure rrdtool. I was installed it, but i don´t know what more i have to do. -- Unsubscribe mailto:[EMAIL PROTECTED] Helpmailto:[EMAIL PROTECTED] Archive http://www.ee.ethz.ch/~slist/rrd-users WebAdminhttp://www.ee.ethz.ch/~slist/lsg2.cgi
[rrd-users] Re: Help with running remstats
At 09:36 2003-03-12, gab.seun jones.ewulomi wrote: Hi Thomas, 1)My web-server is run as root? How do I change it otherwise You *really* don't want to run your web-server as root. Started by root, of course, so that it can bind to port 80. Since you don't say which web-server you're using, I'm going to assume apache. Edit the httpd.conf file and look for the User and Group lines. 2)I did as you suggested. I went into the directory where unpacked it remstats and typed make owner Note. This only fixes the permissions on files. If you run any other remstats programs as root after that, you'll be right back where you started with files owned by root under the remstats tree. 3)Yes I did create a remstats user. I have also created a host config file(by your direction) using new-config. which then created the pseudo-host _remstats_ 4) I then tried to use the new-ping-hosts to create a host. Im I using the new-ping-hosts in the correct way. can you help if possible. (output below) ./new-ping-hosts -d -f /var/remstats/etc/config/ That's incorrect. The debug flag wants a number after it and Getopt::Std is trying to take -f as the level, which will be interpreted as 0. Almost all the remstats programs will accept a -h flag (for help) to give you the syntax of the command-line. /var/remstats/etc/config/hostnames Perhaps you meant that to be on the same line? Doesn't matter. What you typed is completely wrong. New-ping-hosts (like all the new-xxx-hosts programs) wants to see a group-name to add the hosts to like: $ new-ping-hosts groupname hostfile It will use groupname as the name of the group for the hosts to belong to and read hostnames from hostfile. Unless you've overridden it in configure, /var/remstats/etc/config is the default config dir and you don't need to specify it. If you want to turn debugging on, use -d 1, not -d. Argument -f isn't numeric in numeric gt () at /var/remstats/lib/remstats.pl line 2715, FILE line 1. DEBUG: unknown host aberdeen; attempting to continue DEBUG: unknown host bristol; attempting to continue /var/remstats/etc/config/hostnames = the file that contains hostnames this however created a host in the /var/remstats/etc/config/hosts directory called aberdeen and bristol. But they didnt look right. I then edited with the correct ip address, group etc 5)I then tried to run run-remstats logging in as remstats user (su - remstats). But I get the error below Nope. Always run check-config after changing the configuration. If it won't accept it, nothing else will either. Thank you very much for your reply. [EMAIL PROTECTED] bin]# ./run-remstats Errors from ping-collector: defined(@array) is deprecated at /var/remstats/bin/ping-collector line 75. (Maybe you should just omit the defined()?) Yeah. You've got a more recent perl than was available when I built that version of remstats. You can ignore them for now. I'm going to do a release within a week on sourceforge. Errors from port-collector: defined(@array) is deprecated at /var/remstats/bin/port-collector line 75. (Maybe you should just omit the defined()?) Errors from snmp-route-collector: defined(@array) is deprecated at /var/remstats/bin/snmp-route-collector line 64. (Maybe you should just omit the defined()?) 6)The version of remstats Im running is remstats-1.00a4 I was using the latest version(remstats-1.0.9b) but decided to drop down to the 1.00a4 version because I was getting to many errors. My apologies on the long reply. But your help or anyones help will be greatly appreciated regards From: Thomas Erskine [EMAIL PROTECTED] To: gab.seun jones.ewulomi [EMAIL PROTECTED],rrd-users@list.ee.ethz.ch Subject: [rrd-users] Re: Help with running remstats Date: Wed, 12 Mar 2003 05:57:21 -0500 At 05:17 2003-03-11, gab.seun jones.ewulomi wrote: Hi, Can anyone help me. I cant seem to get remstats to work. Iv followed the documentation in and out and I still dont know what is wrong. Any help will be greatly appreciated Error below [EMAIL PROTECTED] bin]# /usr/bin/run-remstats You're going to have problems running remstats as root. You don't run your web-server as root do you? Go back to the directory where you unpacked it and , as root, type make owner. Then only run remstats programs as the remstats user. I'm assuming that you did create one. run-remstats: ERROR: put_status: directory /var/remstats/data/_remstats_ is missing; skipped This will happen if you don't have a host config file for the pseudo-host _remstats_. Since new-config will create this, I don't know how you avoided getting it created? How did you create your configuration directory? Did you use new-config /var/remstats/etc/config or wherever you told it to expect configuration directories? Which version of remstats are you installing from? run-remstats: ERROR
[rrd-users] Re: Help with running remstats
Hi Thomas, Thank you very much for your reply it. My apologies I didnt mention I was running apache(every information counts). I had no problems compiling and installing the dependencies. I just couldnt seem to get my head round the configuration even when I used the -h switch for help. im still getting the error while starting 'run-remstats' (OUTPUT ERROR) [EMAIL PROTECTED] bin]$ ./run-remstats Errors from ping-collector: defined(@array) is deprecated at /var/remstats/bin/ping-collector line 75. (Maybe you should just omit the defined()?) updater: ERROR update for /var/remstats/data/bristol/ping.rrd failed with 1047573602:10:10:13:110:930 Errors from port-collector: defined(@array) is deprecated at /var/remstats/bin/port-collector line 75. (Maybe you should just omit the defined()? With the reply you posted Yeah. You've got a more recent perl than was available when I built that version of remstats. You can ignore them for now. I'm going to do a release within a week on sourceforge. will downgrading to the perl version 5.005_03 solve the issue because I still cant start 'run-remstats' or will it be better to wait for your release within a week on sourceforge. Will you be releasing another version of remstats thanks again regards, gab _ Stay in touch with absent friends - get MSN Messenger http://messenger.msn.co.uk -- Unsubscribe mailto:[EMAIL PROTECTED] Helpmailto:[EMAIL PROTECTED] Archive http://www.ee.ethz.ch/~slist/rrd-users WebAdminhttp://www.ee.ethz.ch/~slist/lsg2.cgi
[rrd-users] Re: Help with running remstats
At 05:17 2003-03-11, gab.seun jones.ewulomi wrote: Hi, Can anyone help me. I cant seem to get remstats to work. Iv followed the documentation in and out and I still dont know what is wrong. Any help will be greatly appreciated Error below [EMAIL PROTECTED] bin]# /usr/bin/run-remstats You're going to have problems running remstats as root. You don't run your web-server as root do you? Go back to the directory where you unpacked it and , as root, type make owner. Then only run remstats programs as the remstats user. I'm assuming that you did create one. run-remstats: ERROR: put_status: directory /var/remstats/data/_remstats_ is missing; skipped This will happen if you don't have a host config file for the pseudo-host _remstats_. Since new-config will create this, I don't know how you avoided getting it created? How did you create your configuration directory? Did you use new-config /var/remstats/etc/config or wherever you told it to expect configuration directories? Which version of remstats are you installing from? run-remstats: ERROR: put_status: directory /var/remstats/data/_remstats_ is missing; skipped run-remstats: ERROR: put_status: directory /var/remstats/data/_remstats_ is missing; skipped run-remstats: ERROR: put_status: directory /var/remstats/data/_remstats_ is missing; skipped Errors from check-config: check-config: ERROR: read_config_hosts(hosts): Aberdeen: unknown line: contact Services check-config: ERROR: read_config_hosts(hosts): www.theweathernetwork.com wants to be in group Other Servers, but that's not listed in groups check-config: ABORT: 2 errors found Errors from ping-collector: defined(@array) is deprecated at /var/remstats/bin/ping-collector line 75. (Maybe you should just omit the defined()?) ping-collector: ERROR: read_config_hosts(hosts): Aberdeen: unknown line: contact Arup-ITS-Services ping-collector: ERROR: read_config_hosts(hosts): www.theweathernetwork.com wants to be in group Other Servers, but that's not listed in groups ping-collector: ABORT: 2 errors found updater: ERROR read_config_hosts(hosts): Aberdeen: unknown line: contact Arup-ITS-Services updater: ERROR read_config_hosts(hosts): www.theweathernetwork.com wants to be in group Other Servers, but that's not listed in groups updater: ABORT: 2 errors found Errors from port-collector: defined(@array) is deprecated at /var/remstats/bin/port-collector line 75. (Maybe you should just omit the defined()?) port-collector: ERROR: read_config_hosts(hosts): Aberdeen: unknown line: contact Arup-ITS-Services port-collector: ERROR: read_config_hosts(hosts): www.theweathernetwork.com wants to be in group Other Servers, but that's not listed in groups port-collector: ABORT: 2 errors found updater: ERROR read_config_hosts(hosts): Aberdeen: unknown line: contact ITS-Services updater: ERROR read_config_hosts(hosts): www.theweathernetwork.com wants to be in group Other Servers, but that's not listed in groups updater: ABORT: 2 errors found Errors from snmp-route-collector: defined(@array) is deprecated at /var/remstats/bin/snmp-route-collector line 64. (Maybe you should just omit the defined()?) snmp-route-collector: ERROR: read_config_hosts(hosts): Aberdeen: unknown line: contact ITS-Services snmp-route-collector: ERROR: read_config_hosts(hosts): www.theweathernetwork.com wants to be in group Other Servers, but that's not listed in groups snmp-route-collector: ABORT: 2 errors found Errors from log-collector: defined(@array) is deprecated at /var/remstats/bin/log-collector line 68. (Maybe you should just omit the defined()?) log-collector: ERROR: read_config_hosts(hosts): Aberdeen: unknown line: contact ITS-Services log-collector: ERROR: read_config_hosts(hosts): www.theweathernetwork.com wants to be in group Other Servers, but that's not listed in groups log-collector: ABORT: 2 errors found Errors from unix-status-collector: defined(@array) is deprecated at /var/remstats/bin/unix-status-collector line 66. (Maybe you should just omit the defined()?) unix-status-collector: ERROR: read_config_hosts(hosts): Aberdeen: unknown line: contact ITS-Services unix-status-collector: ERROR: read_config_hosts(hosts): www.theweathernetwork.com wants to be in group Other Servers, but that's not listed in groups unix-status-collector: ABORT: 2 errors found Errors from snmp-collector: defined(@array) is deprecated at /var/remstats/bin/snmp-collector line 68. (Maybe you should just omit the defined()?) snmp-collector: ERROR: read_config_hosts(hosts): Aberdeen: unknown line: contact ITS-Services snmp-collector: ERROR: read_config_hosts(hosts): www.theweathernetwork.com wants to be in group Other Servers, but that's not listed in groups snmp-collector: ABORT: 2 errors found Errors from nt-status-collector: defined(@array)
[rrd-users] Re: Help with running remstats
Hi Thomas, 1)My web-server is run as root? How do I change it otherwise 2)I did as you suggested. I went into the directory where unpacked it remstats and typed make owner 3)Yes I did create a remstats user. I have also created a host config file(by your direction) using new-config. which then created the pseudo-host _remstats_ 4) I then tried to use the new-ping-hosts to create a host. Im I using the new-ping-hosts in the correct way. can you help if possible. (output below) ./new-ping-hosts -d -f /var/remstats/etc/config/ /var/remstats/etc/config/hostnames Argument -f isn't numeric in numeric gt () at /var/remstats/lib/remstats.pl line 2715, FILE line 1. DEBUG: unknown host aberdeen; attempting to continue DEBUG: unknown host bristol; attempting to continue /var/remstats/etc/config/hostnames = the file that contains hostnames this however created a host in the /var/remstats/etc/config/hosts directory called aberdeen and bristol. But they didnt look right. I then edited with the correct ip address, group etc 5)I then tried to run run-remstats logging in as remstats user (su - remstats). But I get the error below Thank you very much for your reply. [EMAIL PROTECTED] bin]# ./run-remstats Errors from ping-collector: defined(@array) is deprecated at /var/remstats/bin/ping-collector line 75. (Maybe you should just omit the defined()?) Errors from port-collector: defined(@array) is deprecated at /var/remstats/bin/port-collector line 75. (Maybe you should just omit the defined()?) Errors from snmp-route-collector: defined(@array) is deprecated at /var/remstats/bin/snmp-route-collector line 64. (Maybe you should just omit the defined()?) 6)The version of remstats Im running is remstats-1.00a4 I was using the latest version(remstats-1.0.9b) but decided to drop down to the 1.00a4 version because I was getting to many errors. My apologies on the long reply. But your help or anyones help will be greatly appreciated regards From: Thomas Erskine [EMAIL PROTECTED] To: gab.seun jones.ewulomi [EMAIL PROTECTED],rrd-users@list.ee.ethz.ch Subject: [rrd-users] Re: Help with running remstats Date: Wed, 12 Mar 2003 05:57:21 -0500 At 05:17 2003-03-11, gab.seun jones.ewulomi wrote: Hi, Can anyone help me. I cant seem to get remstats to work. Iv followed the documentation in and out and I still dont know what is wrong. Any help will be greatly appreciated Error below [EMAIL PROTECTED] bin]# /usr/bin/run-remstats You're going to have problems running remstats as root. You don't run your web-server as root do you? Go back to the directory where you unpacked it and , as root, type make owner. Then only run remstats programs as the remstats user. I'm assuming that you did create one. run-remstats: ERROR: put_status: directory /var/remstats/data/_remstats_ is missing; skipped This will happen if you don't have a host config file for the pseudo-host _remstats_. Since new-config will create this, I don't know how you avoided getting it created? How did you create your configuration directory? Did you use new-config /var/remstats/etc/config or wherever you told it to expect configuration directories? Which version of remstats are you installing from? _ Stay in touch with MSN Messenger http://messenger.msn.co.uk -- Unsubscribe mailto:[EMAIL PROTECTED] Helpmailto:[EMAIL PROTECTED] Archive http://www.ee.ethz.ch/~slist/rrd-users WebAdminhttp://www.ee.ethz.ch/~slist/lsg2.cgi
[rrd-users] Re: HELP needed with rrdtool tune
On Wed, Sep 25, 2002 at 03:01:48PM +0200, Braendle, Juergen wrote: I ran into a performance problem with my SUN monitoring a lot of things with MRTG and RRD Hmm.. perl, probably. So now I want to change the update intervall for some data from the default 5 minutes to 10 minutes The main problem is, that I don't want to loose my old data collected for about one year. Just update every 10 minutes. You don't need to alter anything except the heartbeat. The heartbeat needs to be *at*least* 600. So my question is: What happens if I do something like this: -- rrdtool tune filesys.rrd -h TOTAL:120 -h USED:120 -h AVAIL:120 Er, that's two minutes ?!? How do I change the step value for this rrds or isnt't this nescessary? If you would change the step value, you would change the amount of time per PDP and thus the amount of time per CDP. Don't. HTH Alex -- Unsubscribe mailto:[EMAIL PROTECTED] Helpmailto:[EMAIL PROTECTED] Archive http://www.ee.ethz.ch/~slist/rrd-users WebAdminhttp://www.ee.ethz.ch/~slist/lsg2.cgi
[rrd-users] Re: help - no graphs or html pages generated
Hi Ringler! You should have been reading manuals. After MRTG migrating to logformat RRDTool MRTG does not graph anymore. This what is written in the docs. You have to write your own Tool which uses rrdtool graph to generate Graphs and some cgi code which will deliver it via Webserver and HTML. Or you look at the rrdtool homepage, under rrdworld where you can find some prewritten software, which will be able to feed and extract a rrd. Bye, Ecaroh http://www.rrdtool.org http://people.ee.ethz.ch/~oetiker/webtools/rrdtool/rrdworld/index.html Ringler, Scott wrote: Hi all, I have been running MRTG for about 2 weeks and think it great. I am now trying to convert the graphing part to RRDTOOL with no luck. Below is a sample on the cfg file that I am trying to use with rrdtool, what is happening is I am getting the .rrd log files in the work directory, but no graphs or html pages. I can not seem to find any documentation that seems to help me. Any suggestions would be greatly appreciated. Thanks, Scott -- Unsubscribe mailto:[EMAIL PROTECTED] Helpmailto:[EMAIL PROTECTED] Archive http://www.ee.ethz.ch/~slist/rrd-users WebAdminhttp://www.ee.ethz.ch/~slist/lsg2.cgi
[rrd-users] Re: Help rrd log
Check out http://people.ee.ethz.ch/~oetiker/webtools/mrtg/mrtg-rrd.html HTH David Sawyer Email: [EMAIL PROTECTED] www.geocities.com/mrtg_daemon MRTG/RRDTool daemon for Windows9x/ME/2k MRTG GUI ConfigMaker for Windows9x/ME/2k TopTalker - See who the top talkers are on your network -Original Message- From: Fabio de Barros Gabriel [mailto:[EMAIL PROTECTED] Sent: 24 July 2002 13:45 To: rrd-users@list.ee.ethz.ch Subject: [rrd-users] Help rrd log Hello rrdtool user, please. I'm trying to install rrdtool for work with mrtg. In mrtg.cfg file, I added: LogFormat: rrdtool PathAdd: c:\apps\Perl\bin LibAdd: c:\apps\Perl\bin The information contained in this e-mail is confidential and is intended only for the named recipient(s). If you are not the intended recipient you must not copy, distribute, or take any action or reliance on it. If you have received this e-mail in error, please notify the sender. Any unauthorised disclosure of the information contained in this e-mail is strictly prohibited. -- Unsubscribe mailto:[EMAIL PROTECTED] Helpmailto:[EMAIL PROTECTED] Archive http://www.ee.ethz.ch/~slist/rrd-users WebAdminhttp://www.ee.ethz.ch/~slist/lsg2.cgi
[rrd-users] Re: Help wint customization
Bryan Vest wrote: I can see that this line is pulling the numbers from somewhere: GPRINT:$mds1:MAX:Max $sout, GPRINT:mpcout:MAX:(%2.0lf%%), Does ayone know how i can pull the data used by this GPRINT function to use in another area? By far the easiest is to use another RRDtool command. Use rrdtool graph without actually creating an image. Only use PRINT (not *G*PRINT) and collect the output to use it as input for the next run. my $modemsinuse = qx(/usr/local/rrdtool-1.0.33/bin/rrdtool fetch $rrd MAX --start end-4minutes); Close, you should use graph, not fetch. You can then query MAX, MIN, AVERAGE and LAST as you're used to do. rrdtool graph /dev/null DEF: ... CDEF: ... no LINE, AREA, STACK or GPRINT ... PRINT:ds0:MAX:%10.2lf Now you can use $modemsinuse in the next rrdtool command, spanning the same time range yet actually creating the graph. If you like you can also have a look at the 1.1.x version. This is alpha code but I think VDEF is suitable to solve your problem. If you want to test it and comment on it that would be great. HTH -- __ / [EMAIL PROTECTED] [EMAIL PROTECTED] \ | work private | | My employer is capable of speaking therefore I speak only for myself | +--+ | Technical questions sent directly to me will be nuked. Use the list. | +--+ | http://faq.mrtg.org/ | | http://rrdtool.eu.org -- tutorial | +--+ -- Unsubscribe mailto:[EMAIL PROTECTED] Helpmailto:[EMAIL PROTECTED] Archive http://www.ee.ethz.ch/~slist/rrd-users WebAdminhttp://www.ee.ethz.ch/~slist/lsg2.cgi
[rrd-users] Re: HELP: Adding 2 vaues with same timestamp
It usually doesn't make sense to update a record with two different values for the same time stamp. For example, there can't be a total of 2 as well as a total of 5 people in a room at one time. If you want to add two records for a graph however, you can use CDEF's. Is this what you want to do? Iain - Original Message - From: Shrenik [EMAIL PROTECTED] To: rrd-users@list.ee.ethz.ch Sent: Tuesday, May 07, 2002 6:39 PM Subject: [rrd-users] HELP: Adding 2 vaues with same timestamp Hi All, I am using PERL apis for adding data to RRD file. I want to add 2 different values with same timestamp. Is it possible? Let say i inserted one value using statement rrdtool update test.rrd 920806500:12383 Now i want to update this record so i executed another statement rrdtool update test.rrd 920806500:1000 However i got an error as new statement must have greater timestamp. Can you help me to solve this problem. I need addition of these 2 records for corresponding record thx, shrenik -- Unsubscribe mailto:[EMAIL PROTECTED] Helpmailto:[EMAIL PROTECTED] Archive http://www.ee.ethz.ch/~slist/rrd-users WebAdminhttp://www.ee.ethz.ch/~slist/lsg2.cgi -- Unsubscribe mailto:[EMAIL PROTECTED] Helpmailto:[EMAIL PROTECTED] Archive http://www.ee.ethz.ch/~slist/rrd-users WebAdminhttp://www.ee.ethz.ch/~slist/lsg2.cgi
[rrd-users] Re: Help on types of data sources
Hola Anton, Sunday, March 31, 2002, 11:32:45 PM, escribió: AK Hello Guys AK Im using rrdtool and cacti as frontend. AK I have a problem creating 2 data sources and graphs.. Try creating a LAST source, not AVERAGE or GAUGE. -- Administrador Técnico Alsernet 2000 http://www.alsernet.es -- Unsubscribe mailto:[EMAIL PROTECTED] Helpmailto:[EMAIL PROTECTED] Archive http://www.ee.ethz.ch/~slist/rrd-users WebAdminhttp://www.ee.ethz.ch/~slist/lsg2.cgi
[rrd-users] Re: Help with consolidation functions.
Ripul Gupta wrote: The rra AVERAGE rule works fine. However , I have a problem with the MAX,MIN and LAST rules. Here is my doubt . In the line RRA:MAX:0.5:1:600 What does the number 600 signify. I looked into the dump file under the 5 minute entries block and i found 600 rows under MAX which had same values as that of the rows under AVERAGE. But my requirement is that I want one maximum value ie maximum of all 5 minute averages. The MAX consolidation function works exactly like the AVERAGE CF with of course the exception that each interval contains the maximum of the values seen *during that interval*. You don't expect the AVERAGE to return one number, why would you expect MAX to do so? -- __ / [EMAIL PROTECTED] [EMAIL PROTECTED] \ | work private | | My employer is capable of speaking therefore I speak only for myself | +--+ | Technical questions sent directly to me will be nuked. Use the list. | +--+ | http://faq.mrtg.org/ | | http://rrdtool.eu.org -- tutorial | +--+ -- Unsubscribe mailto:[EMAIL PROTECTED] Helpmailto:[EMAIL PROTECTED] Archive http://www.ee.ethz.ch/~slist/rrd-users WebAdminhttp://www.ee.ethz.ch/~slist/lsg2.cgi
[rrd-users] Re: help
Collins, Eric S. wrote: I want to store just over 1 years worth of data in my rrds. I'm quite a bit off on the number of values to store. I want to be able to accurately graph 1 hour, 1 day, 1 week, 1 month, 1 year. Here's what I have.. rrdtool create /usr/local/rrdwork/rrds/$1.rrd --step 60 \ step 60 --- each PDP is 60 seconds large. A PDP is the normalized (resampled) interval that RRDtool uses. DS:ld_avg:GAUGE:120:-3:75 \ at least every 120 seconds expect ld_avg, it should fall in the range of -3 to 75 (both inclusive) DS:users:GAUGE:120:0:130 \etcetera DS:tout:GAUGE:120:0:300 \ DS:tout2:GAUGE:120:0:15000 \ RRA:AVERAGE:0.5:1:1200 \ store 1200 CDPs of 1 PDP each. Each PDP is 60 seconds so each CDP in this RRA is 60 seconds. The total amount is 1200*60 seconds is 72000 seconds is 20 hours RRA:AVERAGE:0.5:5:700 \ store 700 CDPs of 5 PDPs each. Each PDP is 60 seconds so each CDP in this RRA is 300 seconds (5 minutes). The total amount is 700*300 seconds is 21 seconds is 58 hours 20 minutes. RRA:AVERAGE:0.5:15:730 \ store 730 CDPs of 15 PDPs each. Each PDP is 60 seconds so each CDP in this RRA is 900 seconds (15 minutes). The total amount is 730*900 seconds is 657000 seconds is 182 hours 30 minutes. etcetera. If you want to graph 1 hour, 1 day, 1 week, 1 month, 1 year, then you do the following calculations: Each PDP is 60 seconds (1 minute) and this is the base of everything else. Change this and you need to change the calculations below accordingly. The best approach is to work from a standard image size (or rather: canvas size) of 400 pixels. Each pixel should represent a whole number of PDPs. (or, a whole number of pixels should match one PDP). If you want to show an hour, show more than one hour. 1h20m is 80 minutes is 5 pixels per PDP. You need an RRA of at least 80 CDPs and each CDP is 1 PDP: RRA:AVERAGE:0.5:1:80 (you probably want to have a few more rows). One day or more: 1440 minutes or more. 1600 minutes nicely fits on 400 pixels. Each pixel represents 4 PDPs so each CDP should be 4 PDPs. You need 400 of such CDPs: RRA:AVERAGE:0.5:4:400 (again: a few more rows doesn't hurt) (if you'd work with 3 PDPs per CDP, you'd get 400 pixels * 3 PDPs per CDP is 1200 PDPs is 1200 minutes is less than one day). Same calculations for week,month and year. Same numbers for maximum, minimum and average. HTH -- __ / [EMAIL PROTECTED] [EMAIL PROTECTED] \ | work private | | My employer is capable of speaking therefore I speak only for myself | +--+ | Technical questions sent directly to me will be nuked. Use the list. | +--+ | http://faq.mrtg.org/ | | http://rrdtool.eu.org -- tutorial | +--+ -- Unsubscribe mailto:[EMAIL PROTECTED] Helpmailto:[EMAIL PROTECTED] Archive http://www.ee.ethz.ch/~slist/rrd-users WebAdminhttp://www.ee.ethz.ch/~slist/lsg2.cgi
[rrd-users] Re: help
Collins, Eric S. wrote: Hmm, 4 minutes/pixel? Not sure how that is derived. It doesn't help if you only have RRAs with 1 PDP per CDP, if you graph 1600 minutes then you will *have to* combine four PDPs into one pixel. Yes, this means averaging. Yes, this means you cannot have exact numbers as fetched from the source. This is how RRDtool works. This is how rates work. Everything is computed into an x per second value. You may be able to produce something that looks like what you want. This would involve LAST as a consolidation function. However I think this will show up as 35 if a range of 23 56 10 35 is consolidated. (I'm not sure. Can anybody who knows for sure tell please?) The closest you can get is to enter the values at suitable times. This means cheating: in stead of the real time you tell RRDtool to store it at time-(time modulo 60). Example: if now == 997745684 then you store the sample at 997745684 - 44 = 997745640. The numbers will be whole numbers in the RRA that has 1 PDP per CDP. When averaged into the RRA with 4 PDPs per CPD, you will end up with numbers that are x.25, x.50 or x.75, perhaps you want to round those using RPN instructions in a CDEF. This is not what you should want. You could also think of a perminute display, a perhour display, a perday display etcetera. All numbers end up in the database as rates (x per second) and can thus be multiplied by a number of seconds. Alternative to this suggestion: if your database contains GAUGE entries of number of users per minute, you can multiply by 60 to get the number of users per hour. 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 | +--+ -- Unsubscribe mailto:[EMAIL PROTECTED] Helpmailto:[EMAIL PROTECTED] Archive http://www.ee.ethz.ch/~slist/rrd-users WebAdminhttp://www.ee.ethz.ch/~slist/lsg2.cgi
[rrd-users] Re: Help needed on rrdtool create and rrdtool update
I took a quick glance at your rrdupdate and it looks like you are occasionally updating at an interval different from your --step. the RRDs after update. Could anyone help? I can't seem to find where the problem is. Did I make some mistakes in rrdtool create, rrdtool update, or rrdtool fetch? -- Unsubscribe mailto:[EMAIL PROTECTED] Helpmailto:[EMAIL PROTECTED] Archive http://www.ee.ethz.ch/~slist/rrd-users WebAdminhttp://www.ee.ethz.ch/~slist/lsg2.cgi
[rrd-users] Re: Help needed on rrdtool create and rrdtool update
Hmm, what I do see is that you have a heartbeat of 3600 secs. Your updates (at least the first two ones, didn't check the other ones) on the other hand are made with a 7200 sec interval. This is well over the heartbeat threshold, so rrdtool will take the value for a NaN. Read up on the heartbeat and the step @ http://people.ee.ethz.ch/~oetiker/webtools/rrdtool/manual/rrdcreate.html Serge. /usr/local/rrdtool-1.0.28/bin/rrdtool create -- --step 3600 \ DS:Flipper_Drops:GAUGE:3600:0:U \ RRA:AVERAGE:0.5:1:3600 -- /usr/local/rrdtool-1.0.28/bin/rrdtool update -- 994176000:3 994183200:1 994190400:1 994194000:4 994197600:4 994201200:5 994204800:4 994212000:8 \ -- /usr/local/rrdtool-1.0.28/bin/rrdtool fetch -- missing- 994176000: NaN 994179600: NaN missing- 994183200: NaN -- -- Unsubscribe mailto:[EMAIL PROTECTED] Helpmailto:[EMAIL PROTECTED] Archive http://www.ee.ethz.ch/~slist/rrd-users WebAdminhttp://www.ee.ethz.ch/~slist/lsg2.cgi
[rrd-users] Re: Help needed on rrdtool create and rrdtool update
Exactly! The data come in at an unknown timing. That is why I had them updated at random time and different interval. I read about the comparison between heartbeat and step, and didn't seem to find a way around it. In the document written by Don Baarda, it says, .If the interval between samples is longer than heartbeat, the entire interval is considered unknown... Meanwhile, I am not clear about whether this includes the end points of the interval if they are primary data points in an RRD. Serge was right on the data I tried to updated, 7200 is greater than 3600, but I would think RRDTool can be smart enough to determine 99417900 is unknown while 994176000 is 3 and 994183200 is 1, instead of thinking everything in the interval including the end points are unknown. Due to the nature of the data, if RRDTool cannot help, maybe I will need to artificially put a 0 for every missing heartbeat. This isn't hard but is definitely making my job more trivial. Thanks, folks! Chang-Ping 994176000:3 994183200:1 994190400:1 994194000:4 994197600:4 994201200:5 \ 994204800:4 994212000:8 994215600:1 994219200:1 994255200:1 994258800:2 \ 994262400:4 994266000:2 994269600:3 994273200:2 \ missing- 994176000: NaN 994179600: NaN missing- 994183200: NaN 994186800: NaN missing- 994190400: NaN 994194000: 4.00e+00 994197600: 4.00e+00 994201200: 5.00e+00 994204800: 4.00e+00 994208400: NaN missing- 994212000: NaN 994215600: 1.00e+00 994219200: 1.00e+00 994222800: NaN 994226400: NaN 99423: NaN 994233600: NaN 994237200: NaN 994240800: NaN 994244400: NaN 994248000: NaN 994251600: NaN missing- 994255200: NaN 994258800: 2.00e+00 Hmm, what I do see is that you have a heartbeat of 3600 secs. Your updates (at least the first two ones, didn't check the other ones) on the other hand are made with a 7200 sec interval. This is well over the heartbeat threshold, so rrdtool will take the value for a NaN. -Original Message- From: Chris Snell [mailto:[EMAIL PROTECTED] Sent: Thursday, July 05, 2001 6:48 PM To: Chang-Ping Hsiao; Rrd-User (E-mail) Subject: Re: [rrd-users] Help needed on rrdtool create and rrdtool update I took a quick glance at your rrdupdate and it looks like you are occasionally updating at an interval different from your --step. the RRDs after update. Could anyone help? I can't seem to find where the problem is. Did I make some mistakes in rrdtool create, rrdtool update, or rrdtool fetch? __ NetZero Platinum No Banner Ads and Unlimited Access Sign Up Today - Only $9.95 per month! http://www.netzero.net -- Unsubscribe mailto:[EMAIL PROTECTED] Helpmailto:[EMAIL PROTECTED] Archive http://www.ee.ethz.ch/~slist/rrd-users WebAdminhttp://www.ee.ethz.ch/~slist/lsg2.cgi
[rrd-users] Re: Help needed on rrdtool create and rrdtool upd ate
Meanwhile, I am not clear about whether this includes the end points of the interval if they are primary data points in an RRD. There are no primary data points in an RRD, only intervals. Well, according to the document of RRD CREATE, there really is something called primary data point as in the paragraph When data is entered into an RRD, it is first fit into time slots of the length defined with the -s option becoming a primary data point. although I still don't understand what it is. :-) The interval labeled as 99417600 (if heartbeat is 3600) is actually the time period from 99417600-99421199. Any data that comes in during that time is considered as representing the time from the last sample to the time of the sample. If there is an interval of heartbeat seconds that does not contain at least two samples, that interval is treated as NaN (unknown). Why should there be two data in an interval? If The samples only present once an hour, there will be only one datum in 3600 seconds. Serge was right on the data I tried to updated, 7200 is greater than 3600, but I would think RRDTool can be smart enough to determine 99417900 is unknown while 994176000 is 3 and 994183200 is 1, instead of thinking everything in the interval including the end points are unknown. Nope. RRDTool is smarter than that, and it thinks that it doesn't have data for an interval if it doesn't have more than one sample in the interval. This is not smart to me. Why can it not just take what it's fed with? Why not use a small step and a large heartbeat? The only thing the heartbeat controls is how much time can elapse between samples without declaring the entire period unknown. Literally, heartbeat should represent your MAXIMUM acceptable time between samples, possibly plus some margin. The thing is, the MAXIMUM is unknown!! Even if I make the heartbeat hugely big, the timestamps that have no data would come up as something inaccurate with the smaller step. Chang-Ping __ NetZero Platinum No Banner Ads and Unlimited Access Sign Up Today - Only $9.95 per month! http://www.netzero.net -- Unsubscribe mailto:[EMAIL PROTECTED] Helpmailto:[EMAIL PROTECTED] Archive http://www.ee.ethz.ch/~slist/rrd-users WebAdminhttp://www.ee.ethz.ch/~slist/lsg2.cgi
[rrd-users] Re: Help required
rrdtool dump is the command you want, I use it to transfer a .rrd between different architechtures but you can use it to get an ASCII file out...to see the schema for the rrd you might want to look at the rrdtool info command... Cheers Bjorn Tony James wrote: Question: The .rrd files that I have, Is there any way I can translate these into ascii files. I am basically trying to see what data these files have. Also if there is a tool to look into the rrd database to see the schema and the data etc. Please let me know. -- Unsubscribe mailto:[EMAIL PROTECTED] Helpmailto:[EMAIL PROTECTED] Archive http://www.ee.ethz.ch/~slist/rrd-users WebAdminhttp://www.ee.ethz.ch/~slist/lsg2.cgi
[rrd-users] Re: Help! Resize difficulties.
I resize RRA 0 of several RRDs every 5 minutes. I run this script with cron. It resizes every rrd in a directory. To take care of several directories with one cron job, I actually run a script that calls this script several times but the directory is different each time. This script resizes, then deletes the original, then copies the resize.rrd to the originals name. It also lists the sizes before and after. the command line is: resize-rrd ./cricket-data/path-to-rrd-files 0 GROW 1 the params are Directory, RRA, GROW/SHRINK, Records here's the script: #!/bin/bash for rrdfile in $1/*.rrd ; do echo Before ls $rrdfile -s rrdtool resize $rrdfile $2 $3 $4 rm $rrdfile cp resize.rrd $rrdfile rm resize.rrd echo After ls $rrdfile -s echo done -Original Message- From: Sean R McNamara [mailto:[EMAIL PROTECTED] Sent: Thursday, December 07, 2000 15:57 To: [EMAIL PROTECTED] Cc: rrd-users@list.ee.ethz.ch Subject: [rrd-users] Re: Help! Resize difficulties. Mike Fisher wrote: I ran into this earlier in the week. The resize does not modify the existing RRD file, it creates a new one in the current directory called resize.rrd with the new size and the old data. Just move this over your old on and you should be ok. This should probably be dealt with in the manual. Mike Thank you Mike, that was the problem; and it seems to be working at this point. Now it's just a matter of waiting while my script updates all of the rrds. I'm not sure if you'd happen to know -- but, is there a convenient way to merge a backup of the the overwritten data with the current database? There is no overlapping between the two, and unfortunately there is a missing gap of about 2 weeks, but there's nothing to be done about that now. Thanks again Mike, ..Sean. -- Unsubscribe mailto:[EMAIL PROTECTED] Helpmailto:[EMAIL PROTECTED] Archive http://www.ee.ethz.ch/~slist/rrd-users WebAdminhttp://www.ee.ethz.ch/~slist/lsg2.cgi -- Unsubscribe mailto:[EMAIL PROTECTED] Helpmailto:[EMAIL PROTECTED] Archive http://www.ee.ethz.ch/~slist/rrd-users WebAdminhttp://www.ee.ethz.ch/~slist/lsg2.cgi
[rrd-users] Re: Help! Resize difficulties.
On Fri, 8 Dec 2000 [EMAIL PROTECTED] wrote: #!/bin/bash for rrdfile in $1/*.rrd ; do echo Before ls $rrdfile -s rrdtool resize $rrdfile $2 $3 $4 rm $rrdfile cp resize.rrd $rrdfile rm resize.rrd Why did you do those two commands instead of mv resize.rrd $rrdfile echo After ls $rrdfile -s echo done -- Frank Swasey |\ _,,,---,,_ Systems Programmer ZZZzz /,`.-'`'-. ;-;;,_ University of Vermont |,4- ) )-,_. ,\ ( `'-' http://www.uvm.edu/~fcs'---''(_/--' `-'\_) -- Unsubscribe mailto:[EMAIL PROTECTED] Helpmailto:[EMAIL PROTECTED] Archive http://www.ee.ethz.ch/~slist/rrd-users WebAdminhttp://www.ee.ethz.ch/~slist/lsg2.cgi
[rrd-users] Re: Help! Resize difficulties.
Frank Swasey wrote: On Fri, 8 Dec 2000 [EMAIL PROTECTED] wrote: rm $rrdfile cp resize.rrd $rrdfile rm resize.rrd Why did you do those two commands instead of mv resize.rrd $rrdfile Please be aware that a new RRD file has been created for a purpose. It should be checked and, if the file is OK, be moved/copied/whatever over the original RRD. This has been discussed way back in the past on the mail list. Also, the documentation has been adjusted, it will be included in the next release of RRDtool. 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 | +--+ -- Unsubscribe mailto:[EMAIL PROTECTED] Helpmailto:[EMAIL PROTECTED] Archive http://www.ee.ethz.ch/~slist/rrd-users WebAdminhttp://www.ee.ethz.ch/~slist/lsg2.cgi
[rrd-users] Re: Help! Resize difficulties.
On Fri, Dec 08, 2000 at 11:52:54AM -0500, [EMAIL PROTECTED] wrote: I resize RRA 0 of several RRDs every 5 minutes. I run this script with cron. I'm curious - why would you want to do this? What is the advantage of constantly changing the RRA size, vs. figuring out the right size you would want and making it that size to start with? Just wondering, -- Clifton -- Clifton Royston -- LavaNet Systems Architect -- [EMAIL PROTECTED] The named which can be named is not the Eternal named. -- Unsubscribe mailto:[EMAIL PROTECTED] Helpmailto:[EMAIL PROTECTED] Archive http://www.ee.ethz.ch/~slist/rrd-users WebAdminhttp://www.ee.ethz.ch/~slist/lsg2.cgi
[rrd-users] Re: Help! Resize difficulties.
Mike Fisher wrote: I ran into this earlier in the week. The resize does not modify the existing RRD file, it creates a new one in the current directory called resize.rrd with the new size and the old data. Just move this over your old on and you should be ok. This should probably be dealt with in the manual. Mike Thank you Mike, that was the problem; and it seems to be working at this point. Now it's just a matter of waiting while my script updates all of the rrds. I'm not sure if you'd happen to know -- but, is there a convenient way to merge a backup of the the overwritten data with the current database? There is no overlapping between the two, and unfortunately there is a missing gap of about 2 weeks, but there's nothing to be done about that now. Thanks again Mike, ..Sean. -- Unsubscribe mailto:[EMAIL PROTECTED] Helpmailto:[EMAIL PROTECTED] Archive http://www.ee.ethz.ch/~slist/rrd-users WebAdminhttp://www.ee.ethz.ch/~slist/lsg2.cgi
[rrd-users] Re: HELP: Compile on HP-UX 10.20
Nice to hear that there is hope... I'm trying to build from the latest rrdtool-1.0.28 tar ball. I'm using the following packages under HP-UX 10.20 (from the HP porting center): binutils-2.9.1-sd-10.20.depot.gz gcc-2.95.2-sd-10.20.depot.gz perl-5.6.0-sd-10.20.depot.gz make-3.79-sd.10.20.depot.gz -- plus -- autoconfig-2.13-sd-10.20.depot.gz gzip-1.2.4a-sd-10.20.depot.gz m4-1.4-sd-10.20.depot.gz After the swinstalls, I modified my /etc/PATH to include all the /opt/*/bin directories of the packages above. I have installed these packages on a virgin machine (no Softbench or other HP compilers installed) and still no success. Did you use the HP porting center's packages? Or did you build gcc/binutils/perl from scratch? Am I missing something I need to get the compile working? How did you configure? I have tried a few ways... sh ./configure --prefix=/opt/rrdtool-1.0.28 --and-- sh ./configure --prefix=/opt/rrdtool-1.0.28 --enable-shared With the above configurations, I get problems when building the perl-shared subdirectory. The error is that it cannot find the rrd_private library (which does appear to be at ../src/.libs). The '--enable-shared' flag does not seem to make a difference in getting this error. Specifically, from the perl-shared directory, I run a gmake and get the following: LD_RUN_PATH= ld -o blib/arch/auto/RRDs/RRDs.sl -b -s -a shared RRDs.o -L../src/.libs/ -lrrd_private -lm ld: Can't find library for -lrrd_private gmake: *** [blib/arch/auto/RRDs/RRDs.sl] Error 1 Is there something obviously wrong here that I'm missing? --Nathan Nathan Harris P-Com, Inc. - Original Message - From: Kurt Andersen [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, November 27, 2000 3:14 PM Subject: Re: [rrd-users] HELP: Compile on HP-UX 10.20 Nathan Harris [EMAIL PROTECTED] wrote: After searching the mail list archives, it does not appear that anyone has been able to compile RRDtool under HP-UX 10.20 (or 11.00) with much success. I have been hacking at it for about a week now with little success. I have tried all the gcc stuff (plus HP Softbench with ANSI C compiler). No combination seems to work. Has anyone had success compiling under HP-UX? Thanks in advance, I had no particular problem building it with gcc 2.95.2 on either 10.20 or 11.x. I build the 1.0.26 straight out of the tgz-box. --Kurt -- Kurt Andersen [EMAIL PROTECTED] Agilent Technologies Postmaster Global Messaging Team, Agilent Technologies (509) 921-3792 -- Unsubscribe mailto:[EMAIL PROTECTED] Helpmailto:[EMAIL PROTECTED] Archive http://www.ee.ethz.ch/~slist/rrd-users WebAdminhttp://www.ee.ethz.ch/~slist/lsg2.cgi
[rrd-users] Re: HELP: Compile on HP-UX 10.20
Nice to hear that there is hope... I'm trying to build from the latest rrdtool-1.0.28 tar ball. I'm using the following packages under HP-UX 10.20 (from the HP porting center): binutils-2.9.1-sd-10.20.depot.gz gcc-2.95.2-sd-10.20.depot.gz perl-5.6.0-sd-10.20.depot.gz make-3.79-sd.10.20.depot.gz -- plus -- autoconfig-2.13-sd-10.20.depot.gz gzip-1.2.4a-sd-10.20.depot.gz m4-1.4-sd-10.20.depot.gz After the swinstalls, I modified my /etc/PATH to include all the /opt/*/bin directories of the packages above. I have installed these packages on a virgin machine (no Softbench or other HP compilers installed) and still no success. Did you use the HP porting center's packages? Or did you build gcc/binutils/perl from scratch? Am I missing something I need to get the compile working? How did you configure? I have tried a few ways... sh ./configure --prefix=/opt/rrdtool-1.0.28 --and-- sh ./configure --prefix=/opt/rrdtool-1.0.28 --enable-shared With the above configurations, I get problems when building the perl-shared subdirectory. The error is that it cannot find the rrd_private library (which does appear to be at ../src/.libs). The '--enable-shared' flag does not seem to make a difference in getting this error. Specifically, from the perl-shared directory, I run a gmake and get the following: LD_RUN_PATH= ld -o blib/arch/auto/RRDs/RRDs.sl -b -s -a shared RRDs.o -L../src/.libs/ -lrrd_private -lm ld: Can't find library for -lrrd_private gmake: *** [blib/arch/auto/RRDs/RRDs.sl] Error 1 Is there something obviously wrong here that I'm missing? --Nathan Nathan Harris P-Com, Inc. - Original Message - From: Kurt Andersen [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, November 27, 2000 3:14 PM Subject: Re: [rrd-users] HELP: Compile on HP-UX 10.20 Nathan Harris [EMAIL PROTECTED] wrote: After searching the mail list archives, it does not appear that anyone has been able to compile RRDtool under HP-UX 10.20 (or 11.00) with much success. I have been hacking at it for about a week now with little success. I have tried all the gcc stuff (plus HP Softbench with ANSI C compiler). No combination seems to work. Has anyone had success compiling under HP-UX? Thanks in advance, I had no particular problem building it with gcc 2.95.2 on either 10.20 or 11.x. I build the 1.0.26 straight out of the tgz-box. --Kurt -- Kurt Andersen [EMAIL PROTECTED] Agilent Technologies Postmaster Global Messaging Team, Agilent Technologies (509) 921-3792 -- Unsubscribe mailto:[EMAIL PROTECTED] Helpmailto:[EMAIL PROTECTED] Archive http://www.ee.ethz.ch/~slist/rrd-users WebAdminhttp://www.ee.ethz.ch/~slist/lsg2.cgi
[rrd-users] Re: HELP: Compile on HP-UX 10.20
Nice to hear that there is hope... I'm trying to build from the latest rrdtool-1.0.28 tar ball. I'm using the following packages under HP-UX 10.20 (from the HP porting center): binutils-2.9.1-sd-10.20.depot.gz gcc-2.95.2-sd-10.20.depot.gz perl-5.6.0-sd-10.20.depot.gz make-3.79-sd.10.20.depot.gz -- plus -- autoconfig-2.13-sd-10.20.depot.gz gzip-1.2.4a-sd-10.20.depot.gz m4-1.4-sd-10.20.depot.gz After the swinstalls, I modified my /etc/PATH to include all the /opt/*/bin directories of the packages above. I have installed these packages on a virgin machine (no Softbench or other HP compilers installed) and still no success. Did you use the HP porting center's packages? Or did you build gcc/binutils/perl from scratch? Am I missing something I need to get the compile working? How did you configure? I have tried a few ways... sh ./configure --prefix=/opt/rrdtool-1.0.28 --and-- sh ./configure --prefix=/opt/rrdtool-1.0.28 --enable-shared With the above configurations, I get problems when building the perl-shared subdirectory. The error is that it cannot find the rrd_private library (which does appear to be at ../src/.libs). The '--enable-shared' flag does not seem to make a difference in getting this error. Specifically, from the perl-shared directory, I run a gmake and get the following: LD_RUN_PATH= ld -o blib/arch/auto/RRDs/RRDs.sl -b -s -a shared RRDs.o -L../src/.libs/ -lrrd_private -lm ld: Can't find library for -lrrd_private gmake: *** [blib/arch/auto/RRDs/RRDs.sl] Error 1 Is there something obviously wrong here that I'm missing? --Nathan Nathan Harris P-Com, Inc. - Original Message - From: Kurt Andersen [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, November 27, 2000 3:14 PM Subject: Re: [rrd-users] HELP: Compile on HP-UX 10.20 Nathan Harris [EMAIL PROTECTED] wrote: After searching the mail list archives, it does not appear that anyone has been able to compile RRDtool under HP-UX 10.20 (or 11.00) with much success. I have been hacking at it for about a week now with little success. I have tried all the gcc stuff (plus HP Softbench with ANSI C compiler). No combination seems to work. Has anyone had success compiling under HP-UX? Thanks in advance, I had no particular problem building it with gcc 2.95.2 on either 10.20 or 11.x. I build the 1.0.26 straight out of the tgz-box. --Kurt -- Kurt Andersen [EMAIL PROTECTED] Agilent Technologies Postmaster Global Messaging Team, Agilent Technologies (509) 921-3792 -- Unsubscribe mailto:[EMAIL PROTECTED] Helpmailto:[EMAIL PROTECTED] Archive http://www.ee.ethz.ch/~slist/rrd-users WebAdminhttp://www.ee.ethz.ch/~slist/lsg2.cgi