[rrd-users] Help wint customization
Hello, I need some help here please. We use rrd + mrtg to monitor our routers, switches, some computers, and pretty much everyting else that uses bandwidth. It also monitors our dial up boxes, like HiperArc's, Portmasters and IQX's for amount of users currently connected. It does fine for the most part. But now we want it to also show text of how many modems are connected, some of our corporate customers do not want to have to count the graph. 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? I am pretty sure that as you switch graphs from 6hour - daily - weekly and so on it automatically updates this with the MAX and Average values for that time frame. I already had made changes to the script to print the text values that we were trying to get, it was like an 80 line addition to the script. The addition went out to the rrd files on its own and pulled the information using this: my $modemsinuse = qx(/usr/local/rrdtool-1.0.33/bin/rrdtool fetch $rrd MAX --start end-4minutes); I am just looking for a more smooth way to do this. Other people here will be updating some of the other monitoring servers with this information and I would like to do it in less than 80 lines if possible. I could have optimized and probably gotten it to 60 or 70 lines. There were a lot of calculations going on in this, percentages, 24hour, daily, monthly also a lot of splits of course to parse the data and a few color changes depending on certain values. Or if anyone knows of an existing script that will do this, or could be lightly modified to do this. We modified the original routers.cgi to get the information that we are currently using for modems. Any help would be appreciated. Thanks, Bryan Vest FNGi -- 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] One more question
Hello, First of all thank you Alex van den Bogaerdt for you help. That information did greatly help with what i was trying to do. One more question. Does CDEF support a round or integer function? I tried just using rnd and int they both came back as not a valid command errors, I need to drop the decimal point off of the numbers that are being generated. Thanks, Bryan FNGi -- 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: RRDTOOL-1.00.38 on Windows XP Professional
I've seen this error also when I upgraded from 1.0.33 to 1.0.35. You probably need to reinstall the perl stuff. Go into the perl-shared directory and type ppm install rrds.ppd. That should fix it. Hopefully. Jason... -Original Message- From: John Bossert [mailto:[EMAIL PROTECTED] Sent: May 28, 2002 7:48 AM To: rrd-users@list.ee.ethz.ch Subject: [rrd-users] RRDTOOL-1.00.38 on Windows XP Professional Content-Type: text/plain Gents: I've been running MRTG 2.9.18pre5 and RRDTOOL 1.0.35 no problem. I tried to upgrade to RRDTOOL 1.0.38 and received this message when restarting MRTG: RRDs object version 1.000351 does not match boostrap version parameter 1.000381 at c:/apps/perl/lib/dynaloader.pm at 225 Compilation failed in required mrtg line 159 Any help is welcome ! John A. Bossert, Jr. Senior Network Analyst Rockland Trust Company 8 Richards Road Plymouth, Mass. 02360 (508) 830-3298 - phone (508) 354-0805 - pager (508) 385-2139 - home (508) 641-7648 - cell [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] visit us on the web: www.rocklandtrust.com NOTICE: This transmission is intended only for the person or entity to which it is addressed and may contain privileged and/or confidential material. Any retransmission, dissemination, review or other use of, or taking any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited. If you receive this transmission in error, please contact the sender, destroy this message and delete the material from any computer, computer storage or other media. Information in this message that does not relate to the official business of Rockland Trust shall be understood as neither given nor endorsed by us. -- Attached file removed by Listar and put at URL below -- -- Type: application/octet-stream -- Size: 189 bytes -- URL : http://www.ee.ethz.ch/~slist/pantomime/04-John Bossert.vcf -- 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: Calculate area from graph?
That is very strange. I think I screwed up the program I sent you. I didn't take into account that you're probably storing SNMP Octets instead of bits in your RRDTool database file. That examination for $val's100 may not be right. You may want to test it against 125000 instead to take into account that there are 8 bits in an octet. Sorry about that. Since you're sampling so quickly I'm not sure that you've taken this into account when you sized your RRA's. For example with your RRA:AVERAGE:0.5:1:600 that would store 600 entries which are an average of 1 10 second sample, giving you 10 minutes worth of values in that RRA. With the next RRA:AVERAGE:0.5:6:700 that would store 700 entries which are an average of the previous 6 samples, giving you about 11.6 hours of samples. I think you see where I'm going here. The same holds true for the MAX values. I think that the FETCH is pulling from an RRA that doesn't have the resolution you're looking for. It looks like you may have got those values from the RRD Tutorial or something which uses that to demonstrate examining a network device every 5 minutes. I think you may need to up your stored samples to their current values *30 (since there is 30 10second intervals in 5 minutes). If I'm way off base here, just tell me and I'll see if I can think of anything else. Jason... -Original Message- From: Fredrik Schweinebarth [mailto:[EMAIL PROTECTED] Sent: May 28, 2002 12:17 AM To: 'Warnes, Jason SDH' Cc: rrd-users@list.ee.ethz.ch Subject: RE: [rrd-users] Re: Calculate area from graph? Hi, I tried using fetch to sum the values over 1mbps, but im getting different results... For example: 18/5-23/5 returns 453.65MB 19/5-23/5 returns 92.08MB (!) 20/5-23/5 returns 542.46MB This is pretty annoying. To create my RRA i use a a perlscript: (...) $speed = $data{$SystemName}{'ifSpeed'} @interface_rrd = (DS:InBits:COUNTER:600:0:$speed, DS:OutBits:COUNTER:600:0:$speed, RRA:AVERAGE:0.5:1:600, RRA:AVERAGE:0.5:6:700, RRA:AVERAGE:0.5:24:775, RRA:AVERAGE:0.5:288:797, RRA:MAX:0.5:1:600, RRA:MAX:0.5:6:700, RRA:MAX:0.5:24:775, RRA:MAX:0.5:288:797); (...) if(RRDs::create ($rrd_store/$rrdfile, --step=10, @interface_rrd)) (...) Im currently running this script every 10 seconds. Is there something wrong with this picture? // Fredrik -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Warnes, Jason SDH Sent: den 27 maj 2002 20:06 To: 'Fredrik Schweinebarth'; rrd-users@list.ee.ethz.ch Subject: [rrd-users] Re: Calculate area from graph? You could try running a fetch for the week and add up all the bytes that are 1Mbps. If you're using Perl it would be something like this: Assuming: You have the RRD shared module loaded in Perl Your file is called 'bandwidth.rrd' for example purposes ---Start Code--- # Fetch a week's worth (604800 seconds) of data from bandwidth.rrd my ($start,$step,$names,$data)=RRDs::fetch(bandwidth.rrd,AVERA GE,--start=- 604800); # Reset the over limit count to zero $totalover1Mbps=0; # Examine each line returned from the fetch foreach my $line (@$data) { # Examine each value on each line returned by the fetch foreach my $val (@$line) { if($val 100) {# The value is greater that 1Mbps # Add the amount over 1Mbps to a total over counter $totalover1Mbps=$totalover1Mbps+($val-100); } } } ---End Code--- Then you should have a scalar called $totalover1Mpbs that you should be able to include in a comment on the graph somewhere. I have to warn you, I'm pretty new at Perl so this might not be the most efficient way of doing things Just a thought. Jason... -Original Message- From: Fredrik Schweinebarth [mailto:[EMAIL PROTECTED] Sent: May 27, 2002 1:23 AM To: rrd-users@list.ee.ethz.ch Subject: [rrd-users] Calculate area from graph? Hello, Im having some trouble with the graph... I've attached a graph that shows all peaks over 1mbps with a gray area, is it possible to calculate this area? The result should be total bytes transferred during these peaks. //Fredrik -- Attached file removed by Listar and put at URL below -- -- Type: image/gif -- Size: 18k (18741 bytes) -- URL : http://www.ee.ethz.ch/~slist/pantomime/monitor.gif -- Unsubscribe mailto:[EMAIL PROTECTED] subject=unsubscribe Help mailto:[EMAIL PROTECTED] Archive http://www.ee.ethz.ch/~slist/rrd-users WebAdminhttp://www.ee.ethz.ch/~slist/lsg2.cgi -- Unsubscribe mailto:[EMAIL PROTECTED] subject=unsubscribe Help mailto:[EMAIL PROTECTED]
[rrd-users] rrdtool binary for HP-UX 11.00
Hi, I was finally succesfull in building a binary rrdtool 1.0.38 for HP-UX (with the hints of some of you). If somebody is interested in it, you can get one from me. Johan Segers Unix System Engineer -- 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] COMPUTE
When will COMPUTE be in a released ver? Jay Flowers Integic Health Care -- Unsubscribe mailto:[EMAIL PROTECTED] Helpmailto:[EMAIL PROTECTED] Archive http://www.ee.ethz.ch/~slist/rrd-users WebAdminhttp://www.ee.ethz.ch/~slist/lsg2.cgi